feat: add npm publish workflow (#29)

* feat: add npm publish workflow

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* feat: add CLI interface

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: add moduleResolution and resolveJsonModule to tsconfig

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* feat: add OPENAI_API_KEY to workflow files

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
This commit is contained in:
devin-ai-integration[bot]
2025-02-06 16:34:39 +08:00
committed by GitHub
parent aee5598f3e
commit 282de3f245
7 changed files with 164 additions and 3 deletions

21
package-lock.json generated
View File

@@ -16,6 +16,7 @@
"@types/node-fetch": "^2.6.12",
"ai": "^4.1.21",
"axios": "^1.7.9",
"commander": "^13.1.0",
"cors": "^2.8.5",
"duck-duck-scrape": "^2.2.7",
"express": "^4.21.2",
@@ -24,6 +25,7 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@types/commander": "^2.12.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.10",
"@typescript-eslint/eslint-plugin": "^7.0.1",
@@ -1529,6 +1531,16 @@
"@types/node": "*"
}
},
"node_modules/@types/commander": {
"version": "2.12.0",
"resolved": "https://registry.npmjs.org/@types/commander/-/commander-2.12.0.tgz",
"integrity": "sha512-DDmRkovH7jPjnx7HcbSnqKg2JeNANyxNZeUvB0iE+qKBLN+vzN5iSIwt+J2PFSmBuYEut4mgQvI/fTX9YQH/vw==",
"dev": true,
"license": "MIT",
"dependencies": {
"commander": "*"
}
},
"node_modules/@types/connect": {
"version": "3.4.38",
"resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz",
@@ -2595,6 +2607,15 @@
"node": ">= 0.8"
}
},
"node_modules/commander": {
"version": "13.1.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",
"integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==",
"license": "MIT",
"engines": {
"node": ">=18"
}
},
"node_modules/concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",