mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-10-28 03:29:30 +08:00
* fix(auth): record last-active-tenant preference on SwitchTenant * docs(auth): note SwitchTenant updating last-active-tenant preference * fix(auth): persist last-active tenant before SwitchTenant tokens RefreshToken re-resolves from this preference because refresh JWTs omit tenant_id. Fail the switch if the write fails so a 200 never returns a token pair whose later refresh would land in a different workspace. * fix(cli): align HybridSearch interfaces with SDK variadic options Client.HybridSearch gained ResourceURLOptions; CLI ChunksService and MCP knowledgeService still used the old signature, so *Client no longer satisfied those interfaces. * style(cli): wrap HybridSearch signatures under the 120-column lint --------- Co-authored-by: wizardchen <wizardchen@tencent.com>
19 lines
339 B
YAML
19 lines
339 B
YAML
version: "2"
|
|
linters:
|
|
enable:
|
|
- lll # 控制行宽
|
|
- govet
|
|
- revive
|
|
settings:
|
|
lll:
|
|
line-length: 120
|
|
tab-width: 4
|
|
exclusions:
|
|
paths:
|
|
# swag embeds OpenAPI as single-line JSON strings; line-length is not meaningful.
|
|
- docs/docs\.go$
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- gofumpt
|