Release v0.10.32: Semantic approval-runs link redesign, auth link standardization, and export defense

This commit is contained in:
gitea committed 2026-09-20 15:43:20 +08:00
1 parent 9060a28d8b
commit 972eff1436
31 files changed
+976 -288

No files matched your search

+17
View File
@@ -7,6 +7,7 @@ import { getMe } from "../../domains/seal/api.js";
import { booleanOption, numberOption, stringOption } from "../parser.js";
import { printJson, redactSensitiveText } from "../printer.js";
import type { ParsedArgs } from "../types.js";
import { runToolResult } from "../helpers.js";
import { extractKeysFromLinkAction, showCorpKeysAction } from "./corps.js";
export async function handleAuthExtractKeysCommand(maybeName: string | undefined, args: ParsedArgs) {
@@ -38,6 +39,22 @@ export async function handleAuthCommand(action: string | undefined, corp: CorpCo
return;
}
if (action === "seal-link" || action === "link" || (action === "hose-link" && corp.source.type === "seal")) {
const client = await createSealClient(corp);
const note = stringOption(args.options.note) ?? "CLI generated provisional access link";
const delegation = await runToolResult(
"seal_delegation_create",
client,
corp,
{ note }
);
if (action === "hose-link") {
console.error(`👉 提示: 企业「${corp.name}」源类型为 Seal 原生测试环境,已自动为您生成委托免登直达链接。`);
}
printJson(delegation);
return;
}
if (action === "hose-link") {
const rawExpire = args.options.expire;
const expiresIn = rawExpire !== undefined ? numberOption(rawExpire) : 7200;