
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
@volar/kit
Advanced tools
```ts import * as fs from 'fs'; import * as path from 'path'; import { watch } from 'chokidar'; import * as kit from '@volar/kit';
import * as fs from 'fs';
import * as path from 'path';
import { watch } from 'chokidar';
import * as kit from '@volar/kit';
const tsconfig = getTsconfig();
const project = kit.createProject(tsconfig, [{ extension: 'foo', isMixedContent: true, scriptKind: 7 }]);
const config: kit.Config = {
languages: {
// ...
},
services: {
// ...
},
};
const linter = kit.createLinter(config, project.languageServiceHost);
let req = 0;
update();
createWatcher(path.dirname(tsconfig), ['ts', 'js', 'foo'])
.on('add', (fileName) => {
project.fileCreated(fileName);
update();
})
.on('unlink', (fileName) => {
project.fileDeleted(fileName);
update();
})
.on('change', (fileName) => {
project.fileUpdated(fileName);
update();
});
function createWatcher(rootPath: string, extension: string[]) {
return watch(`${rootPath}/**/*.{${extension.join(',')}}`, {
ignored: (path) => path.includes('node_modules'),
ignoreInitial: true
});
}
async function update() {
const currentReq = ++req;
const isCanceled = () => currentReq !== req;
await new Promise(resolve => setTimeout(resolve, 100));
if (isCanceled()) return;
process.stdout.write('\x1Bc'); // clear console
let hasError = false;
for (const fileName of project.languageServiceHost.getScriptFileNames()) {
const errors = await linter.check(fileName);
if (isCanceled()) return;
if (errors.length) {
linter.logErrors(fileName, errors);
hasError = true;
}
}
if (!hasError) {
console.log('No errors');
}
}
function getTsconfig() {
let tsconfig = path.resolve(process.cwd(), './tsconfig.json');
const tsconfigIndex = process.argv.indexOf('--tsconfig');
if (tsconfigIndex >= 0) {
tsconfig = path.resolve(process.cwd(), process.argv[tsconfigIndex + 1]);
}
if (!fs.existsSync(tsconfig)) {
throw `tsconfig.json not found: ${tsconfig}`;
}
return tsconfig;
}
const rootPath = process.cwd();
const fileNames = [
path.resolve(rootPath, './src/a.ts'),
path.resolve(rootPath, './src/b.js'),
path.resolve(rootPath, './src/c.foo'),
];
const project = kit.createInferredProject(rootPath, fileNames);
FAQs
```ts import * as fs from 'fs'; import * as path from 'path'; import { watch } from 'chokidar'; import * as kit from '@volar/kit';
The npm package @volar/kit receives a total of 345,756 weekly downloads. As such, @volar/kit popularity was classified as popular.
We found that @volar/kit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.