Package Exports
- @signet-auth/node
- @signet-auth/node/dist/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@signet-auth/node) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@signet-auth/node
Node-only local operator helpers for Signet, backed by the signet CLI.
This package is intentionally separate from @signet-auth/core:
@signet-auth/corestays as a pure TypeScript/WASM crypto wrapper@signet-auth/nodehandles local filesystem workflows such as audit export, audit verification, and encrypted audit parameter materialization
Requirements
- Node.js 18+
- A local
signetbinary available onPATH, or passsignetBin
CLI compatibility
This package shells out to signet sign and, since 0.10.0, may pass any of
--session, --call-id, --trace-id, --parent-receipt-id. When client.sign(...)
receives any of those options, the wrapper probes signet sign --help once per
client instance and throws SignetCliVersionError if the host binary is missing
the required flags. Build/install signet from a tree containing commit a66e748
or later. The error reports the detected signet --version so operators can size
the upgrade.
You can also run await client.assertSignCompatibility() eagerly at startup
(e.g. inside a plugin's register(api)) to fail fast instead of on first
session-bound sign call.
Install
npm install @signet-auth/nodeUsage
import { SignetNodeClient } from "@signet-auth/node";
const client = new SignetNodeClient({
signetHome: "/var/lib/signet",
signetBin: "signet",
});
await client.sign({
key: "agent-prod",
tool: "write_file",
params: { path: "/tmp/demo.txt", content: "hello" },
target: "mcp://fs",
auditEncryptParams: true,
});
const records = await client.auditQuery({
signer: "agent-prod",
decryptParams: true,
});
console.log(records[0].materialized_receipt);API
new SignetNodeClient(options)client.sign({ key, tool, target, params, auditEncryptParams })client.auditQuery({ since, tool, signer, limit, decryptParams })client.auditExport({ output, since, tool, signer, limit, decryptParams })client.auditVerify({ since, tool, signer, limit, trustBundle, trustedAgentKeys, trustedServerKeys })client.runRaw(args)for direct CLI access
Notes
auditQuery({ decryptParams: true })is implemented throughsignet audit --export ... --decrypt-params- decrypted queries preserve the original encrypted
receiptand addmaterialized_receipt auditVerify()returns a structured summary even when signature verification fails, so operator code can inspectfailed,warnings, and raw CLI output without scraping exceptions