mirror of
https://github.com/giancarloerra/socraticode.git
synced 2026-07-03 14:05:21 +02:00
bbc68199c3
A new top-level `extension/` package containing the SocratiCode VS Code extension. The same `.vsix` artefact ships to both VS Code Marketplace and Open VSX, which means it installs cleanly in Cursor, VSCodium, Gitpod, code-server, Eclipse Theia editors, Google Antigravity, and Particle Workbench in addition to stock VS Code. What it does: - Auto-registers the SocratiCode MCP server in VS Code's MCP host via `vscode.lm.registerMcpServerDefinitionProvider` (VS Code 1.99+). Copilot agent mode, Cline, Continue, Roo Code and any other MCP-aware client see SocratiCode's tools without the user editing any `.vscode/mcp.json`. - Forwards the user's `socraticode.env` setting to the engine subprocess unchanged. Power users point at an external Qdrant (`QDRANT_MODE=external` + `QDRANT_URL` + `QDRANT_API_KEY`), pick an embedding provider, or set any other engine knob exactly as documented in the engine README. - Activity Bar sidebar with "Indexed projects" tree view and welcome content. Discovers projects by listing graph artefacts the engine writes to `os.tmpdir()/socraticode-graph/`. - Webview panel for the interactive graph (`graphPanel.ts`). Reads the engine's self-contained HTML, wraps it with a tight CSP, injects a bridge script so node-clicks can `postMessage` back to the extension and open files in the editor. - Status-bar item showing "SocratiCode" with click-to-open-sidebar. Honours the `socraticode.statusBar` setting. - Two-step getting-started walkthrough (index your project, try search and the interactive graph). Shown automatically on first install; re-openable via the command palette. - Command palette commands: index workspace, open graph, refresh projects, open walkthrough, show output. - Output channel for engine logs. Build: esbuild bundles `src/extension.ts` to `dist/extension.js` (CJS, node18, sourcemap), `vscode` external. Biome lint and `tsc` strict mode both clean. Manifest smoke tests via Node's built-in test runner catch package.json regressions before activation. Packaged size: ~215 KB `.vsix`. Versioning: extension version tracks the engine version (currently `1.7.2`). Patch drift is allowed for extension-only hotfixes. The `scripts/bump-plugin-versions.mjs` hook from the previous commit already includes `extension/package.json` in its bump list, so future engine releases keep the extension in lockstep automatically.
24 lines
565 B
JSON
24 lines
565 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "Node16",
|
|
"moduleResolution": "Node16",
|
|
"lib": ["ES2022"],
|
|
"rootDir": "src",
|
|
"outDir": "dist",
|
|
"strict": true,
|
|
"noImplicitAny": true,
|
|
"noImplicitReturns": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"resolveJsonModule": true,
|
|
"sourceMap": true,
|
|
"declaration": false
|
|
},
|
|
"include": ["src/**/*"]
|
|
}
|