
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.
@ampersand-protocol/validate
Advanced tools
Schema validation and composition utilities for ampersand.json declarations.
@ampersand-protocol/validateMinimal TypeScript/Node validator and CLI for ampersand.json declarations.
This package is designed for fast CI checks and local validation without needing the Elixir reference runtime.
npxnpx @ampersand-protocol/validate validate ./examples/infra-operator.ampersand.json
npm install @ampersand-protocol/validate
npx @ampersand-protocol/validate validate ./agent.ampersand.json
npx @ampersand-protocol/validate compose ./a.ampersand.json ./b.ampersand.json
npx @ampersand-protocol/validate check ./agent.ampersand.json "stream_data |> &time.anomaly.detect() |> &memory.graph.enrich()"
npx @ampersand-protocol/validate check ./agent.ampersand.json --pipeline incident_triage
import {
validateFile,
validateDocument,
composeCapabilities,
normalizeCapabilities,
checkPipeline,
generateMcpConfig
} from "@ampersand-protocol/validate";
const result = validateFile("./agent.ampersand.json");
if (!result.ok) {
console.error(result.errors);
process.exit(1);
}
const doc = JSON.parse(fs.readFileSync("./agent.ampersand.json", "utf8"));
const validation = validateDocument(doc);
if (validation.ok) {
console.log("valid");
} else {
console.log(validation.errors);
}
const composed = composeCapabilities([docA, docB, docC]);
// { ok: true, capabilities: {...} } or conflict error
const mcp = generateMcpConfig(doc, { format: "zed" });
// { context_servers: {...} }
CLI commands return JSON:
{ "status": "ok", ... }{ "status": "error", "error": "...", "errors": ["..."] }This makes the package easy to consume in CI pipelines and scripts.
The bundled schema is synchronized from:
schema/v0.1.0/ampersand.schema.jsonIf you update protocol schema fields, re-sync this package before publishing.
reference/elixir/ampersand_core/FAQs
Schema validation and composition utilities for ampersand.json declarations.
We found that @ampersand-protocol/validate 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
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.