callgent-md-spec
v0.1.0-alpha.1
Published
A parser and generator for the `callgent.md` specification.
Readme
callgent-md-spec
A parser and generator for the callgent.md specification.
Installation
pnpm install callgent-md-specUsage
Parsing
import { CallgentParser } from 'callgent-md-spec';
const parser = new CallgentParser();
const markdown = `...`; // Your callgent.md content
const doc = parser.parse(markdown);
console.log(doc.service.name);Generating
import { CallgentGenerator } from 'callgent-md-spec';
const generator = new CallgentGenerator();
const doc = { ... }; // Your CallgentDoc object
const markdown = generator.stringify(doc);
console.log(markdown);Features
- Parses
callgent.mdfiles into structured JSON. - Generates
callgent.mdfiles from JSON. - Supports YAML frontmatter.
- Handles Service definitions, Business Functions, Orchestration Tools, and Rendering Tools.
- Extraction of parameters, schemas, and implementation code blocks.
