feat(delegation): v0.4.2 - Hose SSO fallback for synced users in users delegation
- createDelegationForUser now detects hosecloud-synced users (provider != local) - Falls back to Hose Provisional Auth → Seal SSO session exchange → delegation create - Generates a true user-identity Seal delegation link without password reset - Fixes name search to prefer exact match before falling back to first result - Exports normalizeBaseUrl, defaultSealUrl, ensureHoseOpenapiToken, fetchHoseCloseApiToken - Updates SKILL.md: documents users delegation hosecloud limitation and fallback behavior
This commit is contained in:
1 parent
c0318df70b
commit
ef115835ac
5 files changed
+98
-19
No files matched your search
@@ -1,13 +1,13 @@
|
||||
---
|
||||
name: seal-home
|
||||
version: 0.4.0
|
||||
description: "v0.4.0: Use when working with Seal Home approval automation: 合思/易快报企业认证, Hose authorization links, approval run lookup, LLM config, permissions, billing status, user search, user activation, admin delegation link generation, delegation links, approval rules, documents, search, and Langfuse hints."
|
||||
version: 0.4.1
|
||||
description: "v0.4.1: Use when working with Seal Home approval automation: 合思/易快报企业认证, Hose authorization links, approval run lookup, LLM config, permissions, billing status, user search, user activation, admin delegation link generation, delegation links, approval rules, documents, search, and Langfuse hints."
|
||||
metadata:
|
||||
version: 0.4.0
|
||||
short-description: Seal approval automation tools (v0.4.0)
|
||||
version: 0.4.1
|
||||
short-description: Seal approval automation tools (v0.4.1)
|
||||
---
|
||||
|
||||
# Seal Home (v0.4.0)
|
||||
# Seal Home (v0.4.1)
|
||||
|
||||
Use the global `seal-home` CLI. This skill is a routing layer for agents: keep this file short, choose the right command, and read a focused reference only when the task needs detail.
|
||||
|
||||
@@ -25,12 +25,15 @@ seal-home tools list
|
||||
- Before write operations on rules, documents, style preferences, or publishing, fetch current state and confirm the intended mutation with the user. For repeat test-environment rule resets, prefer `rules clear --dry-run` followed by `rules clear --yes`.
|
||||
- For date questions, use explicit dates and `--timezone Asia/Shanghai`.
|
||||
- If output may be large, use `--summary`, `--fields`, `--count`, or `--output-file`; use `--full` only when the user really needs full payloads.
|
||||
- When returning authorization/login links (e.g. 合思授权链接), ALWAYS provide BOTH a code block (` ```text ... ``` `) for easy copying without accidental default browser redirection, AND a clickable hyperlink.
|
||||
- When returning ANY authorization, login, or delegation links (e.g. 合思授权链接, Seal授权链接/委托链接), ALWAYS provide BOTH a code block (` ```text ... ``` `) for easy copying without accidental default browser redirection, AND a clickable hyperlink.
|
||||
- For delegation links, always prefer `seal-home delegation create` over `users delegation` for link generation to ensure persistent token tracking.
|
||||
|
||||
## Route By Intent
|
||||
|
||||
- Delegation links (授权链接): `seal-home delegation list`, `create [--note ...]`, `revoke <tokenId>`.
|
||||
- User & Contacts Management (用户搜索、激活与一键代生成授权): `seal-home users search [keyword]`, `users delegation <userIdOrPhone>`, `users activate <userId>`, `users create --name ... --phone ...`, `reset-password <userId>`, `get <userId>`, `delete <userId>`.
|
||||
- User-facing Seal authorization / delegation link (Seal 授权链接/委托链接): `seal-home delegation create [--note ...] [--corp <corpId>]`. Always provide BOTH a code block (` ```text ... ``` `) AND a hyperlink.
|
||||
- User-facing 合思 authorization link (合思授权链接): `seal-home auth hose-link --corp <corpId> --expire 7200`; read `references/hose-enterprise-auth.md`. Always provide BOTH a code block (` ```text ... ``` `) AND a hyperlink.
|
||||
- Delegation links management: `seal-home delegation list`, `create [--note ...]`, `revoke <tokenId>`.
|
||||
- User & Contacts Management (用户搜索、激活与一键代生成授权): `seal-home users search [keyword]`, `users delegation <userIdOrPhone>` (仅适用于 Seal 本地创建的账号 `provider: local`;对合思同步账号系统拒绝重置密码,需改用 `auth hose-link`), `users activate <userId>`, `users create --name ... --phone ...`, `reset-password <userId>`, `get <userId>`, `delete <userId>`.
|
||||
- LLM Model Config & Providers: `seal-home llm config`, `seal-home llm providers`.
|
||||
- System Permissions Config: `seal-home permissions available`, `seal-home permissions configs`.
|
||||
- Billing & Feature Quotas: `seal-home billing status`, `seal-home billing plans`, `seal-home billing features`.
|
||||
|
||||
Reference in new issue
Block a user