New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@codai/axiom-schema

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codai/axiom-schema

Zod v4 schemas, closed error codes and JSON Schema for AXIOM v2 Plan, Manifest, CheckReport, ApplyResult, Profile and Journal

latest
Source
npmnpm
Version
2.4.0
Version published
Maintainers
1
Created
Source

@codai/axiom-schema

Zod v4 schemas, closed error codes and generated JSON Schema for the AXIOM v2 data model (docs/design/v2-architecture.md §2.2, §3.1, §4.2). Zero runtime deps besides zod.

ModuleExports
digestSha256HexSchema, DigestSchema, DigestRefSchema (sha256:<hex>), toDigestRef, digestRefHex
pathRelPathSchema, isValidRelPath, relPathIssues — relative POSIX, NFC, ≤1024, no ../\/drive/reserved names/`<>:"
errorsERROR_CODES tuple, ErrorCode, AxiomError { code, path?, details? }, isAxiomError, isErrorCode
planPlanSchema, PlanArtifactSchema, PlanArtifactSourceSchema (inline/cas/ref/template)
checkCheckRefSchema, FindingSchema, CheckReportSchema
manifestManifestBodySchema (JCS-hashed; artifacts/checks sorted+unique by UTF-8 byte order), ManifestBundleSchema (blobs ≤ 4 MiB), compareUtf8
profileProfileSchema
applyApplyResultSchema, AppliedFileSchema, JournalSchema, ErrorCodeSchema

Naming: schemas end in Schema; inferred types are bare (Plan, ManifestBundle, …); *Input types are the pre-default shape an agent sends. Callers assert on error codes, never message text.

pnpm build:jsonschema regenerates schemas/*.schema.json (draft 2020-12, input shape) — commit them.

Why isolatedDeclarations: false here: every export is a Zod schema whose type is a deeply nested generic; spelling those annotations by hand is unmaintainable and adds no safety. This package is the only one that overrides the base, and its .d.ts is still emitted by tsdown.

Keywords

axiom

FAQs

Package last updated on 27 Sep 2026

Related posts