calllint 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +28 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4594,15 +4594,39 @@ async function fetchNpmFacts(packageSpec, fetchJson) {
|
|
|
4594
4594
|
(k) => typeof scripts[k] === "string" && scripts[k].length > 0
|
|
4595
4595
|
);
|
|
4596
4596
|
const deprecated = typeof versionDoc.deprecated === "string" ? versionDoc.deprecated : void 0;
|
|
4597
|
+
const description = typeof versionDoc.description === "string" ? versionDoc.description : void 0;
|
|
4598
|
+
const readme = typeof doc.readme === "string" ? doc.readme : void 0;
|
|
4597
4599
|
return {
|
|
4598
4600
|
name,
|
|
4599
4601
|
versionExists: true,
|
|
4600
4602
|
installScripts,
|
|
4601
4603
|
deprecated,
|
|
4602
4604
|
latestVersion,
|
|
4603
|
-
resolvedVersion
|
|
4605
|
+
resolvedVersion,
|
|
4606
|
+
description,
|
|
4607
|
+
readme
|
|
4604
4608
|
};
|
|
4605
4609
|
}
|
|
4610
|
+
function surfacesFromNpmFacts(facts) {
|
|
4611
|
+
const surfaces = [];
|
|
4612
|
+
if (typeof facts.description === "string" && facts.description.length > 0) {
|
|
4613
|
+
surfaces.push({
|
|
4614
|
+
path: `registry:${facts.name}#description`,
|
|
4615
|
+
kind: "registry-description",
|
|
4616
|
+
text: facts.description,
|
|
4617
|
+
truncated: false
|
|
4618
|
+
});
|
|
4619
|
+
}
|
|
4620
|
+
if (typeof facts.readme === "string" && facts.readme.length > 0) {
|
|
4621
|
+
surfaces.push({
|
|
4622
|
+
path: `registry:${facts.name}#readme`,
|
|
4623
|
+
kind: "registry-readme",
|
|
4624
|
+
text: facts.readme,
|
|
4625
|
+
truncated: false
|
|
4626
|
+
});
|
|
4627
|
+
}
|
|
4628
|
+
return surfaces;
|
|
4629
|
+
}
|
|
4606
4630
|
function findingsFromNpmFacts(facts, fetchedAt) {
|
|
4607
4631
|
const findings = [];
|
|
4608
4632
|
const stamp = (f) => ({ ...f, source: "online", fetchedAt });
|
|
@@ -4660,6 +4684,9 @@ function findingsFromNpmFacts(facts, fetchedAt) {
|
|
|
4660
4684
|
fix: "Migrate to the maintained successor or a supported version."
|
|
4661
4685
|
}));
|
|
4662
4686
|
}
|
|
4687
|
+
for (const f of analyzeDocumentSurfaces(surfacesFromNpmFacts(facts))) {
|
|
4688
|
+
findings.push(stamp(f));
|
|
4689
|
+
}
|
|
4663
4690
|
return findings;
|
|
4664
4691
|
}
|
|
4665
4692
|
async function enrichNpmPackage(packageSpec, fetchJson, fetchedAt) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "calllint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Evidence-backed security verdicts for MCP servers and agent tools. Lint agent tool-call risk before tools run — SAFE / REVIEW / BLOCK / UNKNOWN, with evidence. Never executes the server it judges.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|