@wowok/agent-mcp 2.5.5 → 2.6.1

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 (146) hide show
  1. package/README.md +5 -3
  2. package/dist/config/runtime.js +3 -6
  3. package/dist/extensions/capability-manifest.d.ts +125 -0
  4. package/dist/extensions/capability-manifest.js +594 -0
  5. package/dist/extensions/constraint-registry.d.ts +24 -0
  6. package/dist/extensions/constraint-registry.js +196 -0
  7. package/dist/extensions/index.d.ts +12 -0
  8. package/dist/extensions/index.js +6 -0
  9. package/dist/extensions/metric-registry.d.ts +26 -0
  10. package/dist/extensions/metric-registry.js +257 -0
  11. package/dist/extensions/mode-evaluator.d.ts +15 -0
  12. package/dist/extensions/mode-evaluator.js +170 -0
  13. package/dist/extensions/modes.d.ts +2 -0
  14. package/dist/extensions/modes.js +407 -0
  15. package/dist/extensions/registry.d.ts +48 -0
  16. package/dist/extensions/registry.js +629 -0
  17. package/dist/extensions/types.d.ts +218 -0
  18. package/dist/extensions/types.js +1 -0
  19. package/dist/harness/checkpoint.js +2 -2
  20. package/dist/knowledge/deployment-scanner.d.ts +3 -0
  21. package/dist/knowledge/deployment-scanner.js +64 -3
  22. package/dist/knowledge/flywheel-loop.js +2 -5
  23. package/dist/knowledge/guard-risk.d.ts +13 -0
  24. package/dist/knowledge/guard-risk.js +57 -0
  25. package/dist/knowledge/guard-templates.js +278 -0
  26. package/dist/knowledge/machine-templates.js +20 -1
  27. package/dist/knowledge/overrides-loader.js +2 -4
  28. package/dist/knowledge/progress-ledger.js +3 -0
  29. package/dist/knowledge/progress-translation.js +5 -1
  30. package/dist/knowledge/service-confirm.d.ts +14 -5
  31. package/dist/knowledge/service-confirm.js +116 -8
  32. package/dist/knowledge/tool-constraints.js +6 -2
  33. package/dist/loop-engineering/improve.js +2 -4
  34. package/dist/project/deployment-bridge.d.ts +5 -0
  35. package/dist/project/deployment-bridge.js +119 -0
  36. package/dist/project/deployment-doc.d.ts +3 -0
  37. package/dist/project/deployment-doc.js +72 -10
  38. package/dist/project/evaluation.d.ts +2 -0
  39. package/dist/project/evaluation.js +578 -86
  40. package/dist/project/graph-builder.d.ts +4 -1
  41. package/dist/project/graph-builder.js +141 -63
  42. package/dist/project/graph.d.ts +1 -0
  43. package/dist/project/handlers.d.ts +221 -5
  44. package/dist/project/handlers.js +933 -14
  45. package/dist/project/index.js +2 -6
  46. package/dist/project/project-store.js +2 -5
  47. package/dist/project/stage-gate.d.ts +4 -0
  48. package/dist/project/stage-gate.js +64 -5
  49. package/dist/project/task-tracker.d.ts +26 -0
  50. package/dist/project/task-tracker.js +78 -0
  51. package/dist/safety/preview.js +16 -0
  52. package/dist/schema/call/allocation.d.ts +16 -16
  53. package/dist/schema/call/base.d.ts +21 -13
  54. package/dist/schema/call/base.js +27 -6
  55. package/dist/schema/call/bridge.d.ts +5 -5
  56. package/dist/schema/call/bridge.js +3 -1
  57. package/dist/schema/call/demand.d.ts +23 -31
  58. package/dist/schema/call/guard.js +1 -1
  59. package/dist/schema/call/machine.d.ts +402 -376
  60. package/dist/schema/call/order.d.ts +149 -228
  61. package/dist/schema/call/order.js +7 -3
  62. package/dist/schema/call/payment.d.ts +183 -3
  63. package/dist/schema/call/payment.js +21 -3
  64. package/dist/schema/call/personal.d.ts +241 -52
  65. package/dist/schema/call/progress.d.ts +53 -61
  66. package/dist/schema/call/progress.js +18 -4
  67. package/dist/schema/call/repository.d.ts +23 -31
  68. package/dist/schema/call/semantic.d.ts +1 -1
  69. package/dist/schema/call/semantic.js +30 -1
  70. package/dist/schema/call/service.d.ts +95 -119
  71. package/dist/schema/call/service.js +22 -1
  72. package/dist/schema/common/index.d.ts +11 -2
  73. package/dist/schema/common/index.js +43 -14
  74. package/dist/schema/config/index.d.ts +12 -12
  75. package/dist/schema/local/index.d.ts +140 -143
  76. package/dist/schema/local/index.js +44 -23
  77. package/dist/schema/messenger/index.d.ts +290 -62
  78. package/dist/schema/messenger/index.js +2 -2
  79. package/dist/schema/operations.d.ts +680 -545
  80. package/dist/schema/operations.js +22 -0
  81. package/dist/schema/project/index.d.ts +2064 -84
  82. package/dist/schema/project/index.js +354 -12
  83. package/dist/schema/query/index.d.ts +715 -354
  84. package/dist/schema/query/index.js +164 -31
  85. package/dist/schema/schema-query/index.d.ts +15 -3
  86. package/dist/schema/schema-query/index.js +23 -5
  87. package/dist/schema/trust/index.d.ts +8 -8
  88. package/dist/schema/utils/node-parser.js +7 -4
  89. package/dist/schema-query/index.d.ts +7 -1
  90. package/dist/schema-query/index.js +204 -4
  91. package/dist/schemas/account_operation.output.json +14 -22
  92. package/dist/schemas/account_operation.schema.json +11 -25
  93. package/dist/schemas/bridge_operation.output.json +6 -0
  94. package/dist/schemas/bridge_operation.schema.json +1 -1
  95. package/dist/schemas/guard-templates.json +379 -0
  96. package/dist/schemas/guard2file.schema.json +1 -1
  97. package/dist/schemas/index.json +1 -1
  98. package/dist/schemas/local_info_operation.output.json +6 -0
  99. package/dist/schemas/local_mark_operation.output.json +7 -1
  100. package/dist/schemas/local_mark_operation.schema.json +1 -1
  101. package/dist/schemas/machineNode2file.schema.json +1 -1
  102. package/dist/schemas/messenger_operation.schema.json +10 -10
  103. package/dist/schemas/onchain_events.output.json +1 -1
  104. package/dist/schemas/onchain_operations.schema.json +348 -296
  105. package/dist/schemas/onchain_operations_allocation.schema.json +34 -25
  106. package/dist/schemas/onchain_operations_arbitration.schema.json +8 -8
  107. package/dist/schemas/onchain_operations_contact.schema.json +8 -8
  108. package/dist/schemas/onchain_operations_demand.schema.json +8 -8
  109. package/dist/schemas/onchain_operations_gen_passport.schema.json +14 -14
  110. package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -2
  111. package/dist/schemas/onchain_operations_guard.schema.json +1 -1
  112. package/dist/schemas/onchain_operations_machine.schema.json +41 -33
  113. package/dist/schemas/onchain_operations_order.schema.json +71 -77
  114. package/dist/schemas/onchain_operations_payment.schema.json +141 -111
  115. package/dist/schemas/onchain_operations_permission.schema.json +2 -2
  116. package/dist/schemas/onchain_operations_personal.schema.json +7 -7
  117. package/dist/schemas/onchain_operations_progress.schema.json +8 -8
  118. package/dist/schemas/onchain_operations_proof.schema.json +7 -7
  119. package/dist/schemas/onchain_operations_repository.schema.json +8 -8
  120. package/dist/schemas/onchain_operations_reward.schema.json +10 -10
  121. package/dist/schemas/onchain_operations_service.schema.json +46 -35
  122. package/dist/schemas/onchain_operations_treasury.schema.json +8 -8
  123. package/dist/schemas/onchain_table_data.output.json +33 -25
  124. package/dist/schemas/onchain_table_data.schema.json +12 -12
  125. package/dist/schemas/project_operation.output.json +1352 -20
  126. package/dist/schemas/project_operation.schema.json +53 -4
  127. package/dist/schemas/query_toolkit.output.json +111 -82
  128. package/dist/schemas/query_toolkit.schema.json +9 -13
  129. package/dist/schemas/schema_query.output.json +7 -3
  130. package/dist/schemas/schema_query.schema.json +17 -3
  131. package/dist/telemetry/storage.js +2 -2
  132. package/dist/tools/handlers/local.js +20 -5
  133. package/dist/tools/handlers/onchain.js +36 -0
  134. package/dist/tools/handlers/project.js +72 -1
  135. package/dist/tools/handlers/query.js +27 -0
  136. package/dist/tools/handlers/schema-query.js +19 -0
  137. package/dist/tools/handlers/task-status.d.ts +170 -0
  138. package/dist/tools/handlers/task-status.js +55 -0
  139. package/dist/tools/handlers/wip.js +47 -1
  140. package/dist/tools/index.js +212 -8
  141. package/dist/tools/retry.d.ts +8 -0
  142. package/dist/tools/retry.js +85 -0
  143. package/dist/tools/wip-deploy-assist.d.ts +28 -0
  144. package/dist/tools/wip-deploy-assist.js +278 -0
  145. package/package.json +2 -2
  146. package/dist/schemas/guard-node-examples.md +0 -199
@@ -2707,19 +2707,19 @@ export declare const BridgeCallOutputSchema: z.ZodObject<{
2707
2707
  }>, z.ZodObject<{
2708
2708
  type: z.ZodLiteral<"error">;
2709
2709
  error: z.ZodString;
2710
- error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "unknown"]>>;
2710
+ error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "rate_limit", "gas_exceeded", "bcs_error", "signature_error", "config_error", "wip_verification_failed", "unknown"]>>;
2711
2711
  retryable: z.ZodOptional<z.ZodBoolean>;
2712
2712
  recovery_hint: z.ZodOptional<z.ZodString>;
2713
2713
  }, "strip", z.ZodTypeAny, {
2714
2714
  type: "error";
2715
2715
  error: string;
2716
- error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
2716
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
2717
2717
  retryable?: boolean | undefined;
2718
2718
  recovery_hint?: string | undefined;
2719
2719
  }, {
2720
2720
  type: "error";
2721
2721
  error: string;
2722
- error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
2722
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
2723
2723
  retryable?: boolean | undefined;
2724
2724
  recovery_hint?: string | undefined;
2725
2725
  }>]>;
@@ -3393,7 +3393,7 @@ export declare const BridgeCallOutputSchema: z.ZodObject<{
3393
3393
  } | {
3394
3394
  type: "error";
3395
3395
  error: string;
3396
- error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
3396
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
3397
3397
  retryable?: boolean | undefined;
3398
3398
  recovery_hint?: string | undefined;
3399
3399
  };
@@ -3528,7 +3528,7 @@ export declare const BridgeCallOutputSchema: z.ZodObject<{
3528
3528
  } | {
3529
3529
  type: "error";
3530
3530
  error: string;
3531
- error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
3531
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
3532
3532
  retryable?: boolean | undefined;
3533
3533
  recovery_hint?: string | undefined;
3534
3534
  };
@@ -444,7 +444,9 @@ export const BridgeCallOutputSchema = z.object({
444
444
  .enum([
445
445
  "invalid_parameter", "guard_rejected", "state_conflict",
446
446
  "insufficient_balance", "object_not_found", "permission_denied",
447
- "immutable_violation", "network_error", "unknown",
447
+ "immutable_violation", "network_error", "rate_limit",
448
+ "gas_exceeded", "bcs_error", "signature_error",
449
+ "config_error", "wip_verification_failed", "unknown",
448
450
  ])
449
451
  .optional()
450
452
  .describe("Error classification for programmatic recovery"),
@@ -171,7 +171,7 @@ export declare const CallDemand_DataSchema: z.ZodObject<{
171
171
  }>>;
172
172
  description: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
173
173
  location: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
174
- rewards: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
174
+ rewards: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
175
175
  op: z.ZodUnion<[z.ZodLiteral<"add">, z.ZodLiteral<"set">]>;
176
176
  objects: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
177
177
  }, "strict", z.ZodTypeAny, {
@@ -195,7 +195,15 @@ export declare const CallDemand_DataSchema: z.ZodObject<{
195
195
  op: "clear";
196
196
  }, {
197
197
  op: "clear";
198
- }>]>>;
198
+ }>]>, {
199
+ op: "set" | "add";
200
+ objects: string[];
201
+ } | {
202
+ op: "remove";
203
+ objects: string[];
204
+ } | {
205
+ op: "clear";
206
+ }, unknown>>;
199
207
  feedback: z.ZodOptional<z.ZodArray<z.ZodObject<{
200
208
  who: z.ZodObject<{
201
209
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -427,15 +435,7 @@ export declare const CallDemand_DataSchema: z.ZodObject<{
427
435
  feedback?: string | undefined;
428
436
  acceptance_score?: number | undefined;
429
437
  }[] | undefined;
430
- rewards?: {
431
- op: "set" | "add";
432
- objects: string[];
433
- } | {
434
- op: "remove";
435
- objects: string[];
436
- } | {
437
- op: "clear";
438
- } | undefined;
438
+ rewards?: unknown;
439
439
  guards?: {
440
440
  guard: {
441
441
  guard: string;
@@ -543,7 +543,7 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
543
543
  }>>;
544
544
  description: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
545
545
  location: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
546
- rewards: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
546
+ rewards: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
547
547
  op: z.ZodUnion<[z.ZodLiteral<"add">, z.ZodLiteral<"set">]>;
548
548
  objects: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
549
549
  }, "strict", z.ZodTypeAny, {
@@ -567,7 +567,15 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
567
567
  op: "clear";
568
568
  }, {
569
569
  op: "clear";
570
- }>]>>;
570
+ }>]>, {
571
+ op: "set" | "add";
572
+ objects: string[];
573
+ } | {
574
+ op: "remove";
575
+ objects: string[];
576
+ } | {
577
+ op: "clear";
578
+ }, unknown>>;
571
579
  feedback: z.ZodOptional<z.ZodArray<z.ZodObject<{
572
580
  who: z.ZodObject<{
573
581
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -799,15 +807,7 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
799
807
  feedback?: string | undefined;
800
808
  acceptance_score?: number | undefined;
801
809
  }[] | undefined;
802
- rewards?: {
803
- op: "set" | "add";
804
- objects: string[];
805
- } | {
806
- op: "remove";
807
- objects: string[];
808
- } | {
809
- op: "clear";
810
- } | undefined;
810
+ rewards?: unknown;
811
811
  guards?: {
812
812
  guard: {
813
813
  guard: string;
@@ -1200,15 +1200,7 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
1200
1200
  feedback?: string | undefined;
1201
1201
  acceptance_score?: number | undefined;
1202
1202
  }[] | undefined;
1203
- rewards?: {
1204
- op: "set" | "add";
1205
- objects: string[];
1206
- } | {
1207
- op: "remove";
1208
- objects: string[];
1209
- } | {
1210
- op: "clear";
1211
- } | undefined;
1203
+ rewards?: unknown;
1212
1204
  guards?: {
1213
1205
  guard: {
1214
1206
  guard: string;
@@ -96,7 +96,7 @@ export const GuardBindingHintSchema = z.object({
96
96
  .describe("Whether the Guard references the Host Object itself (circular reference pattern). true=Guard queries the Host Object it binds to."),
97
97
  }).strict().describe("Optional semantic hint for Guard capability system. Provides intent + binding context so the MCP server can derive GuardPuzzle, run risk assessment, and generate confirmation text. Strongly recommended: fill this field to enable puzzle_status, matched_scene, suggested_patterns, confirmation_text, and pending_questions in the response guard_advice.");
98
98
  export const CallGuard_DataSchema = z.object({
99
- namedNew: NamedObjectSchema.optional().describe("Name and optional tags for the new Guard object. Set 'onChain: true' to create a public on-chain identity. When using root.type='file', this field OVERRIDES namedNew in the file."),
99
+ namedNew: NamedObjectSchema.optional().describe("Name and optional tags for the new Guard object. Set 'onChain: true' to create a public on-chain identity. When using root.type='file', this field OVERRIDES namedNew in the file. CIRCULAR DEPENDENCY (DOC-01): When a Guard queries a Service that hasn't been created yet, use a LocalMark NAME (not address) in the query table — the name is resolved to an address at transaction build time. Workflow: (1) Create Service (Phase 1, no publish) → (2) Create Guard referencing Service by name → (3) Update Service.buy_guard = Guard address → (4) Publish Service."),
100
100
  description: DescriptionSchema.optional().describe("Guard description. When using root.type='file', this field OVERRIDES description in the file."),
101
101
  table: z.array(GuardTableItemBaseSchema).optional().describe("Data table of the Guard object. When using root.type='file', this field OVERRIDES table in the file."),
102
102
  root: CallGuard_RootSchema.describe("Root definition: either a direct GuardNode (must be a logical operation returning Bool) or a file reference (type='file'). When type='file', the file can define all Guard fields (namedNew, description, table, root, rely), and schema fields override file content."),