Camel-case capability IDs and rename the MCP gateway pair
This commit is contained in:
1 parent
7f36cd1d39
commit
4f0d955e06
41 files changed
+466
-466
No files matched your search
@@ -24,7 +24,7 @@ export async function handleSimulationCommand(
|
||||
const batchId = maybeName ?? stringOption(args.options.batchId) ?? stringOption(args.options["batch-id"]);
|
||||
if (!batchId) throw new Error("Usage: seal-use simulation batch-records <batchId>");
|
||||
await runCapability(
|
||||
"seal_simulation_batch_records_get",
|
||||
"sealSimulationBatchRecordsGet",
|
||||
client,
|
||||
corp,
|
||||
{
|
||||
@@ -67,7 +67,7 @@ export async function handleSimulationCommand(
|
||||
const noWait = booleanOption(args.options.noWait) ?? booleanOption(args.options["no-wait"]) ?? (wait ? false : true);
|
||||
|
||||
const result = await runCapabilityResult(
|
||||
"seal_simulation_batch_create",
|
||||
"sealSimulationBatchCreate",
|
||||
client,
|
||||
corp,
|
||||
{
|
||||
@@ -103,7 +103,7 @@ export async function handleSimulationCommand(
|
||||
|
||||
if (wait && result && typeof result === "object" && "batchId" in result && typeof result.batchId === "string") {
|
||||
await runCapability(
|
||||
"seal_simulation_batch_wait",
|
||||
"sealSimulationBatchWait",
|
||||
client,
|
||||
corp,
|
||||
{
|
||||
@@ -124,7 +124,7 @@ export async function handleSimulationCommand(
|
||||
const batchId = maybeName ?? stringOption(args.options.batchId) ?? stringOption(args.options["batch-id"]);
|
||||
if (!batchId) throw new Error("Usage: seal-use simulation wait <batchId> [--timeout 10m] [--poll-interval 2s]");
|
||||
await runCapability(
|
||||
"seal_simulation_batch_wait",
|
||||
"sealSimulationBatchWait",
|
||||
client,
|
||||
corp,
|
||||
{
|
||||
@@ -141,7 +141,7 @@ export async function handleSimulationCommand(
|
||||
const batchId = maybeName ?? stringOption(args.options.batchId) ?? stringOption(args.options["batch-id"]);
|
||||
if (!batchId) throw new Error("Usage: seal-use simulation status <batchId>");
|
||||
await runCapability(
|
||||
"seal_simulation_batch_status",
|
||||
"sealSimulationBatchStatus",
|
||||
client,
|
||||
corp,
|
||||
{ batchId },
|
||||
@@ -160,7 +160,7 @@ export async function handleSimulationCommand(
|
||||
`seal-use simulation clean ${batchId} --corp ${corp.id} --yes`
|
||||
);
|
||||
}
|
||||
await runCapability("seal_simulation_batch_clean", client, corp, { batchId }, outputOptions(args.options));
|
||||
await runCapability("sealSimulationBatchClean", client, corp, { batchId }, outputOptions(args.options));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -170,13 +170,13 @@ export async function handleSimulationCommand(
|
||||
stringOption(args.options.integration) ??
|
||||
stringOption(args.options.signKey) ??
|
||||
stringOption(args.options["sign-key"]);
|
||||
await runCapability("seal_simulation_specifications_list", client, corp, { signKey }, outputOptions(args.options));
|
||||
await runCapability("sealSimulationSpecificationsList", client, corp, { signKey }, outputOptions(args.options));
|
||||
return;
|
||||
}
|
||||
|
||||
if (action === "approval-definitions" || action === "definitions") {
|
||||
await runCapability(
|
||||
"seal_simulation_feishu_approval_definitions_list",
|
||||
"sealSimulationFeishuApprovalDefinitionsList",
|
||||
client,
|
||||
corp,
|
||||
{},
|
||||
@@ -187,7 +187,7 @@ export async function handleSimulationCommand(
|
||||
|
||||
if (action === "list") {
|
||||
await runCapability(
|
||||
"seal_simulation_batches_list",
|
||||
"sealSimulationBatchesList",
|
||||
client,
|
||||
corp,
|
||||
{
|
||||
@@ -201,17 +201,17 @@ export async function handleSimulationCommand(
|
||||
if (action === "get") {
|
||||
const batchId = maybeName ?? stringOption(args.options.batchId) ?? stringOption(args.options["batch-id"]);
|
||||
if (!batchId) throw new Error("Usage: seal-use simulation get <batchId>");
|
||||
await runCapability("seal_simulation_batch_get", client, corp, { batchId }, outputOptions(args.options));
|
||||
await runCapability("sealSimulationBatchGet", client, corp, { batchId }, outputOptions(args.options));
|
||||
return;
|
||||
}
|
||||
|
||||
if (action === "templates") {
|
||||
await runCapability("seal_simulation_templates_get", client, corp, {}, outputOptions(args.options));
|
||||
await runCapability("sealSimulationTemplatesGet", client, corp, {}, outputOptions(args.options));
|
||||
return;
|
||||
}
|
||||
|
||||
if (action === "integrations") {
|
||||
await runCapability("seal_simulation_integrations_get", client, corp, {}, outputOptions(args.options));
|
||||
await runCapability("sealSimulationIntegrationsGet", client, corp, {}, outputOptions(args.options));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ export async function handleSimulationCommand(
|
||||
const filePath = maybeName ?? stringOption(args.options.file);
|
||||
if (!filePath) throw new Error("Usage: seal-use simulation package-upload <材料包.zip>");
|
||||
if (!existsSync(filePath)) throw new Error(`File not found: ${filePath}`);
|
||||
await runCapability("seal_simulation_material_package_upload", client, corp, { filePath }, outputOptions(args.options));
|
||||
await runCapability("sealSimulationMaterialPackageUpload", client, corp, { filePath }, outputOptions(args.options));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user