JSPM

@workspacejson/rules

0.4.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 37
  • Score
    100M100P100Q87253F
  • License Apache-2.0

Rule engine for auditing AGENTS.md hygiene using .agents/workspace.json

Package Exports

  • @workspacejson/rules
  • @workspacejson/rules/testing

Readme

@workspacejson/rules

Deterministic parser, scanner, validator, and rule engine for agents-audit and other consumers of .agents/agents.workspace.json.

This package is published from the agents-audit workspace and depends on the published @workspacejson/spec package.

Install

pnpm add @workspacejson/rules

API

import {
  AgentsMdParser,
  RepoScanner,
  RuleEngine,
  WorkspaceJsonValidator,
  computeHygieneScore,
} from '@workspacejson/rules';

Contents

  • src/parser parses AGENTS.md
  • src/scanner walks repository structure
  • src/validator validates .agents/agents.workspace.json
  • src/engine evaluates deterministic rules
  • src/testing provides the published test helper surface

Notes

  • This package is the implementation layer for the audit engine
  • Public exports are kept stable through src/index.ts