Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:A5c ai Babysitter atlas plugin compiler

From Leeroopedia
Knowledge Sources
Domains Plugin_Generation, Compilation
Last Updated 2026-10-23 00:00 GMT

Overview

CLI tool for building the extensions-adapter compiler and compiling unified atlas plugins to per-harness targets.

Description

Two stages of compilation are handled by the atlas plugin generator:

  • Compiler Build (Step 2) — Runs npm run build for @a5c-ai/atlas and @a5c-ai/extensions-adapter. Builds only if dist/cli.js does not already exist. Uses execSync with inherited stdio.
  • Per-Target Compilation (Step 3) — For each target in plugins/atlas-unified/plugin.json targets map (e.g. gemini, claude-code, codex, cursor, genty), runs node dist/cli.js compile --target <target> --source <unified> --output <output> --verbose --verify. Each target gets its own directory under the output.

The compiler reads the unified source, transforms it for the target harness format, and writes per-target plugin packages.

Usage

  • Atlas plugin generation Steps 2-3: Build the compiler, then compile to each target harness.

Code Reference

Source Location

  • Repository: Babysitter
  • File: scripts/generate-atlas-plugins.mjs:L55-66 (build), L82-118 (compile)

Signature

# Build the compiler
npm run build --workspace=@a5c-ai/atlas
npm run build --workspace=@a5c-ai/extensions-adapter

# Compile per target
node packages/adapters/extensions/dist/cli.js compile \
  --target <target-key> \
  --source plugins/atlas-unified \
  --output <output-dir>/<target> \
  --verbose --verify \
  [--marketplace <path>]

Import

# CLI usage — the generate-atlas-plugins.mjs script runs these internally
node scripts/generate-atlas-plugins.mjs

I/O Contract

Inputs

Name Type Required Description
target string Yes Target key from plugin.json (gemini, claude-code, codex, cursor, genty)
--source string Yes Unified source directory
--output string Yes Per-target output directory
--verify boolean No Verify output after compilation

Outputs

Name Type Description
dist/cli.js file Compiled extensions-adapter CLI
per-target packages directories One directory per target key with harness-specific plugin files

Usage Examples

Build and Compile

# Full build + compile (done by generate-atlas-plugins.mjs)
node scripts/generate-atlas-plugins.mjs

# Manual compiler build (if needed)
npm run build --workspace=@a5c-ai/extensions-adapter

# Manual per-target compile
node packages/adapters/extensions/dist/cli.js compile \
  --target claude-code \
  --source plugins/atlas-unified \
  --output artifacts/generated-atlas-plugins/claude-code \
  --verbose --verify

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment