@wowok/agent-mcp 2.3.13 → 2.3.16
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/industry-risks.d.ts +36 -0
- package/dist/customer/industry-risks.js +424 -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 +67 -0
- package/dist/customer/user-preferences.js +451 -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 +77 -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/harness/checkpoint.d.ts +8 -0
- package/dist/harness/checkpoint.js +129 -0
- package/dist/harness/index.d.ts +33 -0
- package/dist/harness/index.js +75 -0
- package/dist/harness/plan.d.ts +18 -0
- package/dist/harness/plan.js +252 -0
- package/dist/harness/recover.d.ts +17 -0
- package/dist/harness/recover.js +139 -0
- package/dist/harness/types.d.ts +137 -0
- package/dist/harness/types.js +1 -0
- package/dist/harness/verify.d.ts +42 -0
- package/dist/harness/verify.js +237 -0
- package/dist/index.js +667 -201
- package/dist/knowledge/acquisition-flywheel.d.ts +50 -0
- package/dist/knowledge/acquisition-flywheel.js +183 -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/index.d.ts +64 -0
- package/dist/knowledge/index.js +66 -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 +49 -0
- package/dist/knowledge/industry-registry.js +167 -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 +171 -0
- package/dist/knowledge/tool-constraints.d.ts +30 -0
- package/dist/knowledge/tool-constraints.js +185 -0
- package/dist/knowledge/trust-metrics.d.ts +37 -0
- package/dist/knowledge/trust-metrics.js +138 -0
- package/dist/loop-engineering/aggregate.d.ts +50 -0
- package/dist/loop-engineering/aggregate.js +132 -0
- package/dist/loop-engineering/diagnose.d.ts +22 -0
- package/dist/loop-engineering/diagnose.js +273 -0
- package/dist/loop-engineering/improve.d.ts +26 -0
- package/dist/loop-engineering/improve.js +229 -0
- package/dist/loop-engineering/index.d.ts +4 -0
- package/dist/loop-engineering/index.js +4 -0
- package/dist/loop-engineering/pipeline.d.ts +17 -0
- package/dist/loop-engineering/pipeline.js +56 -0
- package/dist/mode-market/index.d.ts +3 -0
- package/dist/mode-market/index.js +3 -0
- package/dist/mode-market/registry.d.ts +53 -0
- package/dist/mode-market/registry.js +124 -0
- package/dist/mode-market/review.d.ts +27 -0
- package/dist/mode-market/review.js +214 -0
- package/dist/mode-market/submission.d.ts +25 -0
- package/dist/mode-market/submission.js +85 -0
- 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 +15 -0
- package/dist/safety/confirm-gate.js +44 -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 +55 -40
- package/dist/schema/call/arbitration.d.ts +201 -186
- package/dist/schema/call/base.d.ts +2104 -24
- package/dist/schema/call/base.js +168 -22
- package/dist/schema/call/bridge-handler.js +36 -18
- package/dist/schema/call/bridge.d.ts +777 -120
- package/dist/schema/call/bridge.js +13 -2
- package/dist/schema/call/contact.d.ts +15 -0
- package/dist/schema/call/demand.d.ts +69 -54
- package/dist/schema/call/guard.d.ts +125 -80
- package/dist/schema/call/handler.d.ts +5 -1
- package/dist/schema/call/handler.js +108 -3
- package/dist/schema/call/index.d.ts +1 -0
- package/dist/schema/call/index.js +1 -0
- package/dist/schema/call/machine.d.ts +830 -800
- package/dist/schema/call/order.d.ts +27 -12
- package/dist/schema/call/payment.d.ts +15 -0
- package/dist/schema/call/permission.d.ts +15 -0
- package/dist/schema/call/personal.d.ts +15 -0
- package/dist/schema/call/progress.d.ts +21 -6
- package/dist/schema/call/proof.d.ts +42 -12
- package/dist/schema/call/proof.js +3 -3
- package/dist/schema/call/repository.d.ts +91 -76
- package/dist/schema/call/reward.d.ts +51 -36
- package/dist/schema/call/semantic.d.ts +24 -0
- package/dist/schema/call/semantic.js +981 -0
- package/dist/schema/call/service.d.ts +444 -429
- package/dist/schema/call/treasury.d.ts +219 -204
- package/dist/schema/common/index.js +3 -3
- package/dist/schema/local/index.d.ts +341 -74
- package/dist/schema/local/index.js +44 -7
- package/dist/schema/messenger/index.d.ts +1034 -92
- package/dist/schema/messenger/index.js +18 -0
- package/dist/schema/operations.d.ts +2634 -1817
- package/dist/schema/operations.js +16 -5
- package/dist/schema/query/index.d.ts +2293 -2289
- package/dist/schema/query/index.js +34 -28
- package/dist/schemas/account_operation.output.json +28 -16
- package/dist/schemas/account_operation.schema.json +2 -2
- package/dist/schemas/bridge_operation.output.json +520 -0
- package/dist/schemas/bridge_operation.schema.json +15 -0
- package/dist/schemas/guard2file.schema.json +15 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/local_info_operation.output.json +26 -0
- package/dist/schemas/local_info_operation.schema.json +1 -1
- package/dist/schemas/local_mark_operation.output.json +27 -1
- package/dist/schemas/local_mark_operation.schema.json +4 -4
- package/dist/schemas/machineNode2file.schema.json +15 -0
- package/dist/schemas/messenger_operation.output.json +549 -0
- package/dist/schemas/messenger_operation.schema.json +21 -0
- package/dist/schemas/onchain_events.output.json +3 -0
- package/dist/schemas/onchain_operations.output.json +814 -37
- package/dist/schemas/onchain_operations.schema.json +117 -40
- package/dist/schemas/onchain_operations_allocation.schema.json +26 -9
- package/dist/schemas/onchain_operations_arbitration.schema.json +26 -9
- package/dist/schemas/onchain_operations_contact.schema.json +26 -9
- package/dist/schemas/onchain_operations_demand.schema.json +26 -9
- package/dist/schemas/onchain_operations_gen_passport.schema.json +51 -17
- package/dist/schemas/onchain_operations_guard.schema.json +26 -9
- package/dist/schemas/onchain_operations_machine.schema.json +92 -32
- package/dist/schemas/onchain_operations_order.schema.json +26 -9
- package/dist/schemas/onchain_operations_payment.schema.json +26 -9
- package/dist/schemas/onchain_operations_permission.schema.json +26 -9
- package/dist/schemas/onchain_operations_personal.schema.json +26 -9
- package/dist/schemas/onchain_operations_progress.schema.json +26 -9
- package/dist/schemas/onchain_operations_repository.schema.json +26 -9
- package/dist/schemas/onchain_operations_reward.schema.json +26 -9
- package/dist/schemas/onchain_operations_service.schema.json +26 -9
- package/dist/schemas/onchain_operations_treasury.schema.json +26 -9
- package/dist/schemas/onchain_table_data.output.json +224 -69
- package/dist/schemas/onchain_table_data.schema.json +2 -2
- package/dist/schemas/query_toolkit.schema.json +5 -1
- package/dist/telemetry/index.d.ts +19 -0
- package/dist/telemetry/index.js +112 -0
- package/dist/telemetry/redact.d.ts +2 -0
- package/dist/telemetry/redact.js +23 -0
- package/dist/telemetry/storage.d.ts +8 -0
- package/dist/telemetry/storage.js +80 -0
- package/package.json +6 -3
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { EntrypointSchema, ObjectOwnerSchema, NameOrAddressSchema, NameSchema, WowAddressSchema, TokenTypeSchema, FaucetNetworkSchema } from "../common/index.js";
|
|
2
2
|
import { z } from "zod";
|
|
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
|
+
};
|
|
3
16
|
export const LocalMarkConstraints = {
|
|
4
17
|
nameMaxLength: 64,
|
|
5
18
|
tagMaxLength: 64,
|
|
@@ -58,7 +71,7 @@ export const WowEventSchema = z.discriminatedUnion("bcsEncoding", [
|
|
|
58
71
|
z.object({
|
|
59
72
|
id: EventIdSchema.describe("Event ID"),
|
|
60
73
|
packageId: z.string().describe("Package ID where event originated"),
|
|
61
|
-
parsedJson: z.record(z.string(), z.
|
|
74
|
+
parsedJson: z.record(z.string(), z.unknown()).describe("Parsed JSON value of the event"),
|
|
62
75
|
sender: z.string().describe("Sender's address"),
|
|
63
76
|
timestampMs: z.union([z.string(), z.null()]).optional().describe("UTC timestamp in milliseconds since epoch"),
|
|
64
77
|
transactionModule: z.string().describe("Module where event originated"),
|
|
@@ -69,7 +82,7 @@ export const WowEventSchema = z.discriminatedUnion("bcsEncoding", [
|
|
|
69
82
|
z.object({
|
|
70
83
|
id: EventIdSchema.describe("Event ID"),
|
|
71
84
|
packageId: z.string().describe("Package ID where event originated"),
|
|
72
|
-
parsedJson: z.record(z.string(), z.
|
|
85
|
+
parsedJson: z.record(z.string(), z.unknown()).describe("Parsed JSON value of the event"),
|
|
73
86
|
sender: z.string().describe("Sender's ID"),
|
|
74
87
|
timestampMs: z.union([z.string(), z.null()]).optional().describe("UTC timestamp in milliseconds since epoch"),
|
|
75
88
|
transactionModule: z.string().describe("Module where event originated"),
|
|
@@ -230,7 +243,7 @@ export const MarkParamSchema = z
|
|
|
230
243
|
.describe("If true, replace existing mark with same name; if false (default), throw error when name exists"),
|
|
231
244
|
})
|
|
232
245
|
.optional()
|
|
233
|
-
.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}}"),
|
|
234
247
|
address: WowAddressSchema,
|
|
235
248
|
tags: z
|
|
236
249
|
.array(z
|
|
@@ -240,7 +253,7 @@ export const MarkParamSchema = z
|
|
|
240
253
|
.optional()
|
|
241
254
|
.describe(`Tags for categorization (max ${LocalMarkConstraints.tagMaxCount} tags, each max ${LocalMarkConstraints.tagMaxLength} bcs characters)`),
|
|
242
255
|
})
|
|
243
|
-
.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.");
|
|
244
257
|
export const MarkDataSchema = z
|
|
245
258
|
.object({
|
|
246
259
|
name: z
|
|
@@ -529,7 +542,9 @@ export const AccountOperationSchema = z
|
|
|
529
542
|
.optional()
|
|
530
543
|
.describe("Enable or disable messenger for an account"),
|
|
531
544
|
})
|
|
532
|
-
.
|
|
545
|
+
.strict()
|
|
546
|
+
.refine((data) => Object.keys(data).length > 0, "At least one operation (gen/faucet/suspend/resume/rename/swap_name/transfer/get/signData/messenger) must be specified")
|
|
547
|
+
.describe("Account operations. Parameters MUST be wrapped in the operation type property (e.g. {transfer: {...}}, NOT {amount: ...}). Unwrapped parameters are rejected.");
|
|
533
548
|
export const AccountOperationResultSchema = z
|
|
534
549
|
.object({
|
|
535
550
|
gen: z
|
|
@@ -669,7 +684,13 @@ export const LocalMarkOperationSchema = z
|
|
|
669
684
|
.optional()
|
|
670
685
|
.describe("Remove all marks"),
|
|
671
686
|
})
|
|
672
|
-
.
|
|
687
|
+
.refine((data) => data.add !== undefined || data.remove !== undefined || data.clear !== undefined, {
|
|
688
|
+
message: "Exactly one operation field (add/remove/clear) must be specified. " +
|
|
689
|
+
"CORRECT format: {add: {op:'add', data:[...]}} or {remove: {op:'remove', names:[...]}} or {clear: {op:'clear'}}. " +
|
|
690
|
+
"INCORRECT flat format {op:'add', data:[...]} will silently do nothing.",
|
|
691
|
+
})
|
|
692
|
+
.describe("Local mark operations. Exactly one operation type (add/remove/clear) must be specified as a NESTED field. " +
|
|
693
|
+
"Example: {add: {op:'add', data:[...]}} — NOT flat {op:'add', data:[...]}.");
|
|
673
694
|
export const LocalMarkOperationResultSchema = z.object({
|
|
674
695
|
clear: z.boolean().optional().describe("Whether all marks were successfully removed"),
|
|
675
696
|
add: z.array(MarkDataSchema).optional().describe("List of added mark data"),
|
|
@@ -714,7 +735,13 @@ export const LocalInfoOperationSchema = z
|
|
|
714
735
|
.optional()
|
|
715
736
|
.describe("Remove all info entries"),
|
|
716
737
|
})
|
|
717
|
-
.
|
|
738
|
+
.refine((data) => data.add !== undefined || data.remove !== undefined || data.reset !== undefined || data.clear !== undefined, {
|
|
739
|
+
message: "Exactly one operation field (add/remove/reset/clear) must be specified. " +
|
|
740
|
+
"CORRECT format: {add: {op:'add', data:[...]}} or {remove: {op:'remove', data:[...]}} etc. " +
|
|
741
|
+
"INCORRECT flat format {op:'add', data:[...]} will silently do nothing.",
|
|
742
|
+
})
|
|
743
|
+
.describe("Local info operations. Exactly one operation type (add/remove/reset/clear) must be specified as a NESTED field. " +
|
|
744
|
+
"Example: {add: {op:'add', data:[...]}} — NOT flat {op:'add', data:[...]}.");
|
|
718
745
|
export const LocalInfoOperationResultSchema = z.object({
|
|
719
746
|
success: z.boolean().describe("Whether successful"),
|
|
720
747
|
}).describe("Results of local info operations");
|
|
@@ -774,6 +801,10 @@ export const AccountFilterSchema = z
|
|
|
774
801
|
})
|
|
775
802
|
.optional()
|
|
776
803
|
.describe("Filter by update time range"),
|
|
804
|
+
includePubkey: z
|
|
805
|
+
.boolean()
|
|
806
|
+
.optional()
|
|
807
|
+
.describe("Include pubkey in results (default: false). Pubkey is large (~900 bytes), omit unless needed"),
|
|
777
808
|
})
|
|
778
809
|
.describe("Filter criteria for querying accounts. Multiple filters are combined with AND logic.");
|
|
779
810
|
export const QueryAccountListSchema = z.object({
|
|
@@ -821,10 +852,12 @@ export const AccountOperationOutputSchema = z.discriminatedUnion("status", [
|
|
|
821
852
|
z.object({
|
|
822
853
|
status: z.literal("error"),
|
|
823
854
|
error: z.string().describe("Error message"),
|
|
855
|
+
...LocalOperationErrorFields,
|
|
824
856
|
}),
|
|
825
857
|
]).describe("Account operation output schema with discriminator");
|
|
826
858
|
export const AccountOperationOutputWrappedSchema = z.object({
|
|
827
859
|
result: AccountOperationOutputSchema,
|
|
860
|
+
semantic: SemanticSummarySchema.optional().describe("Business semantic summary for account operation"),
|
|
828
861
|
}).describe("Account operation output wrapped schema");
|
|
829
862
|
export const LocalMarkOperationOutputSchema = z.discriminatedUnion("status", [
|
|
830
863
|
z.object({
|
|
@@ -834,10 +867,12 @@ export const LocalMarkOperationOutputSchema = z.discriminatedUnion("status", [
|
|
|
834
867
|
z.object({
|
|
835
868
|
status: z.literal("error"),
|
|
836
869
|
error: z.string().describe("Error message"),
|
|
870
|
+
...LocalOperationErrorFields,
|
|
837
871
|
}),
|
|
838
872
|
]).describe("Local mark operation output schema with discriminator");
|
|
839
873
|
export const LocalMarkOperationOutputWrappedSchema = z.object({
|
|
840
874
|
result: LocalMarkOperationOutputSchema,
|
|
875
|
+
semantic: SemanticSummarySchema.optional().describe("Business semantic summary for local mark operation"),
|
|
841
876
|
}).describe("Local mark operation output wrapped schema");
|
|
842
877
|
export const LocalInfoOperationOutputSchema = z.discriminatedUnion("status", [
|
|
843
878
|
z.object({
|
|
@@ -847,9 +882,11 @@ export const LocalInfoOperationOutputSchema = z.discriminatedUnion("status", [
|
|
|
847
882
|
z.object({
|
|
848
883
|
status: z.literal("error"),
|
|
849
884
|
error: z.string().describe("Error message"),
|
|
885
|
+
...LocalOperationErrorFields,
|
|
850
886
|
}),
|
|
851
887
|
]).describe("Local info operation output schema with discriminator");
|
|
852
888
|
export const LocalInfoOperationOutputWrappedSchema = z.object({
|
|
853
889
|
result: LocalInfoOperationOutputSchema,
|
|
890
|
+
semantic: SemanticSummarySchema.optional().describe("Business semantic summary for local info operation"),
|
|
854
891
|
}).describe("Local info operation output wrapped schema");
|
|
855
892
|
export * from "./wip.js";
|