Release v0.10.3: Auto platform probing for Hose deployment, alias support, multi-target routing, and stderr next-step guidance
This commit is contained in:
1 parent
f31afd2d92
commit
3e06c0f266
13 files changed
+363
-450
No files matched your search
@@ -14,12 +14,42 @@ export async function handleDeployCommand(
|
||||
corp: CorpConfig,
|
||||
args: ParsedArgs
|
||||
) {
|
||||
const isHosecloud = systemOrAction === "hosecloud" || !systemOrAction;
|
||||
if (!systemOrAction || systemOrAction === "help") {
|
||||
throw new Error(
|
||||
"Usage: seal-use deploy <system> <action> [options]\n\n" +
|
||||
"支持的审批系统与发布目标:\n" +
|
||||
" • hosecloud (合思费控): seal-use deploy hosecloud <requirements|list|get|status|configure|sync> --corp <corpId>\n" +
|
||||
" • webhook (通用审批流回调): seal-use webhook <list|get|add|update|delete> --corp <corpId>\n" +
|
||||
" • feishu (飞书审批): 建议使用 Webhook 模式对接\n" +
|
||||
" • weaver (泛微 OA): 建议使用 Webhook 模式对接\n" +
|
||||
" • helios (汇联易): 建议使用 Webhook 模式对接\n" +
|
||||
" • maycur (每刻报销): 建议使用 Webhook 模式对接"
|
||||
);
|
||||
}
|
||||
|
||||
if (systemOrAction === "webhook" || systemOrAction === "webhooks") {
|
||||
throw new Error("Webhook 审批流发布请直接使用专有命令:seal-use webhook <list|get|add|update|delete> --corp <corpId>");
|
||||
}
|
||||
|
||||
if (systemOrAction === "feishu" || systemOrAction === "lark") {
|
||||
throw new Error("飞书审批发布:建议使用 Webhook 通用发布模式对接。命令:seal-use webhook add --name '飞书审批' --result-url <url> --corp <corpId>");
|
||||
}
|
||||
|
||||
if (systemOrAction === "weaver") {
|
||||
throw new Error("泛微 OA 发布:建议使用 Webhook 通用发布模式对接。命令:seal-use webhook add --name '泛微OA' --result-url <url> --corp <corpId>");
|
||||
}
|
||||
|
||||
if (systemOrAction === "maycur" || systemOrAction === "helios") {
|
||||
const name = systemOrAction === "maycur" ? "每刻报销" : "汇联易";
|
||||
throw new Error(`${name}发布:目前可通过 Webhook 模式接入。命令:seal-use webhook add --name '${name}' --result-url <url> --corp <corpId>`);
|
||||
}
|
||||
|
||||
const isHosecloud = systemOrAction === "hosecloud";
|
||||
const action = systemOrAction === "hosecloud" ? actionOrTarget : systemOrAction;
|
||||
const target = systemOrAction === "hosecloud" ? maybeTarget : actionOrTarget;
|
||||
|
||||
if (!isHosecloud && systemOrAction !== "hosecloud") {
|
||||
throw new Error(`Unknown deploy target: ${systemOrAction ?? ""}. Currently supported: hosecloud`);
|
||||
if (!isHosecloud) {
|
||||
throw new Error(`未知的发布目标系统: ${systemOrAction}。当前支持: hosecloud (合思费控) 与 webhook (通用回调)。`);
|
||||
}
|
||||
|
||||
if (action === "requirements") {
|
||||
|
||||
Reference in new issue
Block a user