No description
  • TypeScript 99.4%
  • Shell 0.6%
Find a file
ywkj 0759af2b7e
Some checks failed
register-skill-release / register (push) Failing after 7s
refactor: clean up obsolete scripts and remove auth-cli
2026-05-26 18:16:02 +08:00
.forgejo/workflows Use Forgejo checkout without GitHub action 2026-05-08 10:44:00 +08:00
agents refactor: clean up obsolete scripts and remove auth-cli 2026-05-26 18:16:02 +08:00
references refactor: clean up obsolete scripts and remove auth-cli 2026-05-26 18:16:02 +08:00
scripts refactor: clean up obsolete scripts and remove auth-cli 2026-05-26 18:16:02 +08:00
src refactor: clean up obsolete scripts and remove auth-cli 2026-05-26 18:16:02 +08:00
.env.example chore: clean CLIENT_KEY references from SKILL.md and .env.example 2026-03-19 08:31:57 +08:00
.gitignore feat: initial commit 2026-03-12 07:36:43 +08:00
ASYNC.md refactor: clean up obsolete scripts and remove auth-cli 2026-05-26 18:16:02 +08:00
bun.lock chore: clean CLIENT_KEY references from SKILL.md and .env.example 2026-03-19 08:31:57 +08:00
CONFIG_MIGRATION.md refactor: clean up obsolete scripts and remove auth-cli 2026-05-26 18:16:02 +08:00
how-to-use.md refactor: clean up obsolete scripts and remove auth-cli 2026-05-26 18:16:02 +08:00
install.sh refactor: clean up obsolete scripts and remove auth-cli 2026-05-26 18:16:02 +08:00
output_schema.json feat: initial commit 2026-03-12 07:36:43 +08:00
package.json refactor: clean up obsolete scripts and remove auth-cli 2026-05-26 18:16:02 +08:00
README.md refactor: clean up obsolete scripts and remove auth-cli 2026-05-26 18:16:02 +08:00
REFACTORING_SUMMARY.md feat: initial commit 2026-03-12 07:36:43 +08:00
SKILL.md refactor: clean up obsolete scripts and remove auth-cli 2026-05-26 18:16:02 +08:00

Client Finder - Bun + TypeScript Implementation

This document describes the Bun + TypeScript implementation of the client-finder skill.

Overview

The client-finder skill is implemented with Bun + TypeScript, providing:

  • Type safety
  • Modular structure
  • Easier testing
  • Robust error handling

Project Structure

client-finder/
├── src/
│   ├── index.ts         # Main entry point and orchestration logic
│   ├── expansion.ts     # Query expansion logic (LLM and rule-based)
│   ├── workflow.ts      # Workflow API calls
│   └── types.ts         # TypeScript type definitions
├── scripts/
│   ├── run.ts           # Bun CLI entry point
│   └── test.ts          # Test suite
├── package.json
├── SKILL.md
└── output_schema.json

Runtime Flow

  1. @clawd/auth-runtime reads ~/.yuanwei/auth.json.
  2. Start workflow: POST /ecom/cold-outreach/run-flow.
  3. If the platform key is missing or rejected, stop with the centralized auth error.
  4. Return accepted immediately.

Note: this skill does not pass webhook_url/webhook_token in body. Webhook config is resolved from the bound client by backend.

Run

bun run scripts/run.ts "office machine" "us"

Dry-run:

bun run scripts/run.ts "office machine" "us" --dry-run

Environment

  • ~/.yuanwei/auth.json (required for live)
  • QUERY_EXPANSION_JSON (optional)

Testing

Run unit-like checks:

bun run test

Notes

  • Output must match output_schema.json.
  • This skill is async fire-and-return: no local polling/finalize/hook emission.