md-pipe 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -194,6 +194,17 @@ Options:
194
194
 
195
195
  Commands:
196
196
  init [options] Generate md-pipe.config.yml
197
+ extract [commands...] Extract embedded CLI contract specification
198
+ ```
199
+
200
+ ### Contract Extraction
201
+
202
+ The `extract` command outputs the embedded CLI contract specification for use by external tooling (AI agents, documentation generators, etc.):
203
+
204
+ ```bash
205
+ md-pipe extract --all # Full contract (YAML)
206
+ md-pipe extract --all --format json # Full contract (JSON)
207
+ md-pipe extract render init # Specific commands only
197
208
  ```
198
209
 
199
210
  ## Transform Plugins
package/cli-contract.yaml CHANGED
@@ -2,7 +2,7 @@ cli_contracts: 0.1.0
2
2
 
3
3
  info:
4
4
  title: md-pipe
5
- version: 0.3.0
5
+ version: 0.6.1
6
6
  description: >
7
7
  A rendering engine that transforms Markdown manuscripts into HTML/PDF
8
8
  through HTML-comment directives and DOM transformations,
package/dist/cli.js CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env node
2
+ import { register } from "tsx/esm/api";
3
+ register();
2
4
  import * as fs from "node:fs";
3
5
  import * as path from "node:path";
4
6
  import { fileURLToPath } from "node:url";