refactor(core): 全量语义化客户端迁移并移除历史兼容桥接层

This commit is contained in:
gitea committed 2026-09-17 15:44:25 +08:00
1 parent 29ac24248e
commit d0f3d2738a
34 files changed
+89 -141

No files matched your search

+2 -2
View File
@@ -14,7 +14,7 @@ import {
getActiveAccount,
setActiveAccount,
} from "../../core/auth/account-store.js";
import { createEkbClient } from "../../core/auth/ekb.js";
import { createSessionClient } from "../../core/http/session-client.js";
import { stringOption, booleanOption } from "../parser.js";
import { printJson, printKeyValue, printTable, formatSourceLabel, formatExpiresAt } from "../printer.js";
import { prompt } from "../helpers.js";
@@ -166,7 +166,7 @@ async function handleStatus(parsed: CliParsedArgs, runtime: CliRuntime): Promise
if (currentCorp) {
try {
const client = await createEkbClient(currentCorp);
const client = await createSessionClient(currentCorp);
const res = await client.get("api/account/v2/session").json<{ value?: unknown }>();
sessionValid = !!res.value;
sessionData = res.value;