agent-first-data 0.23.0

A naming convention that lets AI agents understand your data without being told what it means, plus a CLI and library for reading and safely editing structured JSON, TOML, YAML, dotenv, and INI documents.
Documentation
{
  "$schema": "https://cmn.dev/schemas/v1/spore-core.json",
  "id": "agent-first-data",
  "name": "Agent-First Data",
  "version": "0.23.0",
  "domain": "agentfirstkit.com",
  "key": "ed25519.BwbSzqdDYyMN1pPW5snRk3afrJAovHn8aueMvDpfNKVw",
  "synopsis": "A naming convention that lets AI agents understand your data without being told what it means, plus a CLI and library for reading and safely editing structured JSON, TOML, YAML, dotenv, and INI documents.",
  "intent": [
    "Encode all semantic information in the field name itself so agents parse structured data without external schemas, documentation, or type systems — _ms/_s/_epoch_ms for time, _msats/_sats/_usd_cents for currency, _bytes for size, _secret for auto-redaction",
    "Define a JSONL output protocol where every line carries a code field (startup for config state, tool-defined for status/progress, ok/error for results) plus a trace object for execution context (duration, token counts, cost, data source) — same structure whether the transport is CLI stdout, HTTP response body, MCP tool result, or SSE stream",
    "Provide three output formats via --output json|yaml|plain: JSON is the canonical lossless format, YAML preserves structure with quoted strings and --- separators, plain applies suffix-driven human formatting (epoch_ms → RFC 3339, _bytes → human-readable, _secret → ***, _ms ≥ 1000 → seconds)"
  ],
  "license": "MIT",
  "mutations": [
    "Add `afdata emit` (log/result/error) to produce a single AFDATA protocol-v1 event from shell-safe scalar arguments, so shell scripts emit the same structured envelopes as the SDKs without hand-writing JSON.",
    "Add `afdata shell bash`, a sourceable Bash 3.2+ authoring kit embedded in the binary that gives executable scripts AFDATA-style argument parsing with --help, raw config reads, and structured log/result/error events.",
    "Give the kit transparent child-process wrappers: `afdata_run` passes child stdin/stdout/stderr, TTY, and exit status through unchanged (only the script lifecycle is structured), with an optional --quiet mode that discards successful output but replays it on failure.",
    "Preserve single terminal-result ownership across cooperating scripts: `afdata_call` keeps child logs and errors live but demotes a successful child result to an info log, so only the outermost script owns the final result."
  ],
  "bonds": [],
  "tree": {
    "algorithm": "blob_tree_blake3_nfc",
    "exclude_names": [
      ".git",
      ".cmn"
    ],
    "follow_rules": [
      ".gitignore"
    ]
  }
}