POC: runnable VS Code extension on @cline/sdk (Feature #2) #3
Reference in New Issue
Block a user
Delete Branch "poc/cline-sdk-extension"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scaffolds the #2 POC: a runnable, non-shippable standalone VS Code extension on
@cline/sdk— validating Approach A (own coauthoring UI on the Cline SDK, no fork). Per issue #2 (epic #1) andben.stull/rfc-app#48.What's here
src/extension.ts) registeringCowriting: Show Cline SDK Info.src/cline.ts) —fetchSdkSummary()drives@cline/sdk(pure, key-freegetCoreBuiltinToolCatalog()+CORE_BUILD_VERSION).vscode+@cline/sdkexternal.Key design call
@cline/sdkis ESM-only (Node ≥22) and usescreateRequire(import.meta.url), so it cannot be bundled into a CJS extension (verified:import.meta.url→ undefined → throw). It is kept external and loaded at runtime via dynamicimport(). Empirically de-risked before coding.Verification (green)
npm run typecheckclean ·npm testpasses (fetchSdkSummary()returns0.0.46+ the 9 builtin tools incl.read_files) ·npm run build→out/extension.cjs.vscode;activate()runs and registers its disposables.Cline SDK 0.0.46 loaded — 9 builtin tools.🤖 Generated with Claude Code