wowok_agent 2.1.28 → 2.1.30
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/index.d.ts +18 -131
- package/dist/index.js +12 -11
- package/dist/schema/call/handler.d.ts +2 -1
- package/dist/schema/call/handler.js +3 -2
- package/dist/schema/call/order.d.ts +16 -112
- package/dist/schema/call/progress.d.ts +20 -202
- package/dist/schema/call/progress.js +5 -14
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2958,7 +2958,6 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
|
|
|
2958
2958
|
pause?: boolean | undefined;
|
|
2959
2959
|
publish?: boolean | undefined;
|
|
2960
2960
|
}>;
|
|
2961
|
-
json_or_markdown_file: z.ZodOptional<z.ZodString>;
|
|
2962
2961
|
env: z.ZodOptional<z.ZodObject<{
|
|
2963
2962
|
account: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
2964
2963
|
permission_guard: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -3345,7 +3344,6 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
|
|
|
3345
3344
|
permission_guard?: string[] | undefined;
|
|
3346
3345
|
referrer?: string | undefined;
|
|
3347
3346
|
} | undefined;
|
|
3348
|
-
json_or_markdown_file?: string | undefined;
|
|
3349
3347
|
}, {
|
|
3350
3348
|
data: {
|
|
3351
3349
|
object: string | {
|
|
@@ -3533,7 +3531,6 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
|
|
|
3533
3531
|
permission_guard?: string[] | undefined;
|
|
3534
3532
|
referrer?: string | undefined;
|
|
3535
3533
|
} | undefined;
|
|
3536
|
-
json_or_markdown_file?: string | undefined;
|
|
3537
3534
|
}>, z.ZodObject<{
|
|
3538
3535
|
operation_type: z.ZodLiteral<"progress">;
|
|
3539
3536
|
data: z.ZodObject<{
|
|
@@ -3613,7 +3610,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
|
|
|
3613
3610
|
check_all_founded?: boolean | undefined;
|
|
3614
3611
|
};
|
|
3615
3612
|
}>>;
|
|
3616
|
-
operate: z.ZodOptional<z.
|
|
3613
|
+
operate: z.ZodOptional<z.ZodObject<{
|
|
3617
3614
|
operation: z.ZodObject<{
|
|
3618
3615
|
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
3619
3616
|
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -3624,53 +3621,26 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
|
|
|
3624
3621
|
forward: string;
|
|
3625
3622
|
next_node_name: string;
|
|
3626
3623
|
}>;
|
|
3627
|
-
hold: z.
|
|
3624
|
+
hold: z.ZodOptional<z.ZodBoolean>;
|
|
3628
3625
|
adminUnhold: z.ZodOptional<z.ZodBoolean>;
|
|
3629
3626
|
message: z.ZodOptional<z.ZodString>;
|
|
3630
3627
|
}, "strict", z.ZodTypeAny, {
|
|
3631
|
-
hold: true;
|
|
3632
3628
|
operation: {
|
|
3633
3629
|
forward: string;
|
|
3634
3630
|
next_node_name: string;
|
|
3635
3631
|
};
|
|
3636
3632
|
message?: string | undefined;
|
|
3633
|
+
hold?: boolean | undefined;
|
|
3637
3634
|
adminUnhold?: boolean | undefined;
|
|
3638
3635
|
}, {
|
|
3639
|
-
hold: true;
|
|
3640
3636
|
operation: {
|
|
3641
3637
|
forward: string;
|
|
3642
3638
|
next_node_name: string;
|
|
3643
3639
|
};
|
|
3644
3640
|
message?: string | undefined;
|
|
3641
|
+
hold?: boolean | undefined;
|
|
3645
3642
|
adminUnhold?: boolean | undefined;
|
|
3646
|
-
}
|
|
3647
|
-
operation: z.ZodObject<{
|
|
3648
|
-
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
3649
|
-
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
3650
|
-
}, "strict", z.ZodTypeAny, {
|
|
3651
|
-
forward: string;
|
|
3652
|
-
next_node_name: string;
|
|
3653
|
-
}, {
|
|
3654
|
-
forward: string;
|
|
3655
|
-
next_node_name: string;
|
|
3656
|
-
}>;
|
|
3657
|
-
hold: z.ZodLiteral<false>;
|
|
3658
|
-
message: z.ZodOptional<z.ZodString>;
|
|
3659
|
-
}, "strict", z.ZodTypeAny, {
|
|
3660
|
-
hold: false;
|
|
3661
|
-
operation: {
|
|
3662
|
-
forward: string;
|
|
3663
|
-
next_node_name: string;
|
|
3664
|
-
};
|
|
3665
|
-
message?: string | undefined;
|
|
3666
|
-
}, {
|
|
3667
|
-
hold: false;
|
|
3668
|
-
operation: {
|
|
3669
|
-
forward: string;
|
|
3670
|
-
next_node_name: string;
|
|
3671
|
-
};
|
|
3672
|
-
message?: string | undefined;
|
|
3673
|
-
}>]>>;
|
|
3643
|
+
}>>;
|
|
3674
3644
|
}, "strict", z.ZodTypeAny, {
|
|
3675
3645
|
object: string;
|
|
3676
3646
|
task?: string | undefined;
|
|
@@ -3695,20 +3665,13 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
|
|
|
3695
3665
|
};
|
|
3696
3666
|
} | undefined;
|
|
3697
3667
|
operate?: {
|
|
3698
|
-
hold: true;
|
|
3699
3668
|
operation: {
|
|
3700
3669
|
forward: string;
|
|
3701
3670
|
next_node_name: string;
|
|
3702
3671
|
};
|
|
3703
3672
|
message?: string | undefined;
|
|
3673
|
+
hold?: boolean | undefined;
|
|
3704
3674
|
adminUnhold?: boolean | undefined;
|
|
3705
|
-
} | {
|
|
3706
|
-
hold: false;
|
|
3707
|
-
operation: {
|
|
3708
|
-
forward: string;
|
|
3709
|
-
next_node_name: string;
|
|
3710
|
-
};
|
|
3711
|
-
message?: string | undefined;
|
|
3712
3675
|
} | undefined;
|
|
3713
3676
|
}, {
|
|
3714
3677
|
object: string;
|
|
@@ -3734,20 +3697,13 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
|
|
|
3734
3697
|
};
|
|
3735
3698
|
} | undefined;
|
|
3736
3699
|
operate?: {
|
|
3737
|
-
hold: true;
|
|
3738
3700
|
operation: {
|
|
3739
3701
|
forward: string;
|
|
3740
3702
|
next_node_name: string;
|
|
3741
3703
|
};
|
|
3742
3704
|
message?: string | undefined;
|
|
3705
|
+
hold?: boolean | undefined;
|
|
3743
3706
|
adminUnhold?: boolean | undefined;
|
|
3744
|
-
} | {
|
|
3745
|
-
hold: false;
|
|
3746
|
-
operation: {
|
|
3747
|
-
forward: string;
|
|
3748
|
-
next_node_name: string;
|
|
3749
|
-
};
|
|
3750
|
-
message?: string | undefined;
|
|
3751
3707
|
} | undefined;
|
|
3752
3708
|
}>;
|
|
3753
3709
|
env: z.ZodOptional<z.ZodObject<{
|
|
@@ -3974,20 +3930,13 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
|
|
|
3974
3930
|
};
|
|
3975
3931
|
} | undefined;
|
|
3976
3932
|
operate?: {
|
|
3977
|
-
hold: true;
|
|
3978
3933
|
operation: {
|
|
3979
3934
|
forward: string;
|
|
3980
3935
|
next_node_name: string;
|
|
3981
3936
|
};
|
|
3982
3937
|
message?: string | undefined;
|
|
3938
|
+
hold?: boolean | undefined;
|
|
3983
3939
|
adminUnhold?: boolean | undefined;
|
|
3984
|
-
} | {
|
|
3985
|
-
hold: false;
|
|
3986
|
-
operation: {
|
|
3987
|
-
forward: string;
|
|
3988
|
-
next_node_name: string;
|
|
3989
|
-
};
|
|
3990
|
-
message?: string | undefined;
|
|
3991
3940
|
} | undefined;
|
|
3992
3941
|
};
|
|
3993
3942
|
operation_type: "progress";
|
|
@@ -4050,20 +3999,13 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
|
|
|
4050
3999
|
};
|
|
4051
4000
|
} | undefined;
|
|
4052
4001
|
operate?: {
|
|
4053
|
-
hold: true;
|
|
4054
4002
|
operation: {
|
|
4055
4003
|
forward: string;
|
|
4056
4004
|
next_node_name: string;
|
|
4057
4005
|
};
|
|
4058
4006
|
message?: string | undefined;
|
|
4007
|
+
hold?: boolean | undefined;
|
|
4059
4008
|
adminUnhold?: boolean | undefined;
|
|
4060
|
-
} | {
|
|
4061
|
-
hold: false;
|
|
4062
|
-
operation: {
|
|
4063
|
-
forward: string;
|
|
4064
|
-
next_node_name: string;
|
|
4065
|
-
};
|
|
4066
|
-
message?: string | undefined;
|
|
4067
4009
|
} | undefined;
|
|
4068
4010
|
};
|
|
4069
4011
|
operation_type: "progress";
|
|
@@ -12587,7 +12529,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
|
|
|
12587
12529
|
check_all_founded?: boolean | undefined;
|
|
12588
12530
|
}>>;
|
|
12589
12531
|
required_info: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNull]>>;
|
|
12590
|
-
progress: z.ZodOptional<z.
|
|
12532
|
+
progress: z.ZodOptional<z.ZodObject<{
|
|
12591
12533
|
operation: z.ZodObject<{
|
|
12592
12534
|
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
12593
12535
|
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -12598,53 +12540,26 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
|
|
|
12598
12540
|
forward: string;
|
|
12599
12541
|
next_node_name: string;
|
|
12600
12542
|
}>;
|
|
12601
|
-
hold: z.
|
|
12543
|
+
hold: z.ZodOptional<z.ZodBoolean>;
|
|
12602
12544
|
adminUnhold: z.ZodOptional<z.ZodBoolean>;
|
|
12603
12545
|
message: z.ZodOptional<z.ZodString>;
|
|
12604
12546
|
}, "strict", z.ZodTypeAny, {
|
|
12605
|
-
hold: true;
|
|
12606
12547
|
operation: {
|
|
12607
12548
|
forward: string;
|
|
12608
12549
|
next_node_name: string;
|
|
12609
12550
|
};
|
|
12610
12551
|
message?: string | undefined;
|
|
12552
|
+
hold?: boolean | undefined;
|
|
12611
12553
|
adminUnhold?: boolean | undefined;
|
|
12612
12554
|
}, {
|
|
12613
|
-
hold: true;
|
|
12614
12555
|
operation: {
|
|
12615
12556
|
forward: string;
|
|
12616
12557
|
next_node_name: string;
|
|
12617
12558
|
};
|
|
12618
12559
|
message?: string | undefined;
|
|
12560
|
+
hold?: boolean | undefined;
|
|
12619
12561
|
adminUnhold?: boolean | undefined;
|
|
12620
|
-
}
|
|
12621
|
-
operation: z.ZodObject<{
|
|
12622
|
-
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
12623
|
-
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
12624
|
-
}, "strict", z.ZodTypeAny, {
|
|
12625
|
-
forward: string;
|
|
12626
|
-
next_node_name: string;
|
|
12627
|
-
}, {
|
|
12628
|
-
forward: string;
|
|
12629
|
-
next_node_name: string;
|
|
12630
|
-
}>;
|
|
12631
|
-
hold: z.ZodLiteral<false>;
|
|
12632
|
-
message: z.ZodOptional<z.ZodString>;
|
|
12633
|
-
}, "strict", z.ZodTypeAny, {
|
|
12634
|
-
hold: false;
|
|
12635
|
-
operation: {
|
|
12636
|
-
forward: string;
|
|
12637
|
-
next_node_name: string;
|
|
12638
|
-
};
|
|
12639
|
-
message?: string | undefined;
|
|
12640
|
-
}, {
|
|
12641
|
-
hold: false;
|
|
12642
|
-
operation: {
|
|
12643
|
-
forward: string;
|
|
12644
|
-
next_node_name: string;
|
|
12645
|
-
};
|
|
12646
|
-
message?: string | undefined;
|
|
12647
|
-
}>]>>;
|
|
12562
|
+
}>>;
|
|
12648
12563
|
arb_confirm: z.ZodOptional<z.ZodObject<{
|
|
12649
12564
|
arb: z.ZodEffects<z.ZodString, string, string>;
|
|
12650
12565
|
confirm: z.ZodBoolean;
|
|
@@ -12761,20 +12676,13 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
|
|
|
12761
12676
|
}, "strict", z.ZodTypeAny, {
|
|
12762
12677
|
object: string;
|
|
12763
12678
|
progress?: {
|
|
12764
|
-
hold: true;
|
|
12765
12679
|
operation: {
|
|
12766
12680
|
forward: string;
|
|
12767
12681
|
next_node_name: string;
|
|
12768
12682
|
};
|
|
12769
12683
|
message?: string | undefined;
|
|
12684
|
+
hold?: boolean | undefined;
|
|
12770
12685
|
adminUnhold?: boolean | undefined;
|
|
12771
|
-
} | {
|
|
12772
|
-
hold: false;
|
|
12773
|
-
operation: {
|
|
12774
|
-
forward: string;
|
|
12775
|
-
next_node_name: string;
|
|
12776
|
-
};
|
|
12777
|
-
message?: string | undefined;
|
|
12778
12686
|
} | undefined;
|
|
12779
12687
|
required_info?: string | null | undefined;
|
|
12780
12688
|
agents?: {
|
|
@@ -12818,20 +12726,13 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
|
|
|
12818
12726
|
}, {
|
|
12819
12727
|
object: string;
|
|
12820
12728
|
progress?: {
|
|
12821
|
-
hold: true;
|
|
12822
12729
|
operation: {
|
|
12823
12730
|
forward: string;
|
|
12824
12731
|
next_node_name: string;
|
|
12825
12732
|
};
|
|
12826
12733
|
message?: string | undefined;
|
|
12734
|
+
hold?: boolean | undefined;
|
|
12827
12735
|
adminUnhold?: boolean | undefined;
|
|
12828
|
-
} | {
|
|
12829
|
-
hold: false;
|
|
12830
|
-
operation: {
|
|
12831
|
-
forward: string;
|
|
12832
|
-
next_node_name: string;
|
|
12833
|
-
};
|
|
12834
|
-
message?: string | undefined;
|
|
12835
12736
|
} | undefined;
|
|
12836
12737
|
required_info?: string | null | undefined;
|
|
12837
12738
|
agents?: {
|
|
@@ -13076,20 +12977,13 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
|
|
|
13076
12977
|
data: {
|
|
13077
12978
|
object: string;
|
|
13078
12979
|
progress?: {
|
|
13079
|
-
hold: true;
|
|
13080
12980
|
operation: {
|
|
13081
12981
|
forward: string;
|
|
13082
12982
|
next_node_name: string;
|
|
13083
12983
|
};
|
|
13084
12984
|
message?: string | undefined;
|
|
12985
|
+
hold?: boolean | undefined;
|
|
13085
12986
|
adminUnhold?: boolean | undefined;
|
|
13086
|
-
} | {
|
|
13087
|
-
hold: false;
|
|
13088
|
-
operation: {
|
|
13089
|
-
forward: string;
|
|
13090
|
-
next_node_name: string;
|
|
13091
|
-
};
|
|
13092
|
-
message?: string | undefined;
|
|
13093
12987
|
} | undefined;
|
|
13094
12988
|
required_info?: string | null | undefined;
|
|
13095
12989
|
agents?: {
|
|
@@ -13170,20 +13064,13 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
|
|
|
13170
13064
|
data: {
|
|
13171
13065
|
object: string;
|
|
13172
13066
|
progress?: {
|
|
13173
|
-
hold: true;
|
|
13174
13067
|
operation: {
|
|
13175
13068
|
forward: string;
|
|
13176
13069
|
next_node_name: string;
|
|
13177
13070
|
};
|
|
13178
13071
|
message?: string | undefined;
|
|
13072
|
+
hold?: boolean | undefined;
|
|
13179
13073
|
adminUnhold?: boolean | undefined;
|
|
13180
|
-
} | {
|
|
13181
|
-
hold: false;
|
|
13182
|
-
operation: {
|
|
13183
|
-
forward: string;
|
|
13184
|
-
next_node_name: string;
|
|
13185
|
-
};
|
|
13186
|
-
message?: string | undefined;
|
|
13187
13074
|
} | undefined;
|
|
13188
13075
|
required_info?: string | null | undefined;
|
|
13189
13076
|
agents?: {
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,8 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
4
4
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
5
5
|
import { readFileSync } from "fs";
|
|
6
6
|
import { resolve } from "path";
|
|
7
|
-
|
|
7
|
+
// Read package.json
|
|
8
|
+
const packageJson = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf-8"));
|
|
8
9
|
// Import schema
|
|
9
10
|
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, WatchQueryOperationsResultSchema, NameOrAddressSchema, AccountOrMark_AddressSchema, ObjectTypeSchema, AccountOperationOutputWrappedSchema, LocalMarkOperationOutputWrappedSchema, LocalInfoOperationOutputWrappedSchema, WipOperationOutputSchema, MessengerOperationOutputSchema, AccountOperationSchema, LocalMarkOperationSchema, LocalInfoOperationSchema, parseMachineNodesFromText, formatNodeErrors as formatMachineNodeErrors, MessengerOperationInputSchema, } from "./schema/index.js";
|
|
10
11
|
// Import wowok SDK
|
|
@@ -112,8 +113,8 @@ Token amounts are HIGHLY SENSITIVE. Always:
|
|
|
112
113
|
- guard2file
|
|
113
114
|
- machineNode2file
|
|
114
115
|
`;
|
|
115
|
-
// Create server instance
|
|
116
|
-
const server = new McpServer(createServerConfig(packageJson), createCapabilitiesConfig());
|
|
116
|
+
// Create server instance with SERVER_DESCRIPTION
|
|
117
|
+
const server = new McpServer(createServerConfig(packageJson, SERVER_DESCRIPTION), createCapabilitiesConfig());
|
|
117
118
|
// ================================================
|
|
118
119
|
// Helper Functions
|
|
119
120
|
// ================================================
|
|
@@ -172,7 +173,6 @@ const OnchainOperationsSchema = z.discriminatedUnion("operation_type", [
|
|
|
172
173
|
z.object({
|
|
173
174
|
operation_type: z.literal("machine"),
|
|
174
175
|
data: CallMachine_DataSchema,
|
|
175
|
-
json_or_markdown_file: z.string().optional().describe("Path to a JSON or Markdown file containing the node definition. File content will be parsed and used to set nodes. If parsing fails, error will include line number and node information."),
|
|
176
176
|
env: CallEnvSchema.optional(),
|
|
177
177
|
submission: SubmissionCallSchema.optional(),
|
|
178
178
|
}).describe("⚙️ Machine Object: Design and deploy automated workflow templates (Machines) that define how services are delivered, etc.."),
|
|
@@ -393,25 +393,26 @@ async function handleOnchainOperations(args) {
|
|
|
393
393
|
return handleCallResult(result);
|
|
394
394
|
}
|
|
395
395
|
case "machine": {
|
|
396
|
-
// Handle json_or_markdown_file if provided
|
|
397
|
-
if (validated.json_or_markdown_file
|
|
396
|
+
// Handle json_or_markdown_file in data.node if provided
|
|
397
|
+
if (validated.data.node && typeof validated.data.node === 'object' && 'json_or_markdown_file' in validated.data.node) {
|
|
398
|
+
const filePathStr = validated.data.node.json_or_markdown_file;
|
|
398
399
|
let fileContent;
|
|
399
400
|
try {
|
|
400
|
-
const filePath = resolve(
|
|
401
|
+
const filePath = resolve(filePathStr);
|
|
401
402
|
fileContent = readFileSync(filePath, 'utf-8');
|
|
402
403
|
}
|
|
403
404
|
catch (e) {
|
|
404
|
-
throw new Error(`Failed to read file '${
|
|
405
|
+
throw new Error(`Failed to read file '${filePathStr}': ${e.message}`);
|
|
405
406
|
}
|
|
406
407
|
const parseResult = parseMachineNodesFromText(fileContent);
|
|
407
408
|
if (!parseResult.success) {
|
|
408
409
|
const errorMessages = formatMachineNodeErrors(parseResult.errors);
|
|
409
|
-
throw new Error(`Machine node validation failed for file '${
|
|
410
|
+
throw new Error(`Machine node validation failed for file '${filePathStr}':\n\n${errorMessages}`);
|
|
410
411
|
}
|
|
411
412
|
if (!parseResult.data) {
|
|
412
|
-
throw new Error(`No nodes found in file '${
|
|
413
|
+
throw new Error(`No nodes found in file '${filePathStr}'`);
|
|
413
414
|
}
|
|
414
|
-
//
|
|
415
|
+
// Replace data.node with parsed nodes (set operation with replace)
|
|
415
416
|
validated.data.node = {
|
|
416
417
|
op: "set",
|
|
417
418
|
nodes: parseResult.data,
|
|
@@ -12,9 +12,10 @@ export declare function handleCallResult(result: any): {
|
|
|
12
12
|
/**
|
|
13
13
|
* Create standard MCP Server configuration
|
|
14
14
|
* @param packageJson package.json content
|
|
15
|
+
* @param description server description (overrides packageJson.description)
|
|
15
16
|
* @returns MCP Server configuration
|
|
16
17
|
*/
|
|
17
|
-
export declare function createServerConfig(packageJson: any): {
|
|
18
|
+
export declare function createServerConfig(packageJson: any, description?: string): {
|
|
18
19
|
name: any;
|
|
19
20
|
version: any;
|
|
20
21
|
description: any;
|
|
@@ -85,13 +85,14 @@ export function handleCallResult(result) {
|
|
|
85
85
|
/**
|
|
86
86
|
* Create standard MCP Server configuration
|
|
87
87
|
* @param packageJson package.json content
|
|
88
|
+
* @param description server description (overrides packageJson.description)
|
|
88
89
|
* @returns MCP Server configuration
|
|
89
90
|
*/
|
|
90
|
-
export function createServerConfig(packageJson) {
|
|
91
|
+
export function createServerConfig(packageJson, description) {
|
|
91
92
|
return {
|
|
92
93
|
name: packageJson.name,
|
|
93
94
|
version: packageJson.version,
|
|
94
|
-
description: packageJson.description,
|
|
95
|
+
description: description || packageJson.description,
|
|
95
96
|
};
|
|
96
97
|
}
|
|
97
98
|
/**
|
|
@@ -60,7 +60,7 @@ export declare const CallOrder_DataSchema: z.ZodObject<{
|
|
|
60
60
|
check_all_founded?: boolean | undefined;
|
|
61
61
|
}>>;
|
|
62
62
|
required_info: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNull]>>;
|
|
63
|
-
progress: z.ZodOptional<z.
|
|
63
|
+
progress: z.ZodOptional<z.ZodObject<{
|
|
64
64
|
operation: z.ZodObject<{
|
|
65
65
|
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
66
66
|
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -71,53 +71,26 @@ export declare const CallOrder_DataSchema: z.ZodObject<{
|
|
|
71
71
|
forward: string;
|
|
72
72
|
next_node_name: string;
|
|
73
73
|
}>;
|
|
74
|
-
hold: z.
|
|
74
|
+
hold: z.ZodOptional<z.ZodBoolean>;
|
|
75
75
|
adminUnhold: z.ZodOptional<z.ZodBoolean>;
|
|
76
76
|
message: z.ZodOptional<z.ZodString>;
|
|
77
77
|
}, "strict", z.ZodTypeAny, {
|
|
78
|
-
hold: true;
|
|
79
78
|
operation: {
|
|
80
79
|
forward: string;
|
|
81
80
|
next_node_name: string;
|
|
82
81
|
};
|
|
83
82
|
message?: string | undefined;
|
|
83
|
+
hold?: boolean | undefined;
|
|
84
84
|
adminUnhold?: boolean | undefined;
|
|
85
85
|
}, {
|
|
86
|
-
hold: true;
|
|
87
86
|
operation: {
|
|
88
87
|
forward: string;
|
|
89
88
|
next_node_name: string;
|
|
90
89
|
};
|
|
91
90
|
message?: string | undefined;
|
|
91
|
+
hold?: boolean | undefined;
|
|
92
92
|
adminUnhold?: boolean | undefined;
|
|
93
|
-
}
|
|
94
|
-
operation: z.ZodObject<{
|
|
95
|
-
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
96
|
-
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
97
|
-
}, "strict", z.ZodTypeAny, {
|
|
98
|
-
forward: string;
|
|
99
|
-
next_node_name: string;
|
|
100
|
-
}, {
|
|
101
|
-
forward: string;
|
|
102
|
-
next_node_name: string;
|
|
103
|
-
}>;
|
|
104
|
-
hold: z.ZodLiteral<false>;
|
|
105
|
-
message: z.ZodOptional<z.ZodString>;
|
|
106
|
-
}, "strict", z.ZodTypeAny, {
|
|
107
|
-
hold: false;
|
|
108
|
-
operation: {
|
|
109
|
-
forward: string;
|
|
110
|
-
next_node_name: string;
|
|
111
|
-
};
|
|
112
|
-
message?: string | undefined;
|
|
113
|
-
}, {
|
|
114
|
-
hold: false;
|
|
115
|
-
operation: {
|
|
116
|
-
forward: string;
|
|
117
|
-
next_node_name: string;
|
|
118
|
-
};
|
|
119
|
-
message?: string | undefined;
|
|
120
|
-
}>]>>;
|
|
93
|
+
}>>;
|
|
121
94
|
arb_confirm: z.ZodOptional<z.ZodObject<{
|
|
122
95
|
arb: z.ZodEffects<z.ZodString, string, string>;
|
|
123
96
|
confirm: z.ZodBoolean;
|
|
@@ -234,20 +207,13 @@ export declare const CallOrder_DataSchema: z.ZodObject<{
|
|
|
234
207
|
}, "strict", z.ZodTypeAny, {
|
|
235
208
|
object: string;
|
|
236
209
|
progress?: {
|
|
237
|
-
hold: true;
|
|
238
210
|
operation: {
|
|
239
211
|
forward: string;
|
|
240
212
|
next_node_name: string;
|
|
241
213
|
};
|
|
242
214
|
message?: string | undefined;
|
|
215
|
+
hold?: boolean | undefined;
|
|
243
216
|
adminUnhold?: boolean | undefined;
|
|
244
|
-
} | {
|
|
245
|
-
hold: false;
|
|
246
|
-
operation: {
|
|
247
|
-
forward: string;
|
|
248
|
-
next_node_name: string;
|
|
249
|
-
};
|
|
250
|
-
message?: string | undefined;
|
|
251
217
|
} | undefined;
|
|
252
218
|
required_info?: string | null | undefined;
|
|
253
219
|
agents?: {
|
|
@@ -291,20 +257,13 @@ export declare const CallOrder_DataSchema: z.ZodObject<{
|
|
|
291
257
|
}, {
|
|
292
258
|
object: string;
|
|
293
259
|
progress?: {
|
|
294
|
-
hold: true;
|
|
295
260
|
operation: {
|
|
296
261
|
forward: string;
|
|
297
262
|
next_node_name: string;
|
|
298
263
|
};
|
|
299
264
|
message?: string | undefined;
|
|
265
|
+
hold?: boolean | undefined;
|
|
300
266
|
adminUnhold?: boolean | undefined;
|
|
301
|
-
} | {
|
|
302
|
-
hold: false;
|
|
303
|
-
operation: {
|
|
304
|
-
forward: string;
|
|
305
|
-
next_node_name: string;
|
|
306
|
-
};
|
|
307
|
-
message?: string | undefined;
|
|
308
267
|
} | undefined;
|
|
309
268
|
required_info?: string | null | undefined;
|
|
310
269
|
agents?: {
|
|
@@ -375,7 +334,7 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
|
|
|
375
334
|
check_all_founded?: boolean | undefined;
|
|
376
335
|
}>>;
|
|
377
336
|
required_info: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNull]>>;
|
|
378
|
-
progress: z.ZodOptional<z.
|
|
337
|
+
progress: z.ZodOptional<z.ZodObject<{
|
|
379
338
|
operation: z.ZodObject<{
|
|
380
339
|
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
381
340
|
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -386,53 +345,26 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
|
|
|
386
345
|
forward: string;
|
|
387
346
|
next_node_name: string;
|
|
388
347
|
}>;
|
|
389
|
-
hold: z.
|
|
348
|
+
hold: z.ZodOptional<z.ZodBoolean>;
|
|
390
349
|
adminUnhold: z.ZodOptional<z.ZodBoolean>;
|
|
391
350
|
message: z.ZodOptional<z.ZodString>;
|
|
392
351
|
}, "strict", z.ZodTypeAny, {
|
|
393
|
-
hold: true;
|
|
394
352
|
operation: {
|
|
395
353
|
forward: string;
|
|
396
354
|
next_node_name: string;
|
|
397
355
|
};
|
|
398
356
|
message?: string | undefined;
|
|
357
|
+
hold?: boolean | undefined;
|
|
399
358
|
adminUnhold?: boolean | undefined;
|
|
400
359
|
}, {
|
|
401
|
-
hold: true;
|
|
402
360
|
operation: {
|
|
403
361
|
forward: string;
|
|
404
362
|
next_node_name: string;
|
|
405
363
|
};
|
|
406
364
|
message?: string | undefined;
|
|
365
|
+
hold?: boolean | undefined;
|
|
407
366
|
adminUnhold?: boolean | undefined;
|
|
408
|
-
}
|
|
409
|
-
operation: z.ZodObject<{
|
|
410
|
-
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
411
|
-
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
412
|
-
}, "strict", z.ZodTypeAny, {
|
|
413
|
-
forward: string;
|
|
414
|
-
next_node_name: string;
|
|
415
|
-
}, {
|
|
416
|
-
forward: string;
|
|
417
|
-
next_node_name: string;
|
|
418
|
-
}>;
|
|
419
|
-
hold: z.ZodLiteral<false>;
|
|
420
|
-
message: z.ZodOptional<z.ZodString>;
|
|
421
|
-
}, "strict", z.ZodTypeAny, {
|
|
422
|
-
hold: false;
|
|
423
|
-
operation: {
|
|
424
|
-
forward: string;
|
|
425
|
-
next_node_name: string;
|
|
426
|
-
};
|
|
427
|
-
message?: string | undefined;
|
|
428
|
-
}, {
|
|
429
|
-
hold: false;
|
|
430
|
-
operation: {
|
|
431
|
-
forward: string;
|
|
432
|
-
next_node_name: string;
|
|
433
|
-
};
|
|
434
|
-
message?: string | undefined;
|
|
435
|
-
}>]>>;
|
|
367
|
+
}>>;
|
|
436
368
|
arb_confirm: z.ZodOptional<z.ZodObject<{
|
|
437
369
|
arb: z.ZodEffects<z.ZodString, string, string>;
|
|
438
370
|
confirm: z.ZodBoolean;
|
|
@@ -549,20 +481,13 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
|
|
|
549
481
|
}, "strict", z.ZodTypeAny, {
|
|
550
482
|
object: string;
|
|
551
483
|
progress?: {
|
|
552
|
-
hold: true;
|
|
553
484
|
operation: {
|
|
554
485
|
forward: string;
|
|
555
486
|
next_node_name: string;
|
|
556
487
|
};
|
|
557
488
|
message?: string | undefined;
|
|
489
|
+
hold?: boolean | undefined;
|
|
558
490
|
adminUnhold?: boolean | undefined;
|
|
559
|
-
} | {
|
|
560
|
-
hold: false;
|
|
561
|
-
operation: {
|
|
562
|
-
forward: string;
|
|
563
|
-
next_node_name: string;
|
|
564
|
-
};
|
|
565
|
-
message?: string | undefined;
|
|
566
491
|
} | undefined;
|
|
567
492
|
required_info?: string | null | undefined;
|
|
568
493
|
agents?: {
|
|
@@ -606,20 +531,13 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
|
|
|
606
531
|
}, {
|
|
607
532
|
object: string;
|
|
608
533
|
progress?: {
|
|
609
|
-
hold: true;
|
|
610
534
|
operation: {
|
|
611
535
|
forward: string;
|
|
612
536
|
next_node_name: string;
|
|
613
537
|
};
|
|
614
538
|
message?: string | undefined;
|
|
539
|
+
hold?: boolean | undefined;
|
|
615
540
|
adminUnhold?: boolean | undefined;
|
|
616
|
-
} | {
|
|
617
|
-
hold: false;
|
|
618
|
-
operation: {
|
|
619
|
-
forward: string;
|
|
620
|
-
next_node_name: string;
|
|
621
|
-
};
|
|
622
|
-
message?: string | undefined;
|
|
623
541
|
} | undefined;
|
|
624
542
|
required_info?: string | null | undefined;
|
|
625
543
|
agents?: {
|
|
@@ -864,20 +782,13 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
|
|
|
864
782
|
data: {
|
|
865
783
|
object: string;
|
|
866
784
|
progress?: {
|
|
867
|
-
hold: true;
|
|
868
785
|
operation: {
|
|
869
786
|
forward: string;
|
|
870
787
|
next_node_name: string;
|
|
871
788
|
};
|
|
872
789
|
message?: string | undefined;
|
|
790
|
+
hold?: boolean | undefined;
|
|
873
791
|
adminUnhold?: boolean | undefined;
|
|
874
|
-
} | {
|
|
875
|
-
hold: false;
|
|
876
|
-
operation: {
|
|
877
|
-
forward: string;
|
|
878
|
-
next_node_name: string;
|
|
879
|
-
};
|
|
880
|
-
message?: string | undefined;
|
|
881
792
|
} | undefined;
|
|
882
793
|
required_info?: string | null | undefined;
|
|
883
794
|
agents?: {
|
|
@@ -957,20 +868,13 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
|
|
|
957
868
|
data: {
|
|
958
869
|
object: string;
|
|
959
870
|
progress?: {
|
|
960
|
-
hold: true;
|
|
961
871
|
operation: {
|
|
962
872
|
forward: string;
|
|
963
873
|
next_node_name: string;
|
|
964
874
|
};
|
|
965
875
|
message?: string | undefined;
|
|
876
|
+
hold?: boolean | undefined;
|
|
966
877
|
adminUnhold?: boolean | undefined;
|
|
967
|
-
} | {
|
|
968
|
-
hold: false;
|
|
969
|
-
operation: {
|
|
970
|
-
forward: string;
|
|
971
|
-
next_node_name: string;
|
|
972
|
-
};
|
|
973
|
-
message?: string | undefined;
|
|
974
878
|
} | undefined;
|
|
975
879
|
required_info?: string | null | undefined;
|
|
976
880
|
agents?: {
|
|
@@ -9,7 +9,7 @@ export declare const ProgressNextSchema: z.ZodObject<{
|
|
|
9
9
|
forward: string;
|
|
10
10
|
next_node_name: string;
|
|
11
11
|
}>;
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const OperateSchema: z.ZodObject<{
|
|
13
13
|
operation: z.ZodObject<{
|
|
14
14
|
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
15
15
|
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -20,112 +20,26 @@ export declare const OperateWithHoldSchema: z.ZodObject<{
|
|
|
20
20
|
forward: string;
|
|
21
21
|
next_node_name: string;
|
|
22
22
|
}>;
|
|
23
|
-
hold: z.
|
|
23
|
+
hold: z.ZodOptional<z.ZodBoolean>;
|
|
24
24
|
adminUnhold: z.ZodOptional<z.ZodBoolean>;
|
|
25
25
|
message: z.ZodOptional<z.ZodString>;
|
|
26
26
|
}, "strict", z.ZodTypeAny, {
|
|
27
|
-
hold: true;
|
|
28
27
|
operation: {
|
|
29
28
|
forward: string;
|
|
30
29
|
next_node_name: string;
|
|
31
30
|
};
|
|
32
31
|
message?: string | undefined;
|
|
32
|
+
hold?: boolean | undefined;
|
|
33
33
|
adminUnhold?: boolean | undefined;
|
|
34
34
|
}, {
|
|
35
|
-
hold: true;
|
|
36
35
|
operation: {
|
|
37
36
|
forward: string;
|
|
38
37
|
next_node_name: string;
|
|
39
38
|
};
|
|
40
39
|
message?: string | undefined;
|
|
40
|
+
hold?: boolean | undefined;
|
|
41
41
|
adminUnhold?: boolean | undefined;
|
|
42
42
|
}>;
|
|
43
|
-
export declare const OperateWithoutHoldSchema: z.ZodObject<{
|
|
44
|
-
operation: z.ZodObject<{
|
|
45
|
-
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
46
|
-
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
47
|
-
}, "strict", z.ZodTypeAny, {
|
|
48
|
-
forward: string;
|
|
49
|
-
next_node_name: string;
|
|
50
|
-
}, {
|
|
51
|
-
forward: string;
|
|
52
|
-
next_node_name: string;
|
|
53
|
-
}>;
|
|
54
|
-
hold: z.ZodLiteral<false>;
|
|
55
|
-
message: z.ZodOptional<z.ZodString>;
|
|
56
|
-
}, "strict", z.ZodTypeAny, {
|
|
57
|
-
hold: false;
|
|
58
|
-
operation: {
|
|
59
|
-
forward: string;
|
|
60
|
-
next_node_name: string;
|
|
61
|
-
};
|
|
62
|
-
message?: string | undefined;
|
|
63
|
-
}, {
|
|
64
|
-
hold: false;
|
|
65
|
-
operation: {
|
|
66
|
-
forward: string;
|
|
67
|
-
next_node_name: string;
|
|
68
|
-
};
|
|
69
|
-
message?: string | undefined;
|
|
70
|
-
}>;
|
|
71
|
-
export declare const OperateSchema: z.ZodDiscriminatedUnion<"hold", [z.ZodObject<{
|
|
72
|
-
operation: z.ZodObject<{
|
|
73
|
-
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
74
|
-
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
75
|
-
}, "strict", z.ZodTypeAny, {
|
|
76
|
-
forward: string;
|
|
77
|
-
next_node_name: string;
|
|
78
|
-
}, {
|
|
79
|
-
forward: string;
|
|
80
|
-
next_node_name: string;
|
|
81
|
-
}>;
|
|
82
|
-
hold: z.ZodLiteral<true>;
|
|
83
|
-
adminUnhold: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
-
message: z.ZodOptional<z.ZodString>;
|
|
85
|
-
}, "strict", z.ZodTypeAny, {
|
|
86
|
-
hold: true;
|
|
87
|
-
operation: {
|
|
88
|
-
forward: string;
|
|
89
|
-
next_node_name: string;
|
|
90
|
-
};
|
|
91
|
-
message?: string | undefined;
|
|
92
|
-
adminUnhold?: boolean | undefined;
|
|
93
|
-
}, {
|
|
94
|
-
hold: true;
|
|
95
|
-
operation: {
|
|
96
|
-
forward: string;
|
|
97
|
-
next_node_name: string;
|
|
98
|
-
};
|
|
99
|
-
message?: string | undefined;
|
|
100
|
-
adminUnhold?: boolean | undefined;
|
|
101
|
-
}>, z.ZodObject<{
|
|
102
|
-
operation: z.ZodObject<{
|
|
103
|
-
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
104
|
-
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
105
|
-
}, "strict", z.ZodTypeAny, {
|
|
106
|
-
forward: string;
|
|
107
|
-
next_node_name: string;
|
|
108
|
-
}, {
|
|
109
|
-
forward: string;
|
|
110
|
-
next_node_name: string;
|
|
111
|
-
}>;
|
|
112
|
-
hold: z.ZodLiteral<false>;
|
|
113
|
-
message: z.ZodOptional<z.ZodString>;
|
|
114
|
-
}, "strict", z.ZodTypeAny, {
|
|
115
|
-
hold: false;
|
|
116
|
-
operation: {
|
|
117
|
-
forward: string;
|
|
118
|
-
next_node_name: string;
|
|
119
|
-
};
|
|
120
|
-
message?: string | undefined;
|
|
121
|
-
}, {
|
|
122
|
-
hold: false;
|
|
123
|
-
operation: {
|
|
124
|
-
forward: string;
|
|
125
|
-
next_node_name: string;
|
|
126
|
-
};
|
|
127
|
-
message?: string | undefined;
|
|
128
|
-
}>]>;
|
|
129
43
|
export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
130
44
|
object: z.ZodEffects<z.ZodString, string, string>;
|
|
131
45
|
task: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -203,7 +117,7 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
203
117
|
check_all_founded?: boolean | undefined;
|
|
204
118
|
};
|
|
205
119
|
}>>;
|
|
206
|
-
operate: z.ZodOptional<z.
|
|
120
|
+
operate: z.ZodOptional<z.ZodObject<{
|
|
207
121
|
operation: z.ZodObject<{
|
|
208
122
|
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
209
123
|
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -214,53 +128,26 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
214
128
|
forward: string;
|
|
215
129
|
next_node_name: string;
|
|
216
130
|
}>;
|
|
217
|
-
hold: z.
|
|
131
|
+
hold: z.ZodOptional<z.ZodBoolean>;
|
|
218
132
|
adminUnhold: z.ZodOptional<z.ZodBoolean>;
|
|
219
133
|
message: z.ZodOptional<z.ZodString>;
|
|
220
134
|
}, "strict", z.ZodTypeAny, {
|
|
221
|
-
hold: true;
|
|
222
135
|
operation: {
|
|
223
136
|
forward: string;
|
|
224
137
|
next_node_name: string;
|
|
225
138
|
};
|
|
226
139
|
message?: string | undefined;
|
|
140
|
+
hold?: boolean | undefined;
|
|
227
141
|
adminUnhold?: boolean | undefined;
|
|
228
142
|
}, {
|
|
229
|
-
hold: true;
|
|
230
143
|
operation: {
|
|
231
144
|
forward: string;
|
|
232
145
|
next_node_name: string;
|
|
233
146
|
};
|
|
234
147
|
message?: string | undefined;
|
|
148
|
+
hold?: boolean | undefined;
|
|
235
149
|
adminUnhold?: boolean | undefined;
|
|
236
|
-
}
|
|
237
|
-
operation: z.ZodObject<{
|
|
238
|
-
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
239
|
-
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
240
|
-
}, "strict", z.ZodTypeAny, {
|
|
241
|
-
forward: string;
|
|
242
|
-
next_node_name: string;
|
|
243
|
-
}, {
|
|
244
|
-
forward: string;
|
|
245
|
-
next_node_name: string;
|
|
246
|
-
}>;
|
|
247
|
-
hold: z.ZodLiteral<false>;
|
|
248
|
-
message: z.ZodOptional<z.ZodString>;
|
|
249
|
-
}, "strict", z.ZodTypeAny, {
|
|
250
|
-
hold: false;
|
|
251
|
-
operation: {
|
|
252
|
-
forward: string;
|
|
253
|
-
next_node_name: string;
|
|
254
|
-
};
|
|
255
|
-
message?: string | undefined;
|
|
256
|
-
}, {
|
|
257
|
-
hold: false;
|
|
258
|
-
operation: {
|
|
259
|
-
forward: string;
|
|
260
|
-
next_node_name: string;
|
|
261
|
-
};
|
|
262
|
-
message?: string | undefined;
|
|
263
|
-
}>]>>;
|
|
150
|
+
}>>;
|
|
264
151
|
}, "strict", z.ZodTypeAny, {
|
|
265
152
|
object: string;
|
|
266
153
|
task?: string | undefined;
|
|
@@ -285,20 +172,13 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
285
172
|
};
|
|
286
173
|
} | undefined;
|
|
287
174
|
operate?: {
|
|
288
|
-
hold: true;
|
|
289
175
|
operation: {
|
|
290
176
|
forward: string;
|
|
291
177
|
next_node_name: string;
|
|
292
178
|
};
|
|
293
179
|
message?: string | undefined;
|
|
180
|
+
hold?: boolean | undefined;
|
|
294
181
|
adminUnhold?: boolean | undefined;
|
|
295
|
-
} | {
|
|
296
|
-
hold: false;
|
|
297
|
-
operation: {
|
|
298
|
-
forward: string;
|
|
299
|
-
next_node_name: string;
|
|
300
|
-
};
|
|
301
|
-
message?: string | undefined;
|
|
302
182
|
} | undefined;
|
|
303
183
|
}, {
|
|
304
184
|
object: string;
|
|
@@ -324,20 +204,13 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
324
204
|
};
|
|
325
205
|
} | undefined;
|
|
326
206
|
operate?: {
|
|
327
|
-
hold: true;
|
|
328
207
|
operation: {
|
|
329
208
|
forward: string;
|
|
330
209
|
next_node_name: string;
|
|
331
210
|
};
|
|
332
211
|
message?: string | undefined;
|
|
212
|
+
hold?: boolean | undefined;
|
|
333
213
|
adminUnhold?: boolean | undefined;
|
|
334
|
-
} | {
|
|
335
|
-
hold: false;
|
|
336
|
-
operation: {
|
|
337
|
-
forward: string;
|
|
338
|
-
next_node_name: string;
|
|
339
|
-
};
|
|
340
|
-
message?: string | undefined;
|
|
341
214
|
} | undefined;
|
|
342
215
|
}>;
|
|
343
216
|
export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
@@ -418,7 +291,7 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
418
291
|
check_all_founded?: boolean | undefined;
|
|
419
292
|
};
|
|
420
293
|
}>>;
|
|
421
|
-
operate: z.ZodOptional<z.
|
|
294
|
+
operate: z.ZodOptional<z.ZodObject<{
|
|
422
295
|
operation: z.ZodObject<{
|
|
423
296
|
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
424
297
|
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -429,53 +302,26 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
429
302
|
forward: string;
|
|
430
303
|
next_node_name: string;
|
|
431
304
|
}>;
|
|
432
|
-
hold: z.
|
|
305
|
+
hold: z.ZodOptional<z.ZodBoolean>;
|
|
433
306
|
adminUnhold: z.ZodOptional<z.ZodBoolean>;
|
|
434
307
|
message: z.ZodOptional<z.ZodString>;
|
|
435
308
|
}, "strict", z.ZodTypeAny, {
|
|
436
|
-
hold: true;
|
|
437
309
|
operation: {
|
|
438
310
|
forward: string;
|
|
439
311
|
next_node_name: string;
|
|
440
312
|
};
|
|
441
313
|
message?: string | undefined;
|
|
314
|
+
hold?: boolean | undefined;
|
|
442
315
|
adminUnhold?: boolean | undefined;
|
|
443
316
|
}, {
|
|
444
|
-
hold: true;
|
|
445
317
|
operation: {
|
|
446
318
|
forward: string;
|
|
447
319
|
next_node_name: string;
|
|
448
320
|
};
|
|
449
321
|
message?: string | undefined;
|
|
322
|
+
hold?: boolean | undefined;
|
|
450
323
|
adminUnhold?: boolean | undefined;
|
|
451
|
-
}
|
|
452
|
-
operation: z.ZodObject<{
|
|
453
|
-
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
454
|
-
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
455
|
-
}, "strict", z.ZodTypeAny, {
|
|
456
|
-
forward: string;
|
|
457
|
-
next_node_name: string;
|
|
458
|
-
}, {
|
|
459
|
-
forward: string;
|
|
460
|
-
next_node_name: string;
|
|
461
|
-
}>;
|
|
462
|
-
hold: z.ZodLiteral<false>;
|
|
463
|
-
message: z.ZodOptional<z.ZodString>;
|
|
464
|
-
}, "strict", z.ZodTypeAny, {
|
|
465
|
-
hold: false;
|
|
466
|
-
operation: {
|
|
467
|
-
forward: string;
|
|
468
|
-
next_node_name: string;
|
|
469
|
-
};
|
|
470
|
-
message?: string | undefined;
|
|
471
|
-
}, {
|
|
472
|
-
hold: false;
|
|
473
|
-
operation: {
|
|
474
|
-
forward: string;
|
|
475
|
-
next_node_name: string;
|
|
476
|
-
};
|
|
477
|
-
message?: string | undefined;
|
|
478
|
-
}>]>>;
|
|
324
|
+
}>>;
|
|
479
325
|
}, "strict", z.ZodTypeAny, {
|
|
480
326
|
object: string;
|
|
481
327
|
task?: string | undefined;
|
|
@@ -500,20 +346,13 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
500
346
|
};
|
|
501
347
|
} | undefined;
|
|
502
348
|
operate?: {
|
|
503
|
-
hold: true;
|
|
504
349
|
operation: {
|
|
505
350
|
forward: string;
|
|
506
351
|
next_node_name: string;
|
|
507
352
|
};
|
|
508
353
|
message?: string | undefined;
|
|
354
|
+
hold?: boolean | undefined;
|
|
509
355
|
adminUnhold?: boolean | undefined;
|
|
510
|
-
} | {
|
|
511
|
-
hold: false;
|
|
512
|
-
operation: {
|
|
513
|
-
forward: string;
|
|
514
|
-
next_node_name: string;
|
|
515
|
-
};
|
|
516
|
-
message?: string | undefined;
|
|
517
356
|
} | undefined;
|
|
518
357
|
}, {
|
|
519
358
|
object: string;
|
|
@@ -539,20 +378,13 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
539
378
|
};
|
|
540
379
|
} | undefined;
|
|
541
380
|
operate?: {
|
|
542
|
-
hold: true;
|
|
543
381
|
operation: {
|
|
544
382
|
forward: string;
|
|
545
383
|
next_node_name: string;
|
|
546
384
|
};
|
|
547
385
|
message?: string | undefined;
|
|
386
|
+
hold?: boolean | undefined;
|
|
548
387
|
adminUnhold?: boolean | undefined;
|
|
549
|
-
} | {
|
|
550
|
-
hold: false;
|
|
551
|
-
operation: {
|
|
552
|
-
forward: string;
|
|
553
|
-
next_node_name: string;
|
|
554
|
-
};
|
|
555
|
-
message?: string | undefined;
|
|
556
388
|
} | undefined;
|
|
557
389
|
}>;
|
|
558
390
|
env: z.ZodOptional<z.ZodObject<{
|
|
@@ -779,20 +611,13 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
779
611
|
};
|
|
780
612
|
} | undefined;
|
|
781
613
|
operate?: {
|
|
782
|
-
hold: true;
|
|
783
614
|
operation: {
|
|
784
615
|
forward: string;
|
|
785
616
|
next_node_name: string;
|
|
786
617
|
};
|
|
787
618
|
message?: string | undefined;
|
|
619
|
+
hold?: boolean | undefined;
|
|
788
620
|
adminUnhold?: boolean | undefined;
|
|
789
|
-
} | {
|
|
790
|
-
hold: false;
|
|
791
|
-
operation: {
|
|
792
|
-
forward: string;
|
|
793
|
-
next_node_name: string;
|
|
794
|
-
};
|
|
795
|
-
message?: string | undefined;
|
|
796
621
|
} | undefined;
|
|
797
622
|
};
|
|
798
623
|
submission?: {
|
|
@@ -854,20 +679,13 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
854
679
|
};
|
|
855
680
|
} | undefined;
|
|
856
681
|
operate?: {
|
|
857
|
-
hold: true;
|
|
858
682
|
operation: {
|
|
859
683
|
forward: string;
|
|
860
684
|
next_node_name: string;
|
|
861
685
|
};
|
|
862
686
|
message?: string | undefined;
|
|
687
|
+
hold?: boolean | undefined;
|
|
863
688
|
adminUnhold?: boolean | undefined;
|
|
864
|
-
} | {
|
|
865
|
-
hold: false;
|
|
866
|
-
operation: {
|
|
867
|
-
forward: string;
|
|
868
|
-
next_node_name: string;
|
|
869
|
-
};
|
|
870
|
-
message?: string | undefined;
|
|
871
689
|
} | undefined;
|
|
872
690
|
};
|
|
873
691
|
submission?: {
|
|
@@ -5,24 +5,15 @@ import { NameOrAddressSchema, NameSchema } from "../common/index.js";
|
|
|
5
5
|
// ProgressNext 类型定义
|
|
6
6
|
export const ProgressNextSchema = z.object({
|
|
7
7
|
next_node_name: NameSchema.describe("Next node name."),
|
|
8
|
-
forward: NameSchema.describe("Next
|
|
8
|
+
forward: NameSchema.describe("Next forward name."),
|
|
9
9
|
}).strict().describe("Specify a specific operation between current node and next node.");
|
|
10
10
|
// Operate 操作类型
|
|
11
|
-
export const
|
|
11
|
+
export const OperateSchema = z.object({
|
|
12
12
|
operation: ProgressNextSchema,
|
|
13
|
-
hold: z.
|
|
14
|
-
adminUnhold: z.boolean().optional().describe("Whether to allow admin to force unlock."),
|
|
13
|
+
hold: z.boolean().optional().describe("Whether to lock operation permission. When true, locks the permission; when false or omitted, submits operation result directly."),
|
|
14
|
+
adminUnhold: z.boolean().optional().describe("Whether to allow admin to force unlock. Only applicable when hold is true."),
|
|
15
15
|
message: z.string().optional().describe("Operation result message."),
|
|
16
|
-
}).strict().describe("Advance Progress object: lock operation permission.");
|
|
17
|
-
export const OperateWithoutHoldSchema = z.object({
|
|
18
|
-
operation: ProgressNextSchema,
|
|
19
|
-
hold: z.literal(false),
|
|
20
|
-
message: z.string().optional().describe("Operation result message."),
|
|
21
|
-
}).strict().describe("Advance Progress object: submit operation result.");
|
|
22
|
-
export const OperateSchema = z.discriminatedUnion("hold", [
|
|
23
|
-
OperateWithHoldSchema,
|
|
24
|
-
OperateWithoutHoldSchema,
|
|
25
|
-
]);
|
|
16
|
+
}).strict().describe("Advance Progress object: lock operation permission (hold=true) or submit operation result (hold=false or omitted).");
|
|
26
17
|
export const CallProgress_DataSchema = z.object({
|
|
27
18
|
object: NameOrAddressSchema.describe("Progress object ID or name"),
|
|
28
19
|
task: NameOrAddressSchema.optional().describe("Task ID. Cannot be changed after setting."),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wowok_agent",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.30",
|
|
4
4
|
"description": "Making It Easy for Agents to Communicate, Collaborate, Trade, and Trust.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
32
32
|
"lodash": "^4.18.1",
|
|
33
|
-
"wowok": "2.1.
|
|
33
|
+
"wowok": "2.1.29",
|
|
34
34
|
"zod": "^3.25.76"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|