.clinerules/sdk-migration.md
The VSCode extension runs on the Cline SDK (@cline/core, @cline/llms,
@cline/shared) through an adapter layer in apps/vscode/src/sdk/. The
webview still talks gRPC; the adapter translates between gRPC handlers and SDK
calls. See apps/vscode/src/dev/debug-harness/README.md for the debug harness.
kb_search(name="sdk", query="...")
before implementing against an SDK surface.// Replaces classic src/core/... (see origin/main) header and use
kb_search(name="cline", commit="origin/main") or
git show origin/main:path to consult the prior implementation.CLINE_SDK env flag.{appBaseUrl}, never hardcode app.cline.bot.as casts. Use explicit conversion functions with tests. The
branded types in apps/vscode/src/sdk/model-catalog/contracts.ts exist so
casts are unnecessary outside parse/compute boundaries.