Add user search, activation, and automated delegation flow and bump version to 0.4.0
Binaries / Verify (push) Has been cancelled
Binaries / Build linux-x64 (push) Has been cancelled
Binaries / Build macos-arm64 (push) Has been cancelled
Binaries / Build windows-x64 (push) Has been cancelled
Binaries / Publish release assets (push) Has been cancelled

This commit is contained in:
gitea committed 2026-07-29 17:24:22 +08:00
1 parent 957cd2f70e
commit c0318df70b
8 files changed
+193 -7

No files matched your search

+21
View File
@@ -177,6 +177,12 @@ async function main() {
return;
}
if (area === "users" && (action === "search" || action === "list")) {
const keyword = maybeName ?? stringOption(args.options.keyword) ?? stringOption(args.options.query) ?? "";
await runTool("seal_user_search", client, corp, { keyword }, outputOptions(args.options));
return;
}
if (area === "users" && action === "get") {
const userId = maybeName ?? stringOption(args.options.userId);
if (!userId) throw new Error("Usage: seal-home users get <userId>");
@@ -191,6 +197,21 @@ async function main() {
return;
}
if (area === "users" && action === "activate") {
const userId = maybeName ?? stringOption(args.options.userId);
if (!userId) throw new Error("Usage: seal-home users activate <userId>");
await runTool("seal_user_activate", client, corp, { userId }, outputOptions(args.options));
return;
}
if (area === "users" && (action === "delegation" || action === "impersonate")) {
const userIdOrPhone = maybeName ?? stringOption(args.options.userId) ?? stringOption(args.options.phone);
if (!userIdOrPhone) throw new Error("Usage: seal-home users delegation <userIdOrPhone> [--note <note>]");
const note = stringOption(args.options.note);
await runTool("seal_user_delegation_create", client, corp, { userIdOrPhone, note }, outputOptions(args.options));
return;
}
if (area === "llm" && (action === "config" || action === "get")) {
await runTool("seal_llm_config_get", client, corp, {}, outputOptions(args.options));
return;