xianfeng wang
5c0d2b274c
Merge branch 'DingTalk-Real-AI:main' into feature/wk_merge
2026-04-01 21:05:35 +08:00
fantiu
15d495e56e
style(auth): redesign OAuth authorization pages UI
2026-04-01 20:21:05 +08:00
fantiu
8406355e7f
fix(auth): prevent auth code expiration error on OAuth callback page refresh
2026-04-01 14:48:58 +08:00
fantiu
2a056cc5d0
feat(auth): persist OAuth credentials for reliable token refresh
2026-04-01 11:03:08 +08:00
wxianfeng
933615003c
merge upstream main
2026-04-01 09:53:18 +08:00
fantiu
773804ee80
feat(auth): enhance device flow with CLI auth check and admin guidance
2026-04-01 00:47:49 +08:00
wxianfeng
3c75c66d4d
chore: group pkg imports per goimports
...
Move pkg/config next to other pkg/* imports after local internal packages.
Made-with: Cursor
2026-03-31 15:32:50 +08:00
wxianfeng
93d6fdb17e
feat: edition layer for Wukong overlay; promote shared code to pkg/
...
Introduce a build-time edition hook so downstream overlays (e.g. Wukong)
can customize auth UX, config dir, static server list, visible products,
and extra root commands while keeping the default open-source behavior.
- Add pkg/edition (defaults) and pkg/editiontest contract tests; Makefile
target edition-test; CI job edition-tests.
- Root: optional RegisterExtraCommands with tool caller adapter; inject
static servers to skip market discovery when configured; deduplicate
top-level commands so overlay wins; extend hideNonDirectRuntimeCommands
with edition VisibleProducts and static commands (recovery/schema/mcp).
- Auth/config: gate login subcommand and auth login hints for embedded
editions; optional token auto-purge; edition ConfigDir override.
- version: human-readable multi-line output plus JSON with edition,
architecture, build, commit.
- Relocate internal/{config,convert,validate} to pkg/; add pkg/cli and
pkg/cmdutil (flags/time helpers).
- CI: optional notify-downstream job (GitLab trigger via secrets) on main
push; open_source_policy_test adjusted for new layout.
Secrets (repo settings): WUKONG_TRIGGER_TOKEN, WUKONG_TRIGGER_URL — optional;
if unset, downstream step is skipped.
Made-with: Cursor
2026-03-31 15:29:21 +08:00
fantiu
26263f8a17
feat(auth): persist client credentials and optimize keychain access
...
- Auto-persist client-id/client-secret after successful login (stored in keychain)
- Enhanced logout to clean up app.json, keychain secrets, and token.json
- Fixed OAuth callback race condition (write response before sending code)
- Added credentials cache to avoid repeated keychain access (improves CLI speed)
- Updated README with credential priority docs and bumped to v1.0.4
2026-03-30 11:57:07 +08:00
fantiu
964855373e
feat(auth): persist client credentials for token refresh
...
When logging in with --client-id and --client-secret, credentials are now
automatically persisted to enable automatic token refresh after expiration.
Client secret is securely stored in system Keychain, config file only
contains a reference.
2026-03-30 10:53:26 +08:00
柏荣
a1dffe454d
逻辑优化
2026-03-28 17:51:22 +08:00
tianlei.qjb
5f938d3675
init
2026-03-27 17:55:57 +08:00