@suzumiyaaoba/mdxr 0.1.0 → 0.3.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 +33 -1
- package/dist/cli.mjs +5397 -1682
- package/dist/components.d.mts +12 -12
- package/dist/components.mjs +2 -2
- package/dist/{config-SI9IyFiC.mjs → config-DhBFpSdB.mjs} +1 -1
- package/dist/{doc-context-CEqzMYKv.d.mts → doc-context-B_H-VT1p.d.mts} +206 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{ui-GKFD0mx5.mjs → ui-DOxuV3n8.mjs} +4703 -298
- package/package.json +15 -1
- package/skill/SKILL.md +7 -6
- package/skill/references/components/extended-charts.md +92 -0
- package/skill/references/components/extended-diagrams.md +106 -0
- package/skill/references/components/extended-evaluation.md +106 -0
- package/skill/references/components/extended-evidence.md +122 -0
- package/skill/references/components/extended-interactive.md +137 -0
- package/skill/references/components/extended-investigation.md +108 -0
- package/skill/references/components/extended-media.md +137 -0
- package/skill/references/components/extended-operations.md +103 -0
- package/skill/references/components/extended-planning.md +108 -0
- package/skill/references/components/extended-quality.md +102 -0
- package/skill/references/components/extended-reference.md +111 -0
- package/skill/references/components/extended-statistics.md +83 -0
- package/skill/references/components.md +17 -0
- package/src/ascii/ast.ts +490 -0
- package/src/ascii/charts.ts +526 -0
- package/src/ascii/document.ts +207 -0
- package/src/ascii/extended.ts +550 -0
- package/src/ascii/forms.ts +116 -0
- package/src/ascii/glyphs.ts +81 -0
- package/src/ascii/index.ts +196 -0
- package/src/ascii/investigation.ts +421 -0
- package/src/ascii/layout.ts +65 -0
- package/src/ascii/output.ts +345 -0
- package/src/ascii/parts.ts +56 -0
- package/src/ascii/planning.ts +597 -0
- package/src/ascii/reports.ts +675 -0
- package/src/ascii/shadcn.ts +611 -0
- package/src/cli.ts +117 -33
- package/src/editor.ts +2 -2
- package/src/extended/calculator.ts +37 -0
- package/src/extended/catalog.ts +723 -0
- package/src/extended/data.ts +275 -0
- package/src/extended/diagrams.ts +607 -0
- package/src/extended/differences.ts +270 -0
- package/src/extended/plots.ts +1063 -0
- package/src/extended/profiles.ts +66 -0
- package/src/extended/reports.ts +752 -0
- package/src/init.ts +27 -0
- package/src/mdx.ts +4 -0
- package/src/open.ts +50 -0
- package/src/remark/directives.ts +6 -0
- package/src/remark/headings.ts +3 -1
- package/src/remark/include.ts +152 -0
- package/src/remark/references.ts +247 -0
- package/src/serve.ts +54 -8
- package/src/ui/ask-question.tsx +9 -14
- package/src/ui/ask.tsx +4 -10
- package/src/ui/benchmarks.tsx +4 -1
- package/src/ui/data-children.ts +98 -0
- package/src/ui/data-context.ts +25 -0
- package/src/ui/data-download.ts +14 -0
- package/src/ui/data-props.ts +24 -0
- package/src/ui/data-table.tsx +148 -0
- package/src/ui/data-view.tsx +77 -0
- package/src/ui/diagrams-reports.tsx +3 -0
- package/src/ui/document-inputs.tsx +733 -0
- package/src/ui/document-media.tsx +489 -0
- package/src/ui/document-references.tsx +258 -0
- package/src/ui/document-tabs.tsx +376 -0
- package/src/ui/evaluation-reports.tsx +10 -0
- package/src/ui/evidence-reports.tsx +7 -0
- package/src/ui/figure.tsx +5 -2
- package/src/ui/index.ts +434 -0
- package/src/ui/investigation-reports.tsx +5 -0
- package/src/ui/object-schema.tsx +109 -0
- package/src/ui/operations-reports.tsx +13 -0
- package/src/ui/planning-reports.tsx +13 -0
- package/src/ui/plot-box-plot.tsx +6 -0
- package/src/ui/plot-bullet-chart.tsx +6 -0
- package/src/ui/plot-bump-chart.tsx +6 -0
- package/src/ui/plot-calendar-heatmap.tsx +6 -0
- package/src/ui/plot-chord-diagram.tsx +6 -0
- package/src/ui/plot-cohort-table.tsx +6 -0
- package/src/ui/plot-confusion-matrix.tsx +6 -0
- package/src/ui/plot-dot-plot.tsx +6 -0
- package/src/ui/plot-dumbbell-chart.tsx +6 -0
- package/src/ui/plot-ecdf.tsx +6 -0
- package/src/ui/plot-factory.tsx +45 -0
- package/src/ui/plot-heatmap.tsx +6 -0
- package/src/ui/plot-histogram.tsx +6 -0
- package/src/ui/plot-interval-plot.tsx +6 -0
- package/src/ui/plot-pareto-chart.tsx +6 -0
- package/src/ui/plot-ridgeline-plot.tsx +6 -0
- package/src/ui/plot-slope-chart.tsx +6 -0
- package/src/ui/plot-sunburst.tsx +6 -0
- package/src/ui/plot-up-set-plot.tsx +6 -0
- package/src/ui/plot-view.tsx +130 -0
- package/src/ui/plot-violin-plot.tsx +6 -0
- package/src/ui/quality-reports.tsx +8 -0
- package/src/ui/record-item.tsx +24 -0
- package/src/ui/reference-reports.tsx +8 -0
- package/src/ui/report-view.tsx +53 -0
- package/src/ui/semantic-diagrams.tsx +194 -0
- package/src/ui/small-multiples.tsx +58 -0
- package/src/ui/structured-diff.tsx +64 -0
- package/src/ui/table-controls.tsx +216 -0
package/README.md
CHANGED
|
@@ -28,13 +28,24 @@ Render an `.mdx` file (or stdin) to a standalone HTML file.
|
|
|
28
28
|
mdxr render plan.mdx # → plan.html
|
|
29
29
|
mdxr render plan.mdx -o out.html # custom output path
|
|
30
30
|
cat plan.mdx | mdxr render > out.html # stdin → stdout
|
|
31
|
+
mdxr render plan.mdx --open # also open plan.html in the default browser
|
|
31
32
|
mdxr render plan.mdx --no-hydrate # static HTML, no client bundle
|
|
32
33
|
mdxr render plan.mdx --format json # machine-readable errors
|
|
33
34
|
```
|
|
34
35
|
|
|
35
36
|
### `mdxr serve [file]`
|
|
36
37
|
|
|
37
|
-
Preview a document in the browser with live reload (`-p, --port`, default `3737`).
|
|
38
|
+
Preview a document in the browser with live reload (`-p, --port`, default `3737`; `--open` to launch the browser once serving).
|
|
39
|
+
|
|
40
|
+
### `mdxr text [file]`
|
|
41
|
+
|
|
42
|
+
Render an `.mdx` document to plain Markdown — every component becomes an ASCII/text stand-in (status checkbox lists, block-bar charts, GFM tables, `<details>` disclosures) so the document stays readable in any Markdown viewer or terminal. Interactive-only widgets (dialogs, menus, shadcn chrome) degrade to their text content; unknown components warn to stderr and keep their children.
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
mdxr text plan.mdx # → plan.txt.md
|
|
46
|
+
mdxr text plan.mdx -o plan.md # custom output path
|
|
47
|
+
cat plan.mdx | mdxr text > plan.md # stdin → stdout
|
|
48
|
+
```
|
|
38
49
|
|
|
39
50
|
### `mdxr catalog`
|
|
40
51
|
|
|
@@ -51,6 +62,27 @@ mdxr init --tool all # all supported tools
|
|
|
51
62
|
mdxr init --global # into your home directory instead
|
|
52
63
|
```
|
|
53
64
|
|
|
65
|
+
Local installs also add `.mdxr/` to the project's `.gitignore` — the untracked scratch dir agents write documents to.
|
|
66
|
+
|
|
67
|
+
## Agent skill
|
|
68
|
+
|
|
69
|
+
The `mdxr` skill teaches coding agents the component catalog and the render workflow. Install it into your project (or globally) with the [`skills` CLI](https://github.com/vercel-labs/skills):
|
|
70
|
+
|
|
71
|
+
```sh
|
|
72
|
+
npx skills add Suzumiyaaoba/mdxr --skill mdxr
|
|
73
|
+
# add -g for a global install, or -a claude-code to target a specific agent
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Then ask your agent, for example:
|
|
77
|
+
|
|
78
|
+
> Use the mdxr skill to write an implementation plan for the auth feature and render it to HTML.
|
|
79
|
+
|
|
80
|
+
Not just plans — any deliverable works (reports, reviews, investigation summaries, …). To make this automatic, add a standing instruction to your agent config (e.g. `AGENTS.md` / `CLAUDE.md`):
|
|
81
|
+
|
|
82
|
+
```md
|
|
83
|
+
- Whenever the user explicitly asks for a deliverable with mdxr, use the mdxr skill to write and render it.
|
|
84
|
+
```
|
|
85
|
+
|
|
54
86
|
## License
|
|
55
87
|
|
|
56
88
|
MIT
|