Skip to content

Commit 3c20236

Browse files
committed
fix: bundle plugin APIs as hard deps, fix npm video embed
- Move @opencode-ai/plugin + @opencode/plugin to dependencies so the dual v1(server)/v2(setup) entrypoint loads with either host alone. Optional peers + static imports caused ERR_MODULE_NOT_FOUND. - Replace bare user-attachments video URL with markdown link (npm does not embed video). - Normalize repository.url (npm pkg fix).
1 parent 6f1c0ce commit 3c20236

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

‎package.json‎

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opencode-parser",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Parse any file in opencode. Supports PDF, DOCX, XLSX, PPTX, images with OCR, EPUB, HTML, XML, Markdown, Jupyter notebooks, CSV, TSV, ZIP, RAR, 7z, TAR, GZip, JSON, YAML, TOML, INI, and plain text. Detects format by magic bytes. Extracts text, tables, metadata, and exports to Markdown.",
55
"type": "module",
66
"main": "src/index.ts",
@@ -47,28 +47,18 @@
4747
"license": "MIT",
4848
"repository": {
4949
"type": "git",
50-
"url": "https://github.com/TejasS1233/opencode-parser.git"
50+
"url": "git+https://github.com/TejasS1233/opencode-parser.git"
5151
},
5252
"dependencies": {
53+
"@opencode-ai/plugin": "^1.0.0",
54+
"@opencode/plugin": "^2.0.18",
5355
"cheerio": "^1.0.0",
5456
"jszip": "^3.10.1",
5557
"mammoth": "^1.8.0",
5658
"pdf-parse": "^1.1.1",
5759
"tesseract.js": "^5.1.1",
5860
"xlsx": "^0.18.5"
5961
},
60-
"peerDependencies": {
61-
"@opencode-ai/plugin": ">=1.18.29",
62-
"@opencode/plugin": ">=2.0.0"
63-
},
64-
"peerDependenciesMeta": {
65-
"@opencode-ai/plugin": {
66-
"optional": true
67-
},
68-
"@opencode/plugin": {
69-
"optional": true
70-
}
71-
},
7262
"devDependencies": {
7363
"@opencode-ai/plugin": "^1.0.0",
7464
"@opencode/plugin": "^2.0.18",

0 commit comments

Comments
 (0)