Add Chinese onboarding guidance and empty corps diagnostic
Binaries / Build & Release Binaries (push) Has been cancelled
Binaries / Build & Release Binaries (push) Has been cancelled
This commit is contained in:
1 parent
7f3a4b0fe4
commit
b998a0527e
3 files changed
+14
No files matched your search
Vendored
+7
@@ -29279,6 +29279,9 @@ async function handleCorpsCommand(action, maybeName, args) {
|
||||
const corps = loadCorpConfigs();
|
||||
const globalConfig2 = loadGlobalConfig();
|
||||
const currentCorpId = corpId ?? (globalConfig2.stateful ? globalConfig2.defaultCorpId ?? corps[0]?.id : undefined);
|
||||
if (corps.length === 0) {
|
||||
console.error("提示:当前未检测到企业配置。你可以使用 seal-home corps add-hose 或 seal-home corps add-seal 添加企业,或运行 seal-home help 查看说明。");
|
||||
}
|
||||
printJson(corps.map((item) => ({
|
||||
id: item.id,
|
||||
name: item.name,
|
||||
@@ -33326,6 +33329,10 @@ seal-home tools list
|
||||
- LLM Model Config & Providers: \`seal-home llm config --corp <corpId>\`, \`seal-home llm providers --corp <corpId>\`.
|
||||
- System Permissions Config: \`seal-home permissions available --corp <corpId>\`, \`seal-home permissions configs --corp <corpId>\`.
|
||||
- Billing & Feature Quotas: \`seal-home billing status --corp <corpId>\`, \`seal-home billing plans --corp <corpId>\`, \`seal-home billing features --corp <corpId>\`.
|
||||
- Enterprise Onboarding (新机企业接入与配置):
|
||||
- 合思/易快报企业: 从合思管理员后台获取 \`appKey\`、\`appSecurity\` 及员工工号 \`proxyStaffBizId\` (形如 \`corpId:staffId\`),运行 \`seal-home corps add-hose --json '{"name":"企业名","domain":"https://app.ekuaibao.com","appKey":"...","appSecurity":"...","proxyStaffBizId":"corpId:staffId"}'\`。
|
||||
- Seal 租户直连: 登录 Seal 控制台获取 Bearer Token,运行 \`seal-home corps add-seal --json '{"sealUrl":"https://<tenant>.sealai.cc","token":"<bearer-token>"}'\`。
|
||||
- 连通性诊断: 运行 \`seal-home auth diagnose --corp <corpId>\` 验证四级鉴权。
|
||||
- Full CLI inventory: read \`references/cli.md\`.
|
||||
|
||||
## High-Value Commands
|
||||
|
||||
@@ -43,6 +43,10 @@ seal-home tools list
|
||||
- LLM Model Config & Providers: `seal-home llm config --corp <corpId>`, `seal-home llm providers --corp <corpId>`.
|
||||
- System Permissions Config: `seal-home permissions available --corp <corpId>`, `seal-home permissions configs --corp <corpId>`.
|
||||
- Billing & Feature Quotas: `seal-home billing status --corp <corpId>`, `seal-home billing plans --corp <corpId>`, `seal-home billing features --corp <corpId>`.
|
||||
- Enterprise Onboarding (新机企业接入与配置):
|
||||
- 合思/易快报企业: 从合思管理员后台获取 `appKey`、`appSecurity` 及员工工号 `proxyStaffBizId` (形如 `corpId:staffId`),运行 `seal-home corps add-hose --json '{"name":"企业名","domain":"https://app.ekuaibao.com","appKey":"...","appSecurity":"...","proxyStaffBizId":"corpId:staffId"}'`。
|
||||
- Seal 租户直连: 登录 Seal 控制台获取 Bearer Token,运行 `seal-home corps add-seal --json '{"sealUrl":"https://<tenant>.sealai.cc","token":"<bearer-token>"}'`。
|
||||
- 连通性诊断: 运行 `seal-home auth diagnose --corp <corpId>` 验证四级鉴权。
|
||||
- Full CLI inventory: read `references/cli.md`.
|
||||
|
||||
## High-Value Commands
|
||||
|
||||
@@ -33,6 +33,9 @@ export async function handleCorpsCommand(action: string | undefined, maybeName:
|
||||
? globalConfig.defaultCorpId ?? corps[0]?.id
|
||||
: undefined
|
||||
);
|
||||
if (corps.length === 0) {
|
||||
console.error("提示:当前未检测到企业配置。你可以使用 seal-home corps add-hose 或 seal-home corps add-seal 添加企业,或运行 seal-home help 查看说明。");
|
||||
}
|
||||
printJson(corps.map((item) => ({
|
||||
id: item.id,
|
||||
name: item.name,
|
||||
|
||||
Reference in new issue
Block a user