vet-skills 0.7.1 → 0.7.3
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/README.md +1 -1
- package/dist/index.js +5 -5
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -84,7 +84,7 @@ an artifact hash, looked up, and evaluated against your policy before it runs:
|
|
|
84
84
|
```
|
|
85
85
|
$ vet-skills check deploy-helper
|
|
86
86
|
Resolving deploy-helper …
|
|
87
|
-
vet-skills 0.7.
|
|
87
|
+
vet-skills 0.7.3 · policy acme/default-strict
|
|
88
88
|
|
|
89
89
|
BLOCKED 14/100 deploy-helper@2.3.1 · devtools-cloud · 4,210 installs
|
|
90
90
|
|
package/dist/index.js
CHANGED
|
@@ -7910,7 +7910,7 @@ import { mkdirSync, readFileSync, writeFileSync, existsSync, appendFileSync, chm
|
|
|
7910
7910
|
import { homedir } from "node:os";
|
|
7911
7911
|
import { join } from "node:path";
|
|
7912
7912
|
import { randomUUID } from "node:crypto";
|
|
7913
|
-
var VERSION = "0.7.
|
|
7913
|
+
var VERSION = "0.7.3";
|
|
7914
7914
|
var HOME = process.env.VET_SKILLS_HOME ?? join(homedir(), ".vet-skills");
|
|
7915
7915
|
var API = (process.env.KILLERSKILLS_API ?? "https://killerskills.ai").replace(/\/$/, "");
|
|
7916
7916
|
var CACHE_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -8064,10 +8064,10 @@ async function call(path, init = {}, timeoutMs = 8e3) {
|
|
|
8064
8064
|
clearTimeout(t);
|
|
8065
8065
|
}
|
|
8066
8066
|
}
|
|
8067
|
-
function resolveSkill(q, registry) {
|
|
8067
|
+
function resolveSkill(q, registry, surface) {
|
|
8068
8068
|
const qs = new URLSearchParams({ q });
|
|
8069
8069
|
if (registry) qs.set("registry", registry);
|
|
8070
|
-
return call(`/api/v1/resolve?${qs}`, { headers: orgHeaders() });
|
|
8070
|
+
return call(`/api/v1/resolve?${qs}`, { headers: { ...orgHeaders(), ...surface ? { "x-vs-surface": surface } : {} } });
|
|
8071
8071
|
}
|
|
8072
8072
|
function orgHeaders() {
|
|
8073
8073
|
const token = readToken();
|
|
@@ -8565,7 +8565,7 @@ var TOOLS = [
|
|
|
8565
8565
|
}
|
|
8566
8566
|
];
|
|
8567
8567
|
async function checkSkill(name, registry) {
|
|
8568
|
-
const r = await resolveSkill(name, registry);
|
|
8568
|
+
const r = await resolveSkill(name, registry, "mcp");
|
|
8569
8569
|
if (!r.ok) return r.status === 404 ? `No skill or MCP server named "${name}" is indexed by KillerSkills${registry ? ` in ${registry}` : ""}. Treat it as unvetted.` : `KillerSkills lookup failed (${r.error}). Treat "${name}" as unvetted.`;
|
|
8570
8570
|
const d = r.data;
|
|
8571
8571
|
const page = `${API}${d.skill.page}`;
|
|
@@ -8587,7 +8587,7 @@ async function checkSkill(name, registry) {
|
|
|
8587
8587
|
}
|
|
8588
8588
|
async function searchSkills(query) {
|
|
8589
8589
|
try {
|
|
8590
|
-
const res = await fetch(`${API}/api/v1/leaderboard?q=${encodeURIComponent(query)}`, { headers: { accept: "application/json", "user-agent": `vet-skills/${VERSION} mcp
|
|
8590
|
+
const res = await fetch(`${API}/api/v1/leaderboard?q=${encodeURIComponent(query)}`, { headers: { accept: "application/json", "user-agent": `vet-skills/${VERSION} mcp`, "x-vs-surface": "mcp", "x-vs-client": clientId() }, signal: AbortSignal.timeout(1e4) });
|
|
8591
8591
|
if (!res.ok) return `Search failed (HTTP ${res.status}).`;
|
|
8592
8592
|
const d = await res.json();
|
|
8593
8593
|
if (!d.rows.length) return `Nothing in the KillerSkills index matches "${query}".`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vet-skills",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"mcpName": "io.github.cyligence-karim/killerskills",
|
|
5
5
|
"description": "Vet agent skills and MCP servers before they run, and give your agent the verdicts as an MCP server. Verdicts from KillerSkills, policy from your org.",
|
|
6
6
|
"type": "module",
|
|
@@ -34,11 +34,10 @@
|
|
|
34
34
|
"homepage": "https://killerskills.ai/docs/cli",
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|
|
37
|
-
"url": "git+https://github.com/cyligence-karim/
|
|
38
|
-
"directory": "packages/cli"
|
|
37
|
+
"url": "git+https://github.com/cyligence-karim/vet-skills.git"
|
|
39
38
|
},
|
|
40
39
|
"bugs": {
|
|
41
|
-
"url": "https://github.com/cyligence-karim/
|
|
40
|
+
"url": "https://github.com/cyligence-karim/vet-skills/issues"
|
|
42
41
|
},
|
|
43
42
|
"keywords": [
|
|
44
43
|
"agent-skills",
|