@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,6 +1,18 @@
|
|
|
1
1
|
import { EntrypointSchema, ObjectOwnerSchema, NameOrAddressSchema, NameSchema, WowAddressSchema, TokenTypeSchema, FaucetNetworkSchema } from "../common/index.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
const SemanticSummarySchema = z.any();
|
|
4
|
+
const LocalOperationErrorFields = {
|
|
5
|
+
error_code: z
|
|
6
|
+
.enum([
|
|
7
|
+
"invalid_parameter", "guard_rejected", "state_conflict",
|
|
8
|
+
"insufficient_balance", "object_not_found", "permission_denied",
|
|
9
|
+
"immutable_violation", "network_error", "unknown",
|
|
10
|
+
])
|
|
11
|
+
.optional()
|
|
12
|
+
.describe("Error classification for programmatic recovery"),
|
|
13
|
+
retryable: z.boolean().optional().describe("Whether the operation can be retried as-is"),
|
|
14
|
+
recovery_hint: z.string().optional().describe("Recovery suggestion for AI or user"),
|
|
15
|
+
};
|
|
4
16
|
export const LocalMarkConstraints = {
|
|
5
17
|
nameMaxLength: 64,
|
|
6
18
|
tagMaxLength: 64,
|
|
@@ -59,7 +71,7 @@ export const WowEventSchema = z.discriminatedUnion("bcsEncoding", [
|
|
|
59
71
|
z.object({
|
|
60
72
|
id: EventIdSchema.describe("Event ID"),
|
|
61
73
|
packageId: z.string().describe("Package ID where event originated"),
|
|
62
|
-
parsedJson: z.record(z.string(), z.
|
|
74
|
+
parsedJson: z.record(z.string(), z.unknown()).describe("Parsed JSON value of the event"),
|
|
63
75
|
sender: z.string().describe("Sender's address"),
|
|
64
76
|
timestampMs: z.union([z.string(), z.null()]).optional().describe("UTC timestamp in milliseconds since epoch"),
|
|
65
77
|
transactionModule: z.string().describe("Module where event originated"),
|
|
@@ -70,7 +82,7 @@ export const WowEventSchema = z.discriminatedUnion("bcsEncoding", [
|
|
|
70
82
|
z.object({
|
|
71
83
|
id: EventIdSchema.describe("Event ID"),
|
|
72
84
|
packageId: z.string().describe("Package ID where event originated"),
|
|
73
|
-
parsedJson: z.record(z.string(), z.
|
|
85
|
+
parsedJson: z.record(z.string(), z.unknown()).describe("Parsed JSON value of the event"),
|
|
74
86
|
sender: z.string().describe("Sender's ID"),
|
|
75
87
|
timestampMs: z.union([z.string(), z.null()]).optional().describe("UTC timestamp in milliseconds since epoch"),
|
|
76
88
|
transactionModule: z.string().describe("Module where event originated"),
|
|
@@ -231,7 +243,7 @@ export const MarkParamSchema = z
|
|
|
231
243
|
.describe("If true, replace existing mark with same name; if false (default), throw error when name exists"),
|
|
232
244
|
})
|
|
233
245
|
.optional()
|
|
234
|
-
.describe("Mark naming configuration"),
|
|
246
|
+
.describe("Mark naming configuration. MUST be an object {value: string, replaceExistName?: boolean}, NOT a plain string. Example: {name: {value: 'my-account', replaceExistName: true}}"),
|
|
235
247
|
address: WowAddressSchema,
|
|
236
248
|
tags: z
|
|
237
249
|
.array(z
|
|
@@ -241,7 +253,7 @@ export const MarkParamSchema = z
|
|
|
241
253
|
.optional()
|
|
242
254
|
.describe(`Tags for categorization (max ${LocalMarkConstraints.tagMaxCount} tags, each max ${LocalMarkConstraints.tagMaxLength} bcs characters)`),
|
|
243
255
|
})
|
|
244
|
-
.describe("LOCAL ONLY: Parameters for creating or updating a LOCAL mark. This data is stored privately on your device and will NEVER be published to the blockchain. For public on-chain marks, use the 'personal' tool instead.");
|
|
256
|
+
.describe("LOCAL ONLY: Parameters for creating or updating a LOCAL mark. This data is stored privately on your device and will NEVER be published to the blockchain. For public on-chain marks, use the 'personal' tool instead. IMPORTANT: 'name' field is an OBJECT {value, replaceExistName?}, not a string.");
|
|
245
257
|
export const MarkDataSchema = z
|
|
246
258
|
.object({
|
|
247
259
|
name: z
|
|
@@ -653,6 +665,7 @@ export const LocalMarkOperationSchema = z
|
|
|
653
665
|
.min(1)
|
|
654
666
|
.describe("Array of mark data to add (at least 1 item)"),
|
|
655
667
|
})
|
|
668
|
+
.strict()
|
|
656
669
|
.optional()
|
|
657
670
|
.describe("Add one or more marks"),
|
|
658
671
|
remove: z
|
|
@@ -663,16 +676,25 @@ export const LocalMarkOperationSchema = z
|
|
|
663
676
|
.min(1)
|
|
664
677
|
.describe("Array of mark names or addresses to remove"),
|
|
665
678
|
})
|
|
679
|
+
.strict()
|
|
666
680
|
.optional()
|
|
667
681
|
.describe("Remove marks by name or address"),
|
|
668
682
|
clear: z
|
|
669
683
|
.object({
|
|
670
684
|
op: z.literal("clear").describe("Operation type: clear all marks"),
|
|
671
685
|
})
|
|
686
|
+
.strict()
|
|
672
687
|
.optional()
|
|
673
688
|
.describe("Remove all marks"),
|
|
674
689
|
})
|
|
675
|
-
.
|
|
690
|
+
.strict()
|
|
691
|
+
.refine((data) => data.add !== undefined || data.remove !== undefined || data.clear !== undefined, {
|
|
692
|
+
message: "Exactly one operation field (add/remove/clear) must be specified. " +
|
|
693
|
+
"CORRECT format: {add: {op:'add', data:[...]}} or {remove: {op:'remove', names:[...]}} or {clear: {op:'clear'}}. " +
|
|
694
|
+
"INCORRECT flat format {op:'add', data:[...]} will silently do nothing.",
|
|
695
|
+
})
|
|
696
|
+
.describe("Local mark operations. Exactly one operation type (add/remove/clear) must be specified as a NESTED field. " +
|
|
697
|
+
"Example: {add: {op:'add', data:[...]}} — NOT flat {op:'add', data:[...]}.");
|
|
676
698
|
export const LocalMarkOperationResultSchema = z.object({
|
|
677
699
|
clear: z.boolean().optional().describe("Whether all marks were successfully removed"),
|
|
678
700
|
add: z.array(MarkDataSchema).optional().describe("List of added mark data"),
|
|
@@ -688,6 +710,7 @@ export const LocalInfoOperationSchema = z
|
|
|
688
710
|
.min(1)
|
|
689
711
|
.describe("Array of info data to add (at least 1 item)"),
|
|
690
712
|
})
|
|
713
|
+
.strict()
|
|
691
714
|
.optional()
|
|
692
715
|
.describe("Add one or more info entries"),
|
|
693
716
|
remove: z
|
|
@@ -698,6 +721,7 @@ export const LocalInfoOperationSchema = z
|
|
|
698
721
|
.min(1)
|
|
699
722
|
.describe("Array of info names to remove"),
|
|
700
723
|
})
|
|
724
|
+
.strict()
|
|
701
725
|
.optional()
|
|
702
726
|
.describe("Remove info entries by name"),
|
|
703
727
|
reset: z
|
|
@@ -708,16 +732,25 @@ export const LocalInfoOperationSchema = z
|
|
|
708
732
|
.array(z.string())
|
|
709
733
|
.describe("New content list to replace existing contents"),
|
|
710
734
|
})
|
|
735
|
+
.strict()
|
|
711
736
|
.optional()
|
|
712
737
|
.describe("Reset the contents of an existing info entry"),
|
|
713
738
|
clear: z
|
|
714
739
|
.object({
|
|
715
740
|
op: z.literal("clear").describe("Operation type: clear all info"),
|
|
716
741
|
})
|
|
742
|
+
.strict()
|
|
717
743
|
.optional()
|
|
718
744
|
.describe("Remove all info entries"),
|
|
719
745
|
})
|
|
720
|
-
.
|
|
746
|
+
.strict()
|
|
747
|
+
.refine((data) => data.add !== undefined || data.remove !== undefined || data.reset !== undefined || data.clear !== undefined, {
|
|
748
|
+
message: "Exactly one operation field (add/remove/reset/clear) must be specified. " +
|
|
749
|
+
"CORRECT format: {add: {op:'add', data:[...]}} or {remove: {op:'remove', data:[...]}} etc. " +
|
|
750
|
+
"INCORRECT flat format {op:'add', data:[...]} will silently do nothing.",
|
|
751
|
+
})
|
|
752
|
+
.describe("Local info operations. Exactly one operation type (add/remove/reset/clear) must be specified as a NESTED field. " +
|
|
753
|
+
"Example: {add: {op:'add', data:[...]}} — NOT flat {op:'add', data:[...]}.");
|
|
721
754
|
export const LocalInfoOperationResultSchema = z.object({
|
|
722
755
|
success: z.boolean().describe("Whether successful"),
|
|
723
756
|
}).describe("Results of local info operations");
|
|
@@ -828,6 +861,7 @@ export const AccountOperationOutputSchema = z.discriminatedUnion("status", [
|
|
|
828
861
|
z.object({
|
|
829
862
|
status: z.literal("error"),
|
|
830
863
|
error: z.string().describe("Error message"),
|
|
864
|
+
...LocalOperationErrorFields,
|
|
831
865
|
}),
|
|
832
866
|
]).describe("Account operation output schema with discriminator");
|
|
833
867
|
export const AccountOperationOutputWrappedSchema = z.object({
|
|
@@ -842,6 +876,7 @@ export const LocalMarkOperationOutputSchema = z.discriminatedUnion("status", [
|
|
|
842
876
|
z.object({
|
|
843
877
|
status: z.literal("error"),
|
|
844
878
|
error: z.string().describe("Error message"),
|
|
879
|
+
...LocalOperationErrorFields,
|
|
845
880
|
}),
|
|
846
881
|
]).describe("Local mark operation output schema with discriminator");
|
|
847
882
|
export const LocalMarkOperationOutputWrappedSchema = z.object({
|
|
@@ -856,6 +891,7 @@ export const LocalInfoOperationOutputSchema = z.discriminatedUnion("status", [
|
|
|
856
891
|
z.object({
|
|
857
892
|
status: z.literal("error"),
|
|
858
893
|
error: z.string().describe("Error message"),
|
|
894
|
+
...LocalOperationErrorFields,
|
|
859
895
|
}),
|
|
860
896
|
]).describe("Local info operation output schema with discriminator");
|
|
861
897
|
export const LocalInfoOperationOutputWrappedSchema = z.object({
|