@lifeaitools/rdc-skills 0.20.5 → 0.20.6
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/.claude-plugin/plugin.json +1 -1
- package/git-sha.json +1 -1
- package/package.json +1 -1
- package/skills/convert/SKILL.md +14 -12
package/git-sha.json
CHANGED
package/package.json
CHANGED
package/skills/convert/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: rdc:convert
|
|
3
|
-
description: "Usage `rdc:convert <input> [--out <dir>] [--to markdown|word] [--images assets|base64|s3]` — Convert .docx/.pptx/.ppt → Markdown (Word OMML equations as KaTeX TeX, tables, images) or Markdown → Word via the build-corpus CLI (
|
|
3
|
+
description: "Usage `rdc:convert <input> [--out <dir>] [--to markdown|word] [--images assets|base64|s3]` — Convert .docx/.pptx/.ppt → Markdown (Word OMML equations as KaTeX TeX, tables, images) or Markdown → Word via the build-corpus CLI (npm `regen.mde`, or pip from GitHub). Portable: runs in any session that can reach npm or PyPI — Claude Code CLI and claude.ai both fetch + run it. Use whenever the user asks to convert an Office document, build a Markdown corpus from .docx/.pptx, turn Markdown into a .docx, or 'open the report' in the regen-mde editor (Windows)."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# rdc:convert — Office ↔ Markdown conversion (build-corpus) + regen-mde editor
|
|
@@ -35,15 +35,15 @@ The command is always `build-corpus <input> [flags]`. Resolve the binary like th
|
|
|
35
35
|
equations, the fidelity report, and the escaped-currency fix; the PyPI/npm packages
|
|
36
36
|
below currently LAG GitHub):
|
|
37
37
|
```bash
|
|
38
|
-
pip install "git+https://github.com/LIFEAI/build-corpus.git
|
|
39
|
-
#
|
|
40
|
-
# pip install "git+https://github.com/LIFEAI/build-corpus.git"
|
|
38
|
+
pip install "git+https://github.com/LIFEAI/build-corpus.git"
|
|
39
|
+
# (the feat/dual-package-ubuntu branch is kept in sync with main as an alias)
|
|
41
40
|
```
|
|
42
|
-
This installs the `build-corpus` CLI and its deps (latex2mathml,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
This installs the `build-corpus` CLI and its deps (latex2mathml, python-docx,
|
|
42
|
+
Pillow, omml2latex). The MathML→OMML step is an OWNED converter — there is NO
|
|
43
|
+
`mathml2omml` dependency. On Debian/Ubuntu externally-managed Python, add
|
|
44
|
+
`--break-system-packages`, use a venv, or `pipx install "git+https://github.com/LIFEAI/build-corpus.git"`.
|
|
45
|
+
3. **npm (only if you do NOT need the latest fixes — lags GitHub; `build-corpus` is
|
|
46
|
+
NOT on PyPI):** `npx -y -p regen.mde build-corpus <input> [flags]`
|
|
47
47
|
4. **Legacy `.ppt` input** additionally needs LibreOffice (`soffice`) on PATH
|
|
48
48
|
(`sudo apt install libreoffice`). `.docx`/`.pptx` need nothing extra.
|
|
49
49
|
5. **S3/R2 image upload** needs the extra: append `[s3]` to the package spec.
|
|
@@ -123,8 +123,8 @@ build-corpus report.md --inline-images # → report.inli
|
|
|
123
123
|
build-corpus input.docx --images s3 --config build-corpus.config.json
|
|
124
124
|
|
|
125
125
|
# portable one-offs when build-corpus is not yet installed:
|
|
126
|
-
pipx run build-corpus input.docx --out out
|
|
127
|
-
npx -y -p regen
|
|
126
|
+
pipx run --spec "git+https://github.com/LIFEAI/build-corpus.git" build-corpus input.docx --out out
|
|
127
|
+
npx -y -p regen.mde build-corpus input.docx --out out
|
|
128
128
|
```
|
|
129
129
|
|
|
130
130
|
## Boundaries
|
|
@@ -134,5 +134,7 @@ npx -y -p regen-mde build-corpus input.docx --out out
|
|
|
134
134
|
- The `regen-mde` GUI is Windows-only; do not attempt to launch it on Linux/macOS.
|
|
135
135
|
|
|
136
136
|
## Reference
|
|
137
|
-
- Package:
|
|
137
|
+
- Package: npm `regen.mde` (CLI bin `build-corpus`, editor bin `regen-mde`). NOT on
|
|
138
|
+
PyPI — install the Python CLI from GitHub (step 2). MathML→OMML is an owned converter
|
|
139
|
+
(no `mathml2omml` dependency).
|
|
138
140
|
- Source: `github.com/LIFEAI/build-corpus` (`C:/Dev/build-corpus` locally).
|