mirror of
https://github.com/cline/cline.git
synced 2026-09-21 05:10:09 +08:00
- Add @clinebot/core, @clinebot/llms, @clinebot/shared, @clinebot/agents as dependencies via file: protocol (linked to ../sdk-wip) - Create src/sdk/ directory with SdkController stub and barrel export - Replace src/core/controller/index.ts with re-export from SDK adapter (classic Controller accessible via origin/main) - Extract getStateToPostToWebview() to standalone function for reuse - Add vitest.config.sdk.ts for SDK adapter tests - Fix implicit any types in handler modules - Extension compiles and builds successfully (tsc + esbuild pass) - Single entry point: no CLINE_SDK flag, SDK adapter is the only codepath Replaces classic src/core/controller/index.ts (see origin/main)
21 lines
585 B
TypeScript
21 lines
585 B
TypeScript
import path from "node:path"
|
|
import { defineConfig } from "vitest/config"
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ["src/sdk/**/*.test.ts"],
|
|
environment: "node",
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "src"),
|
|
"@core": path.resolve(__dirname, "src/core"),
|
|
"@integrations": path.resolve(__dirname, "src/integrations"),
|
|
"@services": path.resolve(__dirname, "src/services"),
|
|
"@shared": path.resolve(__dirname, "src/shared"),
|
|
"@utils": path.resolve(__dirname, "src/utils"),
|
|
"@packages": path.resolve(__dirname, "src/packages"),
|
|
},
|
|
},
|
|
})
|