Skip to content

Migration code-reference-finder to Tinyfish SDK #180

Open
KrishnaAgarwal7531 wants to merge 1 commit intotinyfish-io:mainfrom
KrishnaAgarwal7531:mig-code-reference-finder
Open

Migration code-reference-finder to Tinyfish SDK #180
KrishnaAgarwal7531 wants to merge 1 commit intotinyfish-io:mainfrom
KrishnaAgarwal7531:mig-code-reference-finder

Conversation

@KrishnaAgarwal7531
Copy link
Copy Markdown
Contributor

Migrates all three external dependencies to TinyFish SDK + Groq. The GitHub API and StackExchange API are replaced entirely by client.search.query() with site:github.com and site:stackoverflow.com filters — no more GITHUB_TOKEN, STACKEXCHANGE_KEY, rate limit retries, or sequential delays. OpenRouter is replaced by groq-sdk directly. Mino raw SSE fetch is replaced by client.agent.stream with typed events and result validation. Promise.allSettled for parallel agents. mino-client.ts, openrouter.ts, and the original search.ts are all deleted.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 19, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 93a45a78-7970-4dce-9615-3a178b8d481c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@simantak-dabhade simantak-dabhade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two blockers:

1. search.ts doesn't use the TinyFish SDK
src/lib/search.ts constructs raw GitHub/StackOverflow search URLs instead of using client.search.query(). The README claims SDK search is used, but the code doesn't import @tiny-fish/sdk at all. Please use client.search.query() with appropriate site filters.

2. typeof raw === "string" type error in orchestrator.ts
The SDK types event.result as Record<string, unknown> | null, never string. The typeof raw === "string" branch is unreachable and will cause a TypeScript build error in strict mode — .replace() and .trim() can't be called on a value the type system knows is never a string. Remove the string branch and cast directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants