diff --git a/.env.example b/.env.example index 13ba3ae..f14b780 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,4 @@ # Local runtime config for client-finder skill -# Copy to .env.local in the same folder and fill real values. +# Auth is handled automatically via ~/.openclaw/.env AUTH_BASE=https://api-gw-test.yuanwei-lnc.com -CLIENT_KEY=sk_xxx_replace_with_real_key - diff --git a/SKILL.md b/SKILL.md index 92a73a7..14ee814 100644 --- a/SKILL.md +++ b/SKILL.md @@ -8,7 +8,7 @@ description: "找客户、找买家、开发客户、cold outreach。当用户 Skill-credit + ecom run-flow: query expansion → `/ecom/cold-outreach/run-flow`. Execution mode is fire-and-return: start workflow fast and return accepted immediately; terminal callbacks are handled by backend webhook delivery. -> Auth (CLIENT_KEY) is loaded automatically from `~/.openclaw/.env` by auth-runtime. No need to pass it. +> Auth is handled automatically by auth-runtime via `~/.openclaw/.env`. ## Run Skill @@ -51,8 +51,7 @@ For client onboarding and billing flow (Chinese), read [how-to-use.md](how-to-us - Remove leading `cold-outreach:` prefix (case-insensitive). 2. Exchange runtime token. -- auth-runtime handles this automatically via `~/.openclaw/.env`. -- Calls `POST /auth/skill-credit/session` with `CLIENT_KEY`, caches token with TTL. +- Auth handled automatically by auth-runtime. 3. Expand query. - Build candidate queries from skill logic (`rule`) or `QUERY_EXPANSION_JSON` (`llm`). diff --git a/bun.lock b/bun.lock index e18f0d4..b7a3b43 100644 --- a/bun.lock +++ b/bun.lock @@ -5,7 +5,7 @@ "": { "name": "client-finder", "dependencies": { - "@clawd/auth-runtime": "file:../_shared/auth-runtime", + "@clawd/auth-runtime": "file:../auth-runtime", }, "devDependencies": { "@types/bun": "latest", @@ -17,11 +17,11 @@ }, }, "packages": { - "@clawd/auth-runtime": ["@clawd/auth-runtime@file:../_shared/auth-runtime", { "devDependencies": { "@types/node": "^25.3.3", "typescript": "^5.9.3" } }], + "@clawd/auth-runtime": ["@clawd/auth-runtime@file:../auth-runtime", { "devDependencies": { "@types/node": "^25.3.3", "typescript": "^5.9.3" } }], "@types/bun": ["@types/bun@1.3.10", "", { "dependencies": { "bun-types": "1.3.10" } }, "sha512-0+rlrUrOrTSskibryHbvQkDOWRJwJZqZlxrUs1u4oOoTln8+WIXBPmAuCF35SWB2z4Zl3E84Nl/D0P7803nigQ=="], - "@types/node": ["@types/node@25.3.3", "", { "dependencies": { "undici-types": "~7.18.0" } }, "sha512-DpzbrH7wIcBaJibpKo9nnSQL0MTRdnWttGyE5haGwK86xgMOkFLp7vEyfQPGLOJh5wNYiJ3V9PmUMDhV9u8kkQ=="], + "@types/node": ["@types/node@25.5.0", "", { "dependencies": { "undici-types": "~7.18.0" } }, "sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw=="], "bun-types": ["bun-types@1.3.10", "", { "dependencies": { "@types/node": "*" } }, "sha512-tcpfCCl6XWo6nCVnpcVrxQ+9AYN1iqMIzgrSKYMB/fjLtV2eyAVEg7AxQJuCq/26R6HpKWykQXuSOq/21RYcbg=="],