@wowok/agent-mcp 2.5.2 → 2.5.4

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 (110) hide show
  1. package/dist/customer/index.d.ts +2 -2
  2. package/dist/customer/index.js +1 -1
  3. package/dist/customer/info-puzzle.d.ts +39 -2
  4. package/dist/customer/info-puzzle.js +370 -29
  5. package/dist/customer/risk-assessment.js +51 -14
  6. package/dist/customer/types.d.ts +85 -0
  7. package/dist/index.js +46 -6
  8. package/dist/knowledge/guard-design-patterns.js +104 -1
  9. package/dist/knowledge/guard-ledger.js +3 -3
  10. package/dist/knowledge/guard-lint.js +3 -3
  11. package/dist/knowledge/guard-risk.js +23 -15
  12. package/dist/knowledge/guard-templates.js +174 -2
  13. package/dist/knowledge/guard-translation.js +3 -3
  14. package/dist/knowledge/index.d.ts +3 -0
  15. package/dist/knowledge/index.js +9 -0
  16. package/dist/knowledge/machine-context.d.ts +1 -1
  17. package/dist/knowledge/machine-context.js +21 -0
  18. package/dist/knowledge/machine-ledger.d.ts +1 -0
  19. package/dist/knowledge/machine-ledger.js +60 -37
  20. package/dist/knowledge/machine-risk.js +23 -0
  21. package/dist/knowledge/machine-templates.js +150 -164
  22. package/dist/knowledge/overrides-loader.d.ts +13 -0
  23. package/dist/knowledge/overrides-loader.js +67 -0
  24. package/dist/knowledge/payment-risk.d.ts +4 -0
  25. package/dist/knowledge/payment-risk.js +67 -0
  26. package/dist/knowledge/repository-confirm.d.ts +4 -0
  27. package/dist/knowledge/repository-confirm.js +44 -0
  28. package/dist/knowledge/repository-risk.d.ts +8 -2
  29. package/dist/knowledge/repository-risk.js +61 -0
  30. package/dist/knowledge/repository-translation.js +23 -0
  31. package/dist/knowledge/reward-templates.d.ts +1 -1
  32. package/dist/knowledge/reward-templates.js +77 -5
  33. package/dist/knowledge/scenario-modes.js +22 -5
  34. package/dist/knowledge/service-templates.js +38 -0
  35. package/dist/knowledge/treasury-templates.js +42 -0
  36. package/dist/knowledge/trust-metrics.d.ts +4 -0
  37. package/dist/knowledge/trust-metrics.js +67 -7
  38. package/dist/loop-engineering/context-collect.d.ts +7 -0
  39. package/dist/loop-engineering/context-collect.js +83 -0
  40. package/dist/loop-engineering/improve.d.ts +29 -0
  41. package/dist/loop-engineering/improve.js +178 -0
  42. package/dist/project/context-assembly.d.ts +16 -0
  43. package/dist/project/context-assembly.js +130 -0
  44. package/dist/project/deployment-doc.d.ts +115 -0
  45. package/dist/project/deployment-doc.js +595 -0
  46. package/dist/project/index.js +37 -1
  47. package/dist/project/migration.d.ts +22 -0
  48. package/dist/project/migration.js +125 -0
  49. package/dist/project/project-store.d.ts +110 -0
  50. package/dist/project/project-store.js +425 -0
  51. package/dist/project/rollback-policy.d.ts +45 -0
  52. package/dist/project/rollback-policy.js +290 -0
  53. package/dist/project/stage-gate.d.ts +49 -0
  54. package/dist/project/stage-gate.js +310 -0
  55. package/dist/schema/call/allocation.d.ts +5 -0
  56. package/dist/schema/call/arbitration.d.ts +59 -54
  57. package/dist/schema/call/base.d.ts +3 -0
  58. package/dist/schema/call/base.js +1 -0
  59. package/dist/schema/call/bridge.d.ts +24 -0
  60. package/dist/schema/call/contact.d.ts +5 -0
  61. package/dist/schema/call/demand.d.ts +53 -48
  62. package/dist/schema/call/guard.d.ts +15 -0
  63. package/dist/schema/call/machine.d.ts +10 -0
  64. package/dist/schema/call/order.d.ts +5 -0
  65. package/dist/schema/call/payment.d.ts +5 -0
  66. package/dist/schema/call/permission.d.ts +5 -0
  67. package/dist/schema/call/personal.d.ts +5 -0
  68. package/dist/schema/call/progress.d.ts +5 -0
  69. package/dist/schema/call/proof.d.ts +10 -0
  70. package/dist/schema/call/repository.d.ts +5 -0
  71. package/dist/schema/call/reward.d.ts +5 -0
  72. package/dist/schema/call/service.d.ts +5 -0
  73. package/dist/schema/call/treasury.d.ts +5 -0
  74. package/dist/schema/operations.d.ts +286 -76
  75. package/dist/schema/operations.js +24 -0
  76. package/dist/schema/project/index.d.ts +2633 -120
  77. package/dist/schema/project/index.js +622 -2
  78. package/dist/schema/query/index.d.ts +601 -0
  79. package/dist/schema/query/index.js +61 -0
  80. package/dist/schema/trust/index.d.ts +10 -10
  81. package/dist/schemas/bridge_operation.schema.json +4 -0
  82. package/dist/schemas/guard2file.schema.json +4 -0
  83. package/dist/schemas/index.json +1 -1
  84. package/dist/schemas/machineNode2file.schema.json +4 -0
  85. package/dist/schemas/onchain_operations.schema.json +20 -0
  86. package/dist/schemas/onchain_operations_allocation.schema.json +4 -0
  87. package/dist/schemas/onchain_operations_arbitration.schema.json +4 -0
  88. package/dist/schemas/onchain_operations_contact.schema.json +4 -0
  89. package/dist/schemas/onchain_operations_demand.schema.json +4 -0
  90. package/dist/schemas/onchain_operations_gen_passport.schema.json +8 -0
  91. package/dist/schemas/onchain_operations_gen_proof.schema.json +8 -0
  92. package/dist/schemas/onchain_operations_guard.schema.json +4 -0
  93. package/dist/schemas/onchain_operations_machine.schema.json +4 -0
  94. package/dist/schemas/onchain_operations_order.schema.json +4 -0
  95. package/dist/schemas/onchain_operations_payment.schema.json +4 -0
  96. package/dist/schemas/onchain_operations_permission.schema.json +4 -0
  97. package/dist/schemas/onchain_operations_personal.schema.json +4 -0
  98. package/dist/schemas/onchain_operations_progress.schema.json +4 -0
  99. package/dist/schemas/onchain_operations_proof.schema.json +4 -0
  100. package/dist/schemas/onchain_operations_repository.schema.json +4 -0
  101. package/dist/schemas/onchain_operations_reward.schema.json +4 -0
  102. package/dist/schemas/onchain_operations_service.schema.json +4 -0
  103. package/dist/schemas/onchain_operations_treasury.schema.json +4 -0
  104. package/dist/schemas/project_operation.output.json +1798 -0
  105. package/dist/schemas/project_operation.schema.json +132 -2
  106. package/dist/schemas/query_toolkit.output.json +407 -1
  107. package/dist/schemas/query_toolkit.schema.json +132 -0
  108. package/dist/tools/handlers/project.js +742 -1
  109. package/dist/tools/handlers/query.js +38 -2
  110. package/package.json +2 -2
@@ -70,3 +70,118 @@ export declare function generateDeploymentDoc(input: DeploymentDocInput): string
70
70
  export declare function estimateDeploymentGas(input: Pick<DeploymentDocInput, "objects">): GasEstimate;
71
71
  export declare function validateDeploymentDoc(input: DeploymentDocInput): DeploymentDocValidationResult;
72
72
  export declare function getStandardTopoOrder(): ProjectObjectType[];
73
+ export interface StageGoal {
74
+ stage: 1 | 2 | 3 | 4 | 5;
75
+ goal_statement: string;
76
+ derived_from: string[];
77
+ success_criteria: Array<{
78
+ criterion_id: string;
79
+ description: string;
80
+ measurable: boolean;
81
+ target_value?: string;
82
+ }>;
83
+ }
84
+ export interface StageAssessment {
85
+ stage: 1 | 2 | 3 | 4 | 5;
86
+ assessed_at: number;
87
+ goal_completion: Record<string, number>;
88
+ findings: Array<{
89
+ finding_id: string;
90
+ severity: "info" | "warn" | "critical";
91
+ criterion_id: string;
92
+ description: string;
93
+ evidence: unknown;
94
+ }>;
95
+ recommendations: string[];
96
+ }
97
+ export interface StageRiskPolicy {
98
+ stage: 1 | 2 | 3 | 4 | 5;
99
+ risks: Array<{
100
+ risk_id: string;
101
+ category: "naming" | "dependency" | "operational" | "financial" | "security";
102
+ description: string;
103
+ likelihood: "low" | "medium" | "high";
104
+ impact: "low" | "medium" | "high" | "critical";
105
+ mitigation: string;
106
+ owner: "ai" | "user" | "system";
107
+ }>;
108
+ active_controls: Array<{
109
+ control_id: string;
110
+ control_type: "preventive" | "detective" | "corrective";
111
+ target_risk: string;
112
+ implementation: string;
113
+ verified: boolean;
114
+ }>;
115
+ residual_risks: string[];
116
+ }
117
+ export interface StageVerification {
118
+ stage: 1 | 2 | 3 | 4 | 5;
119
+ verified_at: number;
120
+ goal_verification: Record<string, {
121
+ passed: boolean;
122
+ evidence: unknown;
123
+ }>;
124
+ d_checks: Array<{
125
+ check_id: string;
126
+ status: "pass" | "fail" | "warn";
127
+ message: string;
128
+ evidence: unknown;
129
+ }>;
130
+ cross_stage_checks: Array<{
131
+ check_id: string;
132
+ involves_stages: number[];
133
+ description: string;
134
+ passed: boolean;
135
+ evidence: unknown;
136
+ }>;
137
+ stage_passed: boolean;
138
+ blocking_issues: string[];
139
+ }
140
+ export interface ValidationChainLink {
141
+ source_type: "project_invariant" | "project_goal";
142
+ source_id: string;
143
+ target_type: "stage_goal" | "stage_risk" | "stage_verification";
144
+ target_stage: 1 | 2 | 3 | 4 | 5;
145
+ target_id: string;
146
+ derivation_logic: string;
147
+ }
148
+ export interface PropagationRule {
149
+ rule_id: string;
150
+ trigger: {
151
+ stage: number;
152
+ event: "verification_passed" | "verification_failed";
153
+ };
154
+ effect: {
155
+ target: "project_invariant" | "next_stage";
156
+ action: "verify" | "block";
157
+ };
158
+ }
159
+ export interface ValidationChainGraph {
160
+ version: string;
161
+ generated_at: number;
162
+ project_invariants: Array<{
163
+ invariant_id: string;
164
+ description: string;
165
+ verified_by_stages: number[];
166
+ }>;
167
+ stage_units: Array<{
168
+ stage: 1 | 2 | 3 | 4 | 5;
169
+ goal_id: string;
170
+ assessment_id: string;
171
+ risk_policy_id: string;
172
+ verification_id: string;
173
+ artifacts: string[];
174
+ }>;
175
+ derivations: ValidationChainLink[];
176
+ propagation_rules: PropagationRule[];
177
+ impact_map: Record<string, string[]>;
178
+ }
179
+ export interface DeploymentDocSetResult {
180
+ readme_path: string;
181
+ relations_path: string;
182
+ stage_dirs: Record<1 | 2 | 3 | 4 | 5, string>;
183
+ all_files: string[];
184
+ relations: ValidationChainGraph;
185
+ all_stages_passed: boolean;
186
+ }
187
+ export declare function generateDeploymentDocSet(prefix: string, version: string, input: DeploymentDocInput): DeploymentDocSetResult;