Commit Graph

5 Commits

Author SHA1 Message Date
ywkj 47d3711f43 refactor: auth-cli.ts 改用 auth-rt 二进制
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 18:26:29 +08:00
ywkj 2beb7e1051 refactor: 移除 @clawd/auth-runtime npm 依赖,改用 CLI subprocess 调用
通过内置 auth-cli.ts 薄 wrapper 调用 auth-runtime CLI,
消除 npm git 依赖带来的缓存和更新问题。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 14:38:05 +08:00
ywkj 06c5c302e9 refactor: simplify index.ts — use ctx object instead of 8-param helpers
Replace createFailedResult/createSuccessResult (8+ params each) with
a single result() builder + ctx spread. Default country to 'US'.
-117 lines, same output_schema.json contract.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-19 07:16:46 +08:00
ywkj e7d9e972d4 refactor: use SkillClient, remove manual auth handling
Replace createEnvConfig/getAccessToken/requestApiWithAutoRefresh
with createSkillClient(). workflow.ts now takes a SkillClient
instead of config+token. Remove EnvConfig extension from types.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-18 08:25:09 +08:00
ivanberry 222cd0fcde feat: initial commit 2026-03-12 07:36:43 +08:00