@wowok/agent-mcp 2.2.8 → 2.2.13

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 (123) hide show
  1. package/README.md +5 -5
  2. package/dist/docs/index.d.ts +3 -0
  3. package/dist/docs/index.js +2 -0
  4. package/dist/docs/loader.d.ts +12 -0
  5. package/dist/docs/loader.js +177 -0
  6. package/dist/docs/search.d.ts +17 -0
  7. package/dist/docs/search.js +325 -0
  8. package/dist/docs/types.d.ts +55 -0
  9. package/dist/docs/types.js +1 -0
  10. package/dist/index.d.ts +400 -388
  11. package/dist/index.js +146 -39
  12. package/dist/schema/call/allocation.d.ts +23 -23
  13. package/dist/schema/call/arbitration.d.ts +23 -23
  14. package/dist/schema/call/base.d.ts +72 -72
  15. package/dist/schema/call/base.js +1 -1
  16. package/dist/schema/call/contact.d.ts +23 -23
  17. package/dist/schema/call/demand.d.ts +23 -23
  18. package/dist/schema/call/guard.d.ts +45 -45
  19. package/dist/schema/call/handler.d.ts +1 -1
  20. package/dist/schema/call/handler.js +1 -1
  21. package/dist/schema/call/machine.d.ts +28 -28
  22. package/dist/schema/call/order.d.ts +23 -23
  23. package/dist/schema/call/payment.d.ts +5 -5
  24. package/dist/schema/call/permission.d.ts +23 -23
  25. package/dist/schema/call/personal.d.ts +31 -31
  26. package/dist/schema/call/progress.d.ts +23 -23
  27. package/dist/schema/call/proof.d.ts +10 -10
  28. package/dist/schema/call/repository.d.ts +49 -49
  29. package/dist/schema/call/reward.d.ts +23 -23
  30. package/dist/schema/call/service.d.ts +38 -38
  31. package/dist/schema/call/treasury.d.ts +23 -23
  32. package/dist/schema/common/index.d.ts +1 -1
  33. package/dist/schema/common/index.js +1 -1
  34. package/dist/schema/local/index.d.ts +63 -63
  35. package/dist/schema/messenger/index.d.ts +3 -3
  36. package/dist/schema/query/index.d.ts +1446 -1446
  37. package/dist/schema/query/index.js +2 -2
  38. package/dist/schema/utils/guard-query-utils.d.ts +1 -1
  39. package/dist/schema/utils/guard-query-utils.js +1 -1
  40. package/dist/schema/utils/permission-index-utils.js +1 -1
  41. package/docs/README.md +249 -0
  42. package/docs/WIP.md +388 -0
  43. package/docs/WTS.md +536 -0
  44. package/docs/docs/account.md +914 -0
  45. package/docs/docs/allocation.md +635 -0
  46. package/docs/docs/arbitration.md +1804 -0
  47. package/docs/docs/arbitration_state_machine.md +270 -0
  48. package/docs/docs/contact.md +709 -0
  49. package/docs/docs/demand.md +948 -0
  50. package/docs/docs/guard.md +1465 -0
  51. package/docs/docs/localinfo.md +432 -0
  52. package/docs/docs/localmark.md +583 -0
  53. package/docs/docs/machine.md +2490 -0
  54. package/docs/docs/messenger.md +2098 -0
  55. package/docs/docs/onchain_events.md +267 -0
  56. package/docs/docs/order.md +1001 -0
  57. package/docs/docs/payment.md +512 -0
  58. package/docs/docs/permission.md +1438 -0
  59. package/docs/docs/personal.md +742 -0
  60. package/docs/docs/progress.md +1748 -0
  61. package/docs/docs/query.md +467 -0
  62. package/docs/docs/repository.md +1043 -0
  63. package/docs/docs/reward.md +833 -0
  64. package/docs/docs/service.md +2130 -0
  65. package/docs/docs/stage-01-introduction.md +243 -0
  66. package/docs/docs/stage-02-trust.md +302 -0
  67. package/docs/docs/stage-03-collaboration.md +337 -0
  68. package/docs/docs/stage-04-transaction.md +277 -0
  69. package/docs/docs/stage-05-business.md +151 -0
  70. package/docs/docs/stage-06-personal.md +203 -0
  71. package/docs/docs/stage-07-query.md +572 -0
  72. package/docs/docs/stage-08-examples.md +184 -0
  73. package/docs/docs/treasury.md +1149 -0
  74. package/docs/docs/wowok_buildin_info.md +740 -0
  75. package/docs/examples/Insurance/Insurance.md +594 -0
  76. package/docs/examples/Insurance/Insurance_TestResults.md +481 -0
  77. package/docs/examples/Insurance/insurance_complete_guard_v1.json +50 -0
  78. package/docs/examples/MyShop/MyShop.md +1353 -0
  79. package/docs/examples/MyShop/MyShop_TestResults.md +1003 -0
  80. package/docs/examples/MyShop_Advanced/MyShop_Advanced.md +1898 -0
  81. package/docs/examples/MyShop_Advanced/MyShop_Advanced_MerchantSystem_TestResults.md +1297 -0
  82. package/docs/examples/MyShop_Advanced/MyShop_Advanced_OrderFlow_TestResults.md +743 -0
  83. package/docs/examples/MyShop_Advanced/machine_nodes.json +222 -0
  84. package/docs/examples/ThreeBody_Signature/ThreeBody_Signature.md +776 -0
  85. package/docs/examples/ThreeBody_Signature/ThreeBody_Signature_TestResults.md +599 -0
  86. package/docs/examples/Travel/Travel.md +1157 -0
  87. package/docs/examples/Travel/Travel_TestResults.md +743 -0
  88. package/docs/examples/Travel/calc-weather-timestamps.js +8 -0
  89. package/docs/examples/Travel/travel_machine_v2_export.json +104 -0
  90. package/docs/examples/Travel/weather_check_guard_v1.json +51 -0
  91. package/docs/skills/WOWOK.md +650 -0
  92. package/docs/skills/onchain_operations/_common.md +406 -0
  93. package/docs/skills/onchain_operations/_index.md +196 -0
  94. package/docs/skills/onchain_operations/allocation.md +28 -0
  95. package/docs/skills/onchain_operations/arbitration.md +106 -0
  96. package/docs/skills/onchain_operations/contact.md +40 -0
  97. package/docs/skills/onchain_operations/demand.md +53 -0
  98. package/docs/skills/onchain_operations/gen_passport.md +23 -0
  99. package/docs/skills/onchain_operations/guard.md +56 -0
  100. package/docs/skills/onchain_operations/machine.md +89 -0
  101. package/docs/skills/onchain_operations/order.md +56 -0
  102. package/docs/skills/onchain_operations/payment.md +24 -0
  103. package/docs/skills/onchain_operations/permission.md +68 -0
  104. package/docs/skills/onchain_operations/personal.md +58 -0
  105. package/docs/skills/onchain_operations/progress.md +38 -0
  106. package/docs/skills/onchain_operations/repository.md +70 -0
  107. package/docs/skills/onchain_operations/reward.md +38 -0
  108. package/docs/skills/onchain_operations/service.md +78 -0
  109. package/docs/skills/onchain_operations/treasury.md +68 -0
  110. package/docs/skills/schema-account_operation.md +402 -0
  111. package/docs/skills/schema-guard2file.md +153 -0
  112. package/docs/skills/schema-local_info_operation.md +160 -0
  113. package/docs/skills/schema-local_mark_operation.md +148 -0
  114. package/docs/skills/schema-machineNode2file.md +155 -0
  115. package/docs/skills/schema-messenger_operation.md +547 -0
  116. package/docs/skills/schema-onchain_events.md +201 -0
  117. package/docs/skills/schema-onchain_table_data.md +334 -0
  118. package/docs/skills/schema-query_toolkit.md +395 -0
  119. package/docs/skills/schema-wip_file.md +240 -0
  120. package/docs/skills/schema-wowok_buildin_info.md +296 -0
  121. package/docs/wip-examples/three_body.html +57 -0
  122. package/docs/wip-examples/three_body.wip +30 -0
  123. package/package.json +3 -2
package/dist/index.js CHANGED
@@ -6,7 +6,8 @@ import { readFileSync } from "fs";
6
6
  import { resolve } from "path";
7
7
  const packageJson = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf-8"));
8
8
  import { CallService_DataSchema, CallMachine_DataSchema, MachineNode2File_InputSchema, MachineNode2File_OutputWrappedSchema, CallProgress_DataSchema, CallPermission_DataSchema, CallGuard_DataSchema, Guard2File_InputSchema, Guard2File_OutputWrappedSchema, CallArbitration_DataSchema, CallRepository_DataSchema, CallContact_DataSchema, CallTreasury_DataSchema, CallReward_DataSchema, CallAllocation_DataSchema, CallPersonal_DataSchema, CallPayment_DataSchema, CallDemand_DataSchema, CallOrder_DataSchema, CallEnvSchema, SubmissionCallSchema, strictParse, CallOutputSchema, handleCallResult, createServerConfig, createCapabilitiesConfig, createToolMeta, transformSubmission, getEnvConfig, WipGenerationOptionsSchema, WipToHtmlOptionsSchema, TokenDataFilterSchema, LocalInfoFilterSchema, LocalMarkFilterSchema, AccountFilterSchema, TokenTypeSchema, OnchainEventsInputSchema, OnchainEventsResultSchema, ProtocolInfoQuerySchema, ProtocolInfoResultSchema, TableAnswerSchema, TableItem_RepositoryDataSchema, TableItem_PermissionPermSchema, TableItem_EntityRegistrarSchema, TableItem_EntityLinkerSchema, TableItem_RewardRecordSchema, TableItem_DemandPresenterSchema, TableItem_TreasuryHistorySchema, TableItem_MachineNodeSchema, TableItem_ProgressHistorySchema, TableItem_AddressMarkSchema, NameOrAddressSchema, ObjectBaseSchema, AccountOrMark_AddressSchema, AccountOrMark_AddressAISchema, EntrypointSchema, AccountOperationOutputWrappedSchema, LocalMarkOperationOutputWrappedSchema, LocalInfoOperationOutputWrappedSchema, WipOperationOutputSchema, MessengerOperationOutputSchema, AccountOperationSchema, LocalMarkOperationSchema, LocalInfoOperationSchema, parseMachineNodesFromText, formatNodeErrors as formatMachineNodeErrors, MessengerOperationInputSchema, } from "./schema/index.js";
9
- import { CallService, CallMachine, CallProgress, CallPermission, CallGuard, CallArbitration, CallRepository, CallContact, CallTreasury, CallReward, CallAllocation, CallPersonal, CallPayment, CallDemand, CallOrder, gen_passport, guard2file, parseGuardFile, formatGuardParseErrors, machineNode2file, generateNodeComments, generate_wip, verify_wip, sign_wip, wip2html, account_operation, local_mark_operation, local_info_operation, watch_conversations, send_message, send_file, watch_messages, extract_zip_messages, generate_wts, verify_wts, sign_wts, wts2html, proof_message, mark_messages_as_viewed, mark_conversation_as_viewed, query_local_mark_list, query_account_list, query_local_info_list, query_local_token_list, query_account, query_personal, query_objects, query_table, query_tableItem, queryProtocolInfo, query_received, queryTableItem_RepositoryData, queryTableItem_PermissionPerm, queryTableItem_RewardRecord, queryTableItem_DemandPresenter, queryTableItem_TreasuryHistory, queryTableItem_MachineNode, queryTableItem_ProgressHistory, queryTableItem_AddressMark, queryTableItem_EntityRegistrar, queryTableItem_EntityLinker, query_events, blacklist, friendslist, guardlist, settings, AmountType, } from "wowok";
9
+ import { CallService, CallMachine, CallProgress, CallPermission, CallGuard, CallArbitration, CallRepository, CallContact, CallTreasury, CallReward, CallAllocation, CallPersonal, CallPayment, CallDemand, CallOrder, gen_passport, guard2file, parseGuardFile, formatGuardParseErrors, machineNode2file, generateNodeComments, generate_wip, verify_wip, sign_wip, wip2html, account_operation, local_mark_operation, local_info_operation, watch_conversations, send_message, send_file, watch_messages, extract_zip_messages, generate_wts, verify_wts, sign_wts, wts2html, proof_message, mark_messages_as_viewed, mark_conversation_as_viewed, query_local_mark_list, query_account_list, query_local_info_list, query_local_token_list, query_account, GetLocalNamesByAddresses, query_personal, query_objects, query_table, query_tableItem, queryProtocolInfo, query_received, queryTableItem_RepositoryData, queryTableItem_PermissionPerm, queryTableItem_RewardRecord, queryTableItem_DemandPresenter, queryTableItem_TreasuryHistory, queryTableItem_MachineNode, queryTableItem_ProgressHistory, queryTableItem_AddressMark, queryTableItem_EntityRegistrar, queryTableItem_EntityLinker, query_events, blacklist, friendslist, guardlist, settings, AmountType, } from "@wowok/wowok";
10
+ import { loadAllDocuments, isDocumentationAvailable, getDocStats, processLearnRequest, } from "./docs/index.js";
10
11
  const SERVER_DESCRIPTION = `WoWok MCP Server - Making It Easy for AI Agents to Communicate, Collaborate, Trade, and Trust.
11
12
 
12
13
  ## Token System Overview
@@ -576,6 +577,10 @@ const WatchQueryOperationsSchema = z.preprocess((input) => {
576
577
  token_type: TokenTypeSchema.optional().describe("Token type to query; defaults to 0x2::wow::WOW (platform token)"),
577
578
  network: EntrypointSchema.optional(),
578
579
  }).describe("Query an account's coin balance OR paginated coin objects. Use balance=true for total amount, or coin={cursor,limit} to list individual coin objects. Returns: { address, balance? | coin? }"),
580
+ z.object({
581
+ query_type: z.literal("local_names"),
582
+ addresses: z.array(z.string()).describe("Array of addresses to look up local names for"),
583
+ }).describe("Query local names (account name and local mark name) for a list of addresses. Returns array of: { account?: string, local_mark?: string, address: string }"),
579
584
  ]),
580
585
  z.discriminatedUnion("query_type", [
581
586
  z.object({
@@ -1000,6 +1005,11 @@ async function handleWatchQueryOperations(args) {
1000
1005
  result = { query_type: "account_balance", result: queryResult };
1001
1006
  break;
1002
1007
  }
1008
+ case "local_names": {
1009
+ const queryResult = await GetLocalNamesByAddresses(validated.addresses);
1010
+ result = { query_type: "local_names", result: queryResult };
1011
+ break;
1012
+ }
1003
1013
  case "onchain_personal_profile": {
1004
1014
  const queryResult = await query_personal({ account: validated.account, no_cache: validated.no_cache, network: validated.network });
1005
1015
  result = { query_type: "onchain_personal_profile", result: queryResult };
@@ -1040,7 +1050,7 @@ async function handleWatchQueryOperations(args) {
1040
1050
  break;
1041
1051
  }
1042
1052
  default:
1043
- throw new Error(`Unknown query type. Valid query_types are: "local_mark_list", "account_list", "local_info_list", "token_list", "account_balance", "onchain_personal_profile", "onchain_objects", "onchain_received". For table queries, use the "onchain_table_data" tool.`);
1053
+ throw new Error(`Unknown query type. Valid query_types are: "local_mark_list", "account_list", "local_info_list", "token_list", "account_balance", "local_names", "onchain_personal_profile", "onchain_objects", "onchain_received". For table queries, use the "onchain_table_data" tool.`);
1044
1054
  }
1045
1055
  return {
1046
1056
  content: [{ type: "text", text: JSON.stringify({ result }) }],
@@ -1296,6 +1306,20 @@ async function handleMachineNode2File(args) {
1296
1306
  }
1297
1307
  export { OnchainOperationsSchema, WipOperationsSchema, WatchQueryOperationsSchema, AccountOperationSchema, LocalMarkOperationSchema, LocalInfoOperationSchema, ProtocolInfoQuerySchema, CallOutputSchema, MessengerOperationInputSchema, MessengerOperationOutputSchema };
1298
1308
  async function main() {
1309
+ let docIndex = null;
1310
+ if (isDocumentationAvailable()) {
1311
+ try {
1312
+ docIndex = loadAllDocuments();
1313
+ const stats = getDocStats();
1314
+ console.error(`Documentation loaded: ${stats.total} files (${stats.skills} skills, ${stats.examples} examples)`);
1315
+ }
1316
+ catch (error) {
1317
+ console.error("Failed to load documentation:", error);
1318
+ }
1319
+ }
1320
+ else {
1321
+ console.error("Documentation not available. Please ensure docs/skills and docs/examples directories exist.");
1322
+ }
1299
1323
  server.registerTool("onchain_operations", {
1300
1324
  title: "⛓️ On-chain Operations",
1301
1325
  description: "On-chain operations for WoWok object: service (marketplace listings), machine (workflow templates), progress (order tracking), repository (on-chain database), arbitration (dispute resolution), contact (IM management), treasury (team funds), reward (incentive pools), allocation (auto-distribution), permission (access control), guard (programmable trust rules), personal (public profile), payment (direct coin transfers), demand (service requests), order (order management), gen_passport (verified credentials).",
@@ -1364,17 +1388,18 @@ async function main() {
1364
1388
  }, handleMachineNode2File);
1365
1389
  server.registerTool("query_toolkit", {
1366
1390
  title: "🔍 Data Query Toolkit",
1367
- description: "WOWOK data query toolkit — 8 query types covering local device data and on-chain blockchain data:\n\n"
1391
+ description: "WOWOK data query toolkit — 9 query types covering local device data and on-chain blockchain data:\n\n"
1368
1392
  + "LOCAL (device-only, never on-chain):\n"
1369
1393
  + "1. local_mark_list — Query your LOCAL address book: maps human-readable names to blockchain addresses with optional tags. Use to resolve names→addresses or find addresses by tag.\n"
1370
1394
  + "2. account_list — Query your LOCAL accounts: view all accounts stored on this device (addresses, public keys, messenger status, suspension state). Use to discover available accounts before operations.\n"
1371
1395
  + "3. local_info_list — Query your LOCAL private info: sensitive data like delivery addresses, phone numbers, contacts stored ONLY on this device.\n"
1372
1396
  + "4. token_list — Query cached token metadata: symbol, decimals, icon URL, description for tokens previously fetched from chain. Use to look up token precision/decimals before performing token operations. Returns: TokenTypeInfo[] (type, alias, name, symbol, decimals, iconUrl).\n"
1373
- + "5. account_balance — Query an account's coin balance OR paginated coin objects. Use balance=true for total amount, or coin={cursor,limit} to list individual coin objects. Supports multi-token via token_type parameter.\n\n"
1397
+ + "5. account_balance — Query an account's coin balance OR paginated coin objects. Use balance=true for total amount, or coin={cursor,limit} to list individual coin objects. Supports multi-token via token_type parameter.\n"
1398
+ + "6. local_names — Query local names by a list of addresses. For each address, returns the resolved account name (if exists) and local mark name (if exists). Returns: { account?, local_mark?, address }[].\n\n"
1374
1399
  + "ONCHAIN (blockchain):\n"
1375
- + "6. onchain_personal_profile — Query any user's PUBLIC on-chain profile: social links, reputation (likes/dislikes), personal info records, voting history, referrer.\n"
1376
- + "7. onchain_objects — Batch query on-chain WOWOK objects by ID or name: supports Service, Machine, Order, Treasury, Reward, Arb, Personal, Contact, and more.\n"
1377
- + "8. onchain_received — Query objects (Payments, Tokens, NFTs) received by a specific object. Supports pagination and all_type filter.\n\n"
1400
+ + "7. onchain_personal_profile — Query any user's PUBLIC on-chain profile: social links, reputation (likes/dislikes), personal info records, voting history, referrer.\n"
1401
+ + "8. onchain_objects — Batch query on-chain WOWOK objects by ID or name: supports Service, Machine, Order, Treasury, Reward, Arb, Personal, Contact, and more.\n"
1402
+ + "9. onchain_received — Query objects (Payments, Tokens, NFTs) received by a specific object. Supports pagination and all_type filter.\n\n"
1378
1403
  + "For dynamic table data queries (pagination, table items), use the 'onchain_table_data' tool.",
1379
1404
  inputSchema: WatchQueryOperationsSchema,
1380
1405
  outputSchema: z.object({
@@ -1421,52 +1446,134 @@ async function main() {
1421
1446
  }, handleWowokInfo);
1422
1447
  server.registerTool("documents_and_learn", {
1423
1448
  title: "📚 Documents and Learn",
1424
- description: "Access WoWok documentation and learning resources. Provides official documentation URL for users and AI to get more information about WoWok protocol, components, and usage.",
1449
+ description: "Access WoWok documentation and learning resources locally. Search documentation, get operation schemas, learn from examples, and read guides without external network access.",
1425
1450
  inputSchema: z.object({
1426
- topic: z.string().optional().describe("Optional topic to search for in documentation (e.g., 'guard', 'service', 'messenger', 'stage-01-introduction')"),
1451
+ action: z.enum(["search", "get_schema", "learn_example", "guide", "list_operations", "list_examples"])
1452
+ .describe("Action to perform: 'search' for keywords, 'get_schema' for operation/tool schemas, 'learn_example' for case studies, 'guide' for documentation, 'list_operations' or 'list_examples' to see available resources"),
1453
+ topic: z.string().optional().describe("Topic for guide or schema lookup (e.g., 'guard', 'service', 'WOWOK', '_index')"),
1454
+ query: z.string().optional().describe("Search query for finding relevant documentation"),
1455
+ example: z.string().optional().describe("Example name to learn from (e.g., 'MyShop', 'Travel', 'Insurance')"),
1456
+ operationType: z.string().optional().describe("Operation type for schema lookup (e.g., 'service', 'guard', 'machine', 'order')"),
1457
+ toolName: z.string().optional().describe("Tool name for schema lookup (e.g., 'query_toolkit', 'messenger_operation')"),
1427
1458
  }),
1428
1459
  outputSchema: z.object({
1429
- documentation_url: z.string().describe("Official WoWok documentation URL on GitHub"),
1430
- topic: z.string().optional().describe("Requested topic if specified"),
1431
- original_topic: z.string().optional().describe("Original topic input by user (before normalization)"),
1432
- message: z.string().describe("Welcome message with documentation information. Always included in response."),
1460
+ success: z.boolean().describe("Whether the request was successful"),
1461
+ action: z.string().describe("The action that was performed"),
1462
+ data: z.any().describe("Response data (varies by action)"),
1463
+ message: z.string().describe("Human-readable message describing the result"),
1464
+ suggestions: z.array(z.string()).optional().describe("Suggested next steps or alternatives"),
1433
1465
  }),
1434
1466
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
1435
- _meta: createToolMeta("documentation", ["docs", "learn", "tutorial", "guide", "help", "reference"]),
1467
+ _meta: createToolMeta("documentation", ["docs", "learn", "tutorial", "guide", "help", "reference", "schema", "example"]),
1436
1468
  }, async (args) => {
1437
- const GITHUB_BASE_URL = "https://github.com/wowok-ai/docs/blob/main/docs";
1438
- if (!args.topic) {
1439
- const url = GITHUB_BASE_URL;
1440
- const message = `Welcome to WoWok Documentation! Access comprehensive guides, tutorials, and API references at: ${url}`;
1469
+ if (!docIndex) {
1441
1470
  return {
1442
- content: [
1443
- {
1471
+ content: [{
1444
1472
  type: "text",
1445
- text: message,
1446
- },
1447
- ],
1473
+ text: "Documentation system is not available. Please ensure docs/skills and docs/examples are copied to the package.",
1474
+ }],
1448
1475
  structuredContent: {
1449
- documentation_url: url,
1450
- message: message,
1476
+ success: false,
1477
+ action: args.action,
1478
+ data: null,
1479
+ message: "Documentation system unavailable",
1480
+ suggestions: ["Check that docs/ directory exists", "Ensure docs/skills and docs/examples subdirectories are present"],
1451
1481
  },
1452
1482
  };
1453
1483
  }
1454
- const normalizedTopic = args.topic.toLowerCase().trim();
1455
- const url = `${GITHUB_BASE_URL}/${normalizedTopic}.md`;
1456
- const message = `Documentation for "${normalizedTopic}"\nGitHub URL: ${url}`;
1484
+ const request = {
1485
+ action: args.action,
1486
+ topic: args.topic,
1487
+ query: args.query,
1488
+ example: args.example,
1489
+ operationType: args.operationType,
1490
+ toolName: args.toolName,
1491
+ };
1492
+ const response = processLearnRequest(docIndex.index, request);
1493
+ let textContent = response.message;
1494
+ const data = response.data;
1495
+ if (response.success && data) {
1496
+ switch (args.action) {
1497
+ case "search":
1498
+ if (Array.isArray(data) && data.length > 0) {
1499
+ textContent += "\n\nFound documents:\n";
1500
+ for (const item of data) {
1501
+ textContent += `\n📄 ${item.title} (${item.category})\n`;
1502
+ if (item.snippets && item.snippets.length > 0) {
1503
+ textContent += ` ${item.snippets[0].slice(0, 150)}...\n`;
1504
+ }
1505
+ }
1506
+ }
1507
+ break;
1508
+ case "get_schema":
1509
+ if (data.title) {
1510
+ textContent += `\n\n${data.title}\n`;
1511
+ textContent += `${"=".repeat(data.title.length)}\n\n`;
1512
+ }
1513
+ if (data.description) {
1514
+ textContent += `${data.description}\n\n`;
1515
+ }
1516
+ if (data.dataSchema) {
1517
+ textContent += "## Data Schema\n\n";
1518
+ textContent += "```typescript\n";
1519
+ textContent += data.dataSchema.slice(0, 1000);
1520
+ textContent += "\n```\n";
1521
+ }
1522
+ if (data.relatedOperations && data.relatedOperations.length > 0) {
1523
+ textContent += `\nRelated operations: ${data.relatedOperations.join(", ")}\n`;
1524
+ }
1525
+ break;
1526
+ case "learn_example":
1527
+ if (data.name) {
1528
+ textContent += `\n\n📚 ${data.title || data.name}\n`;
1529
+ textContent += `${"=".repeat((data.title || data.name).length)}\n\n`;
1530
+ }
1531
+ if (data.description) {
1532
+ textContent += `${data.description}\n\n`;
1533
+ }
1534
+ if (data.documents && data.documents.length > 0) {
1535
+ textContent += "Documents:\n";
1536
+ for (const doc of data.documents) {
1537
+ textContent += ` • ${doc.title}\n`;
1538
+ }
1539
+ }
1540
+ if (data.hasTestResults) {
1541
+ textContent += "\n✓ Test results available\n";
1542
+ }
1543
+ break;
1544
+ case "guide":
1545
+ if (data.content) {
1546
+ const maxLength = 3000;
1547
+ let content = data.content;
1548
+ if (content.length > maxLength) {
1549
+ content = content.slice(0, maxLength) + "\n\n... [Content truncated, use search for specific topics]";
1550
+ }
1551
+ textContent += `\n\n${content}\n`;
1552
+ }
1553
+ break;
1554
+ case "list_operations":
1555
+ case "list_examples":
1556
+ if (Array.isArray(response.data)) {
1557
+ textContent += `\n\nAvailable ${args.action === "list_operations" ? "operations" : "examples"}:\n`;
1558
+ for (const item of response.data) {
1559
+ textContent += ` • ${item.name}${item.title ? ` - ${item.title}` : ""}\n`;
1560
+ }
1561
+ }
1562
+ break;
1563
+ }
1564
+ }
1565
+ if (response.suggestions && response.suggestions.length > 0) {
1566
+ textContent += "\n\n💡 Suggestions:\n";
1567
+ for (const suggestion of response.suggestions) {
1568
+ textContent += ` • ${suggestion}\n`;
1569
+ }
1570
+ }
1457
1571
  return {
1458
- content: [
1459
- {
1572
+ content: [{
1460
1573
  type: "text",
1461
- text: message,
1462
- },
1463
- ],
1464
- structuredContent: {
1465
- documentation_url: url,
1466
- topic: normalizedTopic,
1467
- original_topic: args.topic,
1468
- message: message,
1469
- },
1574
+ text: textContent,
1575
+ }],
1576
+ structuredContent: response,
1470
1577
  };
1471
1578
  });
1472
1579
  const transport = new StdioServerTransport();
@@ -1049,17 +1049,17 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1049
1049
  account: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
1050
1050
  permission_guard: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1051
1051
  no_cache: z.ZodOptional<z.ZodBoolean>;
1052
- network: z.ZodOptional<z.ZodEnum<[import("wowok").ENTRYPOINT.Localnet, import("wowok").ENTRYPOINT.Testnet]>>;
1052
+ network: z.ZodOptional<z.ZodEnum<[import("@wowok/wowok").ENTRYPOINT.Localnet, import("@wowok/wowok").ENTRYPOINT.Testnet]>>;
1053
1053
  referrer: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1054
1054
  }, "strict", z.ZodTypeAny, {
1055
1055
  account: string;
1056
1056
  no_cache?: boolean | undefined;
1057
- network?: import("wowok").ENTRYPOINT | undefined;
1057
+ network?: import("@wowok/wowok").ENTRYPOINT | undefined;
1058
1058
  permission_guard?: string[] | undefined;
1059
1059
  referrer?: string | undefined;
1060
1060
  }, {
1061
1061
  no_cache?: boolean | undefined;
1062
- network?: import("wowok").ENTRYPOINT | undefined;
1062
+ network?: import("@wowok/wowok").ENTRYPOINT | undefined;
1063
1063
  account?: string | undefined;
1064
1064
  permission_guard?: string[] | undefined;
1065
1065
  referrer?: string | undefined;
@@ -1081,7 +1081,7 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1081
1081
  submission: z.ZodArray<z.ZodObject<{
1082
1082
  identifier: z.ZodNumber;
1083
1083
  b_submission: z.ZodBoolean;
1084
- value_type: z.ZodUnion<[z.ZodLiteral<import("wowok").ValueType.Bool>, z.ZodLiteral<import("wowok").ValueType.Address>, z.ZodLiteral<import("wowok").ValueType.String>, z.ZodLiteral<import("wowok").ValueType.U8>, z.ZodLiteral<import("wowok").ValueType.U16>, z.ZodLiteral<import("wowok").ValueType.U32>, z.ZodLiteral<import("wowok").ValueType.U64>, z.ZodLiteral<import("wowok").ValueType.U128>, z.ZodLiteral<import("wowok").ValueType.U256>, z.ZodLiteral<import("wowok").ValueType.VecBool>, z.ZodLiteral<import("wowok").ValueType.VecAddress>, z.ZodLiteral<import("wowok").ValueType.VecString>, z.ZodLiteral<import("wowok").ValueType.VecU8>, z.ZodLiteral<import("wowok").ValueType.VecU16>, z.ZodLiteral<import("wowok").ValueType.VecU32>, z.ZodLiteral<import("wowok").ValueType.VecU64>, z.ZodLiteral<import("wowok").ValueType.VecU128>, z.ZodLiteral<import("wowok").ValueType.VecU256>, z.ZodLiteral<import("wowok").ValueType.VecVecU8>, z.ZodLiteral<"Bool">, z.ZodLiteral<"Address">, z.ZodLiteral<"String">, z.ZodLiteral<"U8">, z.ZodLiteral<"U16">, z.ZodLiteral<"U32">, z.ZodLiteral<"U64">, z.ZodLiteral<"U128">, z.ZodLiteral<"U256">, z.ZodLiteral<"VecBool">, z.ZodLiteral<"VecAddress">, z.ZodLiteral<"VecString">, z.ZodLiteral<"VecU8">, z.ZodLiteral<"VecU16">, z.ZodLiteral<"VecU32">, z.ZodLiteral<"VecU64">, z.ZodLiteral<"VecU128">, z.ZodLiteral<"VecU256">, z.ZodLiteral<"VecVecU8">, z.ZodLiteral<"bool">, z.ZodLiteral<"address">, z.ZodLiteral<"string">, z.ZodLiteral<"u8">, z.ZodLiteral<"u16">, z.ZodLiteral<"u32">, z.ZodLiteral<"u64">, z.ZodLiteral<"u128">, z.ZodLiteral<"u256">, z.ZodLiteral<"vecbool">, z.ZodLiteral<"vecaddress">, z.ZodLiteral<"vecstring">, z.ZodLiteral<"vecu8">, z.ZodLiteral<"vecu16">, z.ZodLiteral<"vecu32">, z.ZodLiteral<"vecu64">, z.ZodLiteral<"vecu128">, z.ZodLiteral<"vecu256">, z.ZodLiteral<"vecvecu8">]>;
1084
+ value_type: z.ZodUnion<[z.ZodLiteral<import("@wowok/wowok").ValueType.Bool>, z.ZodLiteral<import("@wowok/wowok").ValueType.Address>, z.ZodLiteral<import("@wowok/wowok").ValueType.String>, z.ZodLiteral<import("@wowok/wowok").ValueType.U8>, z.ZodLiteral<import("@wowok/wowok").ValueType.U16>, z.ZodLiteral<import("@wowok/wowok").ValueType.U32>, z.ZodLiteral<import("@wowok/wowok").ValueType.U64>, z.ZodLiteral<import("@wowok/wowok").ValueType.U128>, z.ZodLiteral<import("@wowok/wowok").ValueType.U256>, z.ZodLiteral<import("@wowok/wowok").ValueType.VecBool>, z.ZodLiteral<import("@wowok/wowok").ValueType.VecAddress>, z.ZodLiteral<import("@wowok/wowok").ValueType.VecString>, z.ZodLiteral<import("@wowok/wowok").ValueType.VecU8>, z.ZodLiteral<import("@wowok/wowok").ValueType.VecU16>, z.ZodLiteral<import("@wowok/wowok").ValueType.VecU32>, z.ZodLiteral<import("@wowok/wowok").ValueType.VecU64>, z.ZodLiteral<import("@wowok/wowok").ValueType.VecU128>, z.ZodLiteral<import("@wowok/wowok").ValueType.VecU256>, z.ZodLiteral<import("@wowok/wowok").ValueType.VecVecU8>, z.ZodLiteral<"Bool">, z.ZodLiteral<"Address">, z.ZodLiteral<"String">, z.ZodLiteral<"U8">, z.ZodLiteral<"U16">, z.ZodLiteral<"U32">, z.ZodLiteral<"U64">, z.ZodLiteral<"U128">, z.ZodLiteral<"U256">, z.ZodLiteral<"VecBool">, z.ZodLiteral<"VecAddress">, z.ZodLiteral<"VecString">, z.ZodLiteral<"VecU8">, z.ZodLiteral<"VecU16">, z.ZodLiteral<"VecU32">, z.ZodLiteral<"VecU64">, z.ZodLiteral<"VecU128">, z.ZodLiteral<"VecU256">, z.ZodLiteral<"VecVecU8">, z.ZodLiteral<"bool">, z.ZodLiteral<"address">, z.ZodLiteral<"string">, z.ZodLiteral<"u8">, z.ZodLiteral<"u16">, z.ZodLiteral<"u32">, z.ZodLiteral<"u64">, z.ZodLiteral<"u128">, z.ZodLiteral<"u256">, z.ZodLiteral<"vecbool">, z.ZodLiteral<"vecaddress">, z.ZodLiteral<"vecstring">, z.ZodLiteral<"vecu8">, z.ZodLiteral<"vecu16">, z.ZodLiteral<"vecu32">, z.ZodLiteral<"vecu64">, z.ZodLiteral<"vecu128">, z.ZodLiteral<"vecu256">, z.ZodLiteral<"vecvecu8">]>;
1085
1085
  value: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodObject<{
1086
1086
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1087
1087
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -1118,11 +1118,11 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1118
1118
  }>, z.ZodArray<z.ZodString, "many">]>, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">]>>;
1119
1119
  name: z.ZodDefault<z.ZodString>;
1120
1120
  } & {
1121
- object_type: z.ZodOptional<z.ZodEnum<[import("wowok").ObjectType.Permission, import("wowok").ObjectType.Repository, import("wowok").ObjectType.Arb, import("wowok").ObjectType.Arbitration, import("wowok").ObjectType.Service, import("wowok").ObjectType.Machine, import("wowok").ObjectType.Order, import("wowok").ObjectType.Progress, import("wowok").ObjectType.Payment, import("wowok").ObjectType.Treasury, import("wowok").ObjectType.Guard, import("wowok").ObjectType.Demand, import("wowok").ObjectType.Passport, import("wowok").ObjectType.Allocation, import("wowok").ObjectType.Resource, import("wowok").ObjectType.Reward, import("wowok").ObjectType.Discount, import("wowok").ObjectType.EntityRegistrar, import("wowok").ObjectType.EntityLinker, import("wowok").ObjectType.Proof, import("wowok").ObjectType.WReceivedObject, import("wowok").ObjectType.Contact, import("wowok").ObjectType.TableItem_ProgressHistory, import("wowok").ObjectType.TableItem_PermissionPerm, import("wowok").ObjectType.TableItem_DemandPresenter, import("wowok").ObjectType.TableItem_MachineNode, import("wowok").ObjectType.TableItem_TreasuryHistory, import("wowok").ObjectType.TableItem_RepositoryData, import("wowok").ObjectType.TableItem_RewardRecord, import("wowok").ObjectType.TableItem_EntityLinker, import("wowok").ObjectType.TableItem_AddressMark, import("wowok").ObjectType.TableItem_EntityRegistrar]>>;
1121
+ object_type: z.ZodOptional<z.ZodEnum<[import("@wowok/wowok").ObjectType.Permission, import("@wowok/wowok").ObjectType.Repository, import("@wowok/wowok").ObjectType.Arb, import("@wowok/wowok").ObjectType.Arbitration, import("@wowok/wowok").ObjectType.Service, import("@wowok/wowok").ObjectType.Machine, import("@wowok/wowok").ObjectType.Order, import("@wowok/wowok").ObjectType.Progress, import("@wowok/wowok").ObjectType.Payment, import("@wowok/wowok").ObjectType.Treasury, import("@wowok/wowok").ObjectType.Guard, import("@wowok/wowok").ObjectType.Demand, import("@wowok/wowok").ObjectType.Passport, import("@wowok/wowok").ObjectType.Allocation, import("@wowok/wowok").ObjectType.Resource, import("@wowok/wowok").ObjectType.Reward, import("@wowok/wowok").ObjectType.Discount, import("@wowok/wowok").ObjectType.EntityRegistrar, import("@wowok/wowok").ObjectType.EntityLinker, import("@wowok/wowok").ObjectType.Proof, import("@wowok/wowok").ObjectType.WReceivedObject, import("@wowok/wowok").ObjectType.Contact, import("@wowok/wowok").ObjectType.TableItem_ProgressHistory, import("@wowok/wowok").ObjectType.TableItem_PermissionPerm, import("@wowok/wowok").ObjectType.TableItem_DemandPresenter, import("@wowok/wowok").ObjectType.TableItem_MachineNode, import("@wowok/wowok").ObjectType.TableItem_TreasuryHistory, import("@wowok/wowok").ObjectType.TableItem_RepositoryData, import("@wowok/wowok").ObjectType.TableItem_RewardRecord, import("@wowok/wowok").ObjectType.TableItem_EntityLinker, import("@wowok/wowok").ObjectType.TableItem_AddressMark, import("@wowok/wowok").ObjectType.TableItem_EntityRegistrar]>>;
1122
1122
  }, "strict", z.ZodTypeAny, {
1123
1123
  identifier: number;
1124
1124
  b_submission: boolean;
1125
- value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("wowok").ValueType.Bool | import("wowok").ValueType.Address | import("wowok").ValueType.String | import("wowok").ValueType.U8 | import("wowok").ValueType.U16 | import("wowok").ValueType.U32 | import("wowok").ValueType.U64 | import("wowok").ValueType.U128 | import("wowok").ValueType.U256 | import("wowok").ValueType.VecBool | import("wowok").ValueType.VecAddress | import("wowok").ValueType.VecString | import("wowok").ValueType.VecU8 | import("wowok").ValueType.VecU16 | import("wowok").ValueType.VecU32 | import("wowok").ValueType.VecU64 | import("wowok").ValueType.VecU128 | import("wowok").ValueType.VecU256 | import("wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1125
+ value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("@wowok/wowok").ValueType.Bool | import("@wowok/wowok").ValueType.Address | import("@wowok/wowok").ValueType.String | import("@wowok/wowok").ValueType.U8 | import("@wowok/wowok").ValueType.U16 | import("@wowok/wowok").ValueType.U32 | import("@wowok/wowok").ValueType.U64 | import("@wowok/wowok").ValueType.U128 | import("@wowok/wowok").ValueType.U256 | import("@wowok/wowok").ValueType.VecBool | import("@wowok/wowok").ValueType.VecAddress | import("@wowok/wowok").ValueType.VecString | import("@wowok/wowok").ValueType.VecU8 | import("@wowok/wowok").ValueType.VecU16 | import("@wowok/wowok").ValueType.VecU32 | import("@wowok/wowok").ValueType.VecU64 | import("@wowok/wowok").ValueType.VecU128 | import("@wowok/wowok").ValueType.VecU256 | import("@wowok/wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1126
1126
  name: string;
1127
1127
  value?: string | number | boolean | {
1128
1128
  name_or_address?: string | undefined;
@@ -1134,11 +1134,11 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1134
1134
  }[];
1135
1135
  check_all_founded?: boolean | undefined;
1136
1136
  } | string[] | boolean[] | number[] | number[][] | undefined;
1137
- object_type?: import("wowok").ObjectType | undefined;
1137
+ object_type?: import("@wowok/wowok").ObjectType | undefined;
1138
1138
  }, {
1139
1139
  identifier: number;
1140
1140
  b_submission: boolean;
1141
- value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("wowok").ValueType.Bool | import("wowok").ValueType.Address | import("wowok").ValueType.String | import("wowok").ValueType.U8 | import("wowok").ValueType.U16 | import("wowok").ValueType.U32 | import("wowok").ValueType.U64 | import("wowok").ValueType.U128 | import("wowok").ValueType.U256 | import("wowok").ValueType.VecBool | import("wowok").ValueType.VecAddress | import("wowok").ValueType.VecString | import("wowok").ValueType.VecU8 | import("wowok").ValueType.VecU16 | import("wowok").ValueType.VecU32 | import("wowok").ValueType.VecU64 | import("wowok").ValueType.VecU128 | import("wowok").ValueType.VecU256 | import("wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1141
+ value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("@wowok/wowok").ValueType.Bool | import("@wowok/wowok").ValueType.Address | import("@wowok/wowok").ValueType.String | import("@wowok/wowok").ValueType.U8 | import("@wowok/wowok").ValueType.U16 | import("@wowok/wowok").ValueType.U32 | import("@wowok/wowok").ValueType.U64 | import("@wowok/wowok").ValueType.U128 | import("@wowok/wowok").ValueType.U256 | import("@wowok/wowok").ValueType.VecBool | import("@wowok/wowok").ValueType.VecAddress | import("@wowok/wowok").ValueType.VecString | import("@wowok/wowok").ValueType.VecU8 | import("@wowok/wowok").ValueType.VecU16 | import("@wowok/wowok").ValueType.VecU32 | import("@wowok/wowok").ValueType.VecU64 | import("@wowok/wowok").ValueType.VecU128 | import("@wowok/wowok").ValueType.VecU256 | import("@wowok/wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1142
1142
  value?: string | number | boolean | {
1143
1143
  name_or_address?: string | undefined;
1144
1144
  local_mark_first?: boolean | undefined;
@@ -1150,14 +1150,14 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1150
1150
  check_all_founded?: boolean | undefined;
1151
1151
  } | string[] | boolean[] | number[] | number[][] | undefined;
1152
1152
  name?: string | undefined;
1153
- object_type?: import("wowok").ObjectType | undefined;
1153
+ object_type?: import("@wowok/wowok").ObjectType | undefined;
1154
1154
  }>, "many">;
1155
1155
  }, "strict", z.ZodTypeAny, {
1156
1156
  guard: string;
1157
1157
  submission: {
1158
1158
  identifier: number;
1159
1159
  b_submission: boolean;
1160
- value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("wowok").ValueType.Bool | import("wowok").ValueType.Address | import("wowok").ValueType.String | import("wowok").ValueType.U8 | import("wowok").ValueType.U16 | import("wowok").ValueType.U32 | import("wowok").ValueType.U64 | import("wowok").ValueType.U128 | import("wowok").ValueType.U256 | import("wowok").ValueType.VecBool | import("wowok").ValueType.VecAddress | import("wowok").ValueType.VecString | import("wowok").ValueType.VecU8 | import("wowok").ValueType.VecU16 | import("wowok").ValueType.VecU32 | import("wowok").ValueType.VecU64 | import("wowok").ValueType.VecU128 | import("wowok").ValueType.VecU256 | import("wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1160
+ value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("@wowok/wowok").ValueType.Bool | import("@wowok/wowok").ValueType.Address | import("@wowok/wowok").ValueType.String | import("@wowok/wowok").ValueType.U8 | import("@wowok/wowok").ValueType.U16 | import("@wowok/wowok").ValueType.U32 | import("@wowok/wowok").ValueType.U64 | import("@wowok/wowok").ValueType.U128 | import("@wowok/wowok").ValueType.U256 | import("@wowok/wowok").ValueType.VecBool | import("@wowok/wowok").ValueType.VecAddress | import("@wowok/wowok").ValueType.VecString | import("@wowok/wowok").ValueType.VecU8 | import("@wowok/wowok").ValueType.VecU16 | import("@wowok/wowok").ValueType.VecU32 | import("@wowok/wowok").ValueType.VecU64 | import("@wowok/wowok").ValueType.VecU128 | import("@wowok/wowok").ValueType.VecU256 | import("@wowok/wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1161
1161
  name: string;
1162
1162
  value?: string | number | boolean | {
1163
1163
  name_or_address?: string | undefined;
@@ -1169,14 +1169,14 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1169
1169
  }[];
1170
1170
  check_all_founded?: boolean | undefined;
1171
1171
  } | string[] | boolean[] | number[] | number[][] | undefined;
1172
- object_type?: import("wowok").ObjectType | undefined;
1172
+ object_type?: import("@wowok/wowok").ObjectType | undefined;
1173
1173
  }[];
1174
1174
  }, {
1175
1175
  guard: string;
1176
1176
  submission: {
1177
1177
  identifier: number;
1178
1178
  b_submission: boolean;
1179
- value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("wowok").ValueType.Bool | import("wowok").ValueType.Address | import("wowok").ValueType.String | import("wowok").ValueType.U8 | import("wowok").ValueType.U16 | import("wowok").ValueType.U32 | import("wowok").ValueType.U64 | import("wowok").ValueType.U128 | import("wowok").ValueType.U256 | import("wowok").ValueType.VecBool | import("wowok").ValueType.VecAddress | import("wowok").ValueType.VecString | import("wowok").ValueType.VecU8 | import("wowok").ValueType.VecU16 | import("wowok").ValueType.VecU32 | import("wowok").ValueType.VecU64 | import("wowok").ValueType.VecU128 | import("wowok").ValueType.VecU256 | import("wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1179
+ value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("@wowok/wowok").ValueType.Bool | import("@wowok/wowok").ValueType.Address | import("@wowok/wowok").ValueType.String | import("@wowok/wowok").ValueType.U8 | import("@wowok/wowok").ValueType.U16 | import("@wowok/wowok").ValueType.U32 | import("@wowok/wowok").ValueType.U64 | import("@wowok/wowok").ValueType.U128 | import("@wowok/wowok").ValueType.U256 | import("@wowok/wowok").ValueType.VecBool | import("@wowok/wowok").ValueType.VecAddress | import("@wowok/wowok").ValueType.VecString | import("@wowok/wowok").ValueType.VecU8 | import("@wowok/wowok").ValueType.VecU16 | import("@wowok/wowok").ValueType.VecU32 | import("@wowok/wowok").ValueType.VecU64 | import("@wowok/wowok").ValueType.VecU128 | import("@wowok/wowok").ValueType.VecU256 | import("@wowok/wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1180
1180
  value?: string | number | boolean | {
1181
1181
  name_or_address?: string | undefined;
1182
1182
  local_mark_first?: boolean | undefined;
@@ -1188,7 +1188,7 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1188
1188
  check_all_founded?: boolean | undefined;
1189
1189
  } | string[] | boolean[] | number[] | number[][] | undefined;
1190
1190
  name?: string | undefined;
1191
- object_type?: import("wowok").ObjectType | undefined;
1191
+ object_type?: import("@wowok/wowok").ObjectType | undefined;
1192
1192
  }[];
1193
1193
  }>, "many">;
1194
1194
  }, "strict", z.ZodTypeAny, {
@@ -1202,7 +1202,7 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1202
1202
  submission: {
1203
1203
  identifier: number;
1204
1204
  b_submission: boolean;
1205
- value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("wowok").ValueType.Bool | import("wowok").ValueType.Address | import("wowok").ValueType.String | import("wowok").ValueType.U8 | import("wowok").ValueType.U16 | import("wowok").ValueType.U32 | import("wowok").ValueType.U64 | import("wowok").ValueType.U128 | import("wowok").ValueType.U256 | import("wowok").ValueType.VecBool | import("wowok").ValueType.VecAddress | import("wowok").ValueType.VecString | import("wowok").ValueType.VecU8 | import("wowok").ValueType.VecU16 | import("wowok").ValueType.VecU32 | import("wowok").ValueType.VecU64 | import("wowok").ValueType.VecU128 | import("wowok").ValueType.VecU256 | import("wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1205
+ value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("@wowok/wowok").ValueType.Bool | import("@wowok/wowok").ValueType.Address | import("@wowok/wowok").ValueType.String | import("@wowok/wowok").ValueType.U8 | import("@wowok/wowok").ValueType.U16 | import("@wowok/wowok").ValueType.U32 | import("@wowok/wowok").ValueType.U64 | import("@wowok/wowok").ValueType.U128 | import("@wowok/wowok").ValueType.U256 | import("@wowok/wowok").ValueType.VecBool | import("@wowok/wowok").ValueType.VecAddress | import("@wowok/wowok").ValueType.VecString | import("@wowok/wowok").ValueType.VecU8 | import("@wowok/wowok").ValueType.VecU16 | import("@wowok/wowok").ValueType.VecU32 | import("@wowok/wowok").ValueType.VecU64 | import("@wowok/wowok").ValueType.VecU128 | import("@wowok/wowok").ValueType.VecU256 | import("@wowok/wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1206
1206
  name: string;
1207
1207
  value?: string | number | boolean | {
1208
1208
  name_or_address?: string | undefined;
@@ -1214,7 +1214,7 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1214
1214
  }[];
1215
1215
  check_all_founded?: boolean | undefined;
1216
1216
  } | string[] | boolean[] | number[] | number[][] | undefined;
1217
- object_type?: import("wowok").ObjectType | undefined;
1217
+ object_type?: import("@wowok/wowok").ObjectType | undefined;
1218
1218
  }[];
1219
1219
  }[];
1220
1220
  }, {
@@ -1228,7 +1228,7 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1228
1228
  submission: {
1229
1229
  identifier: number;
1230
1230
  b_submission: boolean;
1231
- value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("wowok").ValueType.Bool | import("wowok").ValueType.Address | import("wowok").ValueType.String | import("wowok").ValueType.U8 | import("wowok").ValueType.U16 | import("wowok").ValueType.U32 | import("wowok").ValueType.U64 | import("wowok").ValueType.U128 | import("wowok").ValueType.U256 | import("wowok").ValueType.VecBool | import("wowok").ValueType.VecAddress | import("wowok").ValueType.VecString | import("wowok").ValueType.VecU8 | import("wowok").ValueType.VecU16 | import("wowok").ValueType.VecU32 | import("wowok").ValueType.VecU64 | import("wowok").ValueType.VecU128 | import("wowok").ValueType.VecU256 | import("wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1231
+ value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("@wowok/wowok").ValueType.Bool | import("@wowok/wowok").ValueType.Address | import("@wowok/wowok").ValueType.String | import("@wowok/wowok").ValueType.U8 | import("@wowok/wowok").ValueType.U16 | import("@wowok/wowok").ValueType.U32 | import("@wowok/wowok").ValueType.U64 | import("@wowok/wowok").ValueType.U128 | import("@wowok/wowok").ValueType.U256 | import("@wowok/wowok").ValueType.VecBool | import("@wowok/wowok").ValueType.VecAddress | import("@wowok/wowok").ValueType.VecString | import("@wowok/wowok").ValueType.VecU8 | import("@wowok/wowok").ValueType.VecU16 | import("@wowok/wowok").ValueType.VecU32 | import("@wowok/wowok").ValueType.VecU64 | import("@wowok/wowok").ValueType.VecU128 | import("@wowok/wowok").ValueType.VecU256 | import("@wowok/wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1232
1232
  value?: string | number | boolean | {
1233
1233
  name_or_address?: string | undefined;
1234
1234
  local_mark_first?: boolean | undefined;
@@ -1240,7 +1240,7 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1240
1240
  check_all_founded?: boolean | undefined;
1241
1241
  } | string[] | boolean[] | number[] | number[][] | undefined;
1242
1242
  name?: string | undefined;
1243
- object_type?: import("wowok").ObjectType | undefined;
1243
+ object_type?: import("@wowok/wowok").ObjectType | undefined;
1244
1244
  }[];
1245
1245
  }[];
1246
1246
  }>>;
@@ -1311,7 +1311,7 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1311
1311
  submission: {
1312
1312
  identifier: number;
1313
1313
  b_submission: boolean;
1314
- value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("wowok").ValueType.Bool | import("wowok").ValueType.Address | import("wowok").ValueType.String | import("wowok").ValueType.U8 | import("wowok").ValueType.U16 | import("wowok").ValueType.U32 | import("wowok").ValueType.U64 | import("wowok").ValueType.U128 | import("wowok").ValueType.U256 | import("wowok").ValueType.VecBool | import("wowok").ValueType.VecAddress | import("wowok").ValueType.VecString | import("wowok").ValueType.VecU8 | import("wowok").ValueType.VecU16 | import("wowok").ValueType.VecU32 | import("wowok").ValueType.VecU64 | import("wowok").ValueType.VecU128 | import("wowok").ValueType.VecU256 | import("wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1314
+ value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("@wowok/wowok").ValueType.Bool | import("@wowok/wowok").ValueType.Address | import("@wowok/wowok").ValueType.String | import("@wowok/wowok").ValueType.U8 | import("@wowok/wowok").ValueType.U16 | import("@wowok/wowok").ValueType.U32 | import("@wowok/wowok").ValueType.U64 | import("@wowok/wowok").ValueType.U128 | import("@wowok/wowok").ValueType.U256 | import("@wowok/wowok").ValueType.VecBool | import("@wowok/wowok").ValueType.VecAddress | import("@wowok/wowok").ValueType.VecString | import("@wowok/wowok").ValueType.VecU8 | import("@wowok/wowok").ValueType.VecU16 | import("@wowok/wowok").ValueType.VecU32 | import("@wowok/wowok").ValueType.VecU64 | import("@wowok/wowok").ValueType.VecU128 | import("@wowok/wowok").ValueType.VecU256 | import("@wowok/wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1315
1315
  name: string;
1316
1316
  value?: string | number | boolean | {
1317
1317
  name_or_address?: string | undefined;
@@ -1323,14 +1323,14 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1323
1323
  }[];
1324
1324
  check_all_founded?: boolean | undefined;
1325
1325
  } | string[] | boolean[] | number[] | number[][] | undefined;
1326
- object_type?: import("wowok").ObjectType | undefined;
1326
+ object_type?: import("@wowok/wowok").ObjectType | undefined;
1327
1327
  }[];
1328
1328
  }[];
1329
1329
  } | undefined;
1330
1330
  env?: {
1331
1331
  account: string;
1332
1332
  no_cache?: boolean | undefined;
1333
- network?: import("wowok").ENTRYPOINT | undefined;
1333
+ network?: import("@wowok/wowok").ENTRYPOINT | undefined;
1334
1334
  permission_guard?: string[] | undefined;
1335
1335
  referrer?: string | undefined;
1336
1336
  } | undefined;
@@ -1401,7 +1401,7 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1401
1401
  submission: {
1402
1402
  identifier: number;
1403
1403
  b_submission: boolean;
1404
- value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("wowok").ValueType.Bool | import("wowok").ValueType.Address | import("wowok").ValueType.String | import("wowok").ValueType.U8 | import("wowok").ValueType.U16 | import("wowok").ValueType.U32 | import("wowok").ValueType.U64 | import("wowok").ValueType.U128 | import("wowok").ValueType.U256 | import("wowok").ValueType.VecBool | import("wowok").ValueType.VecAddress | import("wowok").ValueType.VecString | import("wowok").ValueType.VecU8 | import("wowok").ValueType.VecU16 | import("wowok").ValueType.VecU32 | import("wowok").ValueType.VecU64 | import("wowok").ValueType.VecU128 | import("wowok").ValueType.VecU256 | import("wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1404
+ value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("@wowok/wowok").ValueType.Bool | import("@wowok/wowok").ValueType.Address | import("@wowok/wowok").ValueType.String | import("@wowok/wowok").ValueType.U8 | import("@wowok/wowok").ValueType.U16 | import("@wowok/wowok").ValueType.U32 | import("@wowok/wowok").ValueType.U64 | import("@wowok/wowok").ValueType.U128 | import("@wowok/wowok").ValueType.U256 | import("@wowok/wowok").ValueType.VecBool | import("@wowok/wowok").ValueType.VecAddress | import("@wowok/wowok").ValueType.VecString | import("@wowok/wowok").ValueType.VecU8 | import("@wowok/wowok").ValueType.VecU16 | import("@wowok/wowok").ValueType.VecU32 | import("@wowok/wowok").ValueType.VecU64 | import("@wowok/wowok").ValueType.VecU128 | import("@wowok/wowok").ValueType.VecU256 | import("@wowok/wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
1405
1405
  value?: string | number | boolean | {
1406
1406
  name_or_address?: string | undefined;
1407
1407
  local_mark_first?: boolean | undefined;
@@ -1413,13 +1413,13 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1413
1413
  check_all_founded?: boolean | undefined;
1414
1414
  } | string[] | boolean[] | number[] | number[][] | undefined;
1415
1415
  name?: string | undefined;
1416
- object_type?: import("wowok").ObjectType | undefined;
1416
+ object_type?: import("@wowok/wowok").ObjectType | undefined;
1417
1417
  }[];
1418
1418
  }[];
1419
1419
  } | undefined;
1420
1420
  env?: {
1421
1421
  no_cache?: boolean | undefined;
1422
- network?: import("wowok").ENTRYPOINT | undefined;
1422
+ network?: import("@wowok/wowok").ENTRYPOINT | undefined;
1423
1423
  account?: string | undefined;
1424
1424
  permission_guard?: string[] | undefined;
1425
1425
  referrer?: string | undefined;