oca-proxy 1.0.8 → 1.0.10
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 +6 -5
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ OpenAI-compatible proxy server for Oracle Code Assist (OCA).
|
|
|
4
4
|
|
|
5
5
|
This proxy handles OCI authentication via web-based OAuth flow and exposes standard OpenAI API endpoints, allowing any OpenAI-compatible tool to use OCA backend models.
|
|
6
6
|
|
|
7
|
+
Note: Requires Node.js 24 LTS (>=24.0.0 <25).
|
|
8
|
+
|
|
7
9
|
## Quick Start
|
|
8
10
|
|
|
9
11
|
```bash
|
|
@@ -209,13 +211,13 @@ Then start with `pm2 start ecosystem.config.js`.
|
|
|
209
211
|
Tagged pushes that match `v*.*.*` trigger a cross-platform build and GitHub Release with prebuilt binaries using `@yao-pkg/pkg`.
|
|
210
212
|
|
|
211
213
|
- Workflow: `.github/workflows/release.yml`
|
|
212
|
-
- Builds on: Ubuntu, macOS
|
|
214
|
+
- Builds on: Ubuntu, macOS (Node 20)
|
|
213
215
|
- Output release assets:
|
|
214
216
|
- `oca-proxy-macos-x64.tar.gz`
|
|
215
217
|
- `oca-proxy-macos-arm64.tar.gz`
|
|
216
218
|
- `oca-proxy-linux-x64.tar.gz`
|
|
217
219
|
- `oca-proxy-linux-arm64.tar.gz`
|
|
218
|
-
|
|
220
|
+
|
|
219
221
|
|
|
220
222
|
- How to test builds (Intel and Apple Silicon):
|
|
221
223
|
1. Manually run the workflow without tagging (GitHub → Actions → build-and-release → Run workflow).
|
|
@@ -227,9 +229,8 @@ Tagged pushes that match `v*.*.*` trigger a cross-platform build and GitHub Rele
|
|
|
227
229
|
4. Linux:
|
|
228
230
|
- x64: `chmod +x oca-proxy-linux-x64 && ./oca-proxy-linux-x64 --help`
|
|
229
231
|
- arm64: `chmod +x oca-proxy-linux-arm64 && ./oca-proxy-linux-arm64 --help`
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
6. Optional smoke test: start the server and hit the health endpoint:
|
|
232
|
+
|
|
233
|
+
5. Optional smoke test: start the server and hit the health endpoint:
|
|
233
234
|
- `./oca-proxy-<platform-arch> &`
|
|
234
235
|
- `curl -s http://localhost:8669/health`
|
|
235
236
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oca-proxy",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "OpenAI-compatible proxy for Oracle Code Assist (OCA)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"url": "git+https://github.com/banzalik/oca-proxy.git"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
|
-
"build": "node
|
|
14
|
+
"build": "node scripts/build.js",
|
|
15
15
|
"start": "bin/oca-proxy.js",
|
|
16
16
|
"dev": "tsx src/index.ts",
|
|
17
17
|
"format": "biome format --write .",
|
|
@@ -31,13 +31,16 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@biomejs/biome": "2.3.11",
|
|
33
33
|
"@types/express": "5.0.6",
|
|
34
|
-
"@types/node": "
|
|
34
|
+
"@types/node": "24.0.0",
|
|
35
35
|
"@types/uuid": "11.0.0",
|
|
36
36
|
"esbuild": "0.27.2",
|
|
37
37
|
"tsx": "4.21.0",
|
|
38
38
|
"typescript": "5.9.3",
|
|
39
39
|
"husky": "9.1.7"
|
|
40
40
|
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=24.0.0 <25"
|
|
43
|
+
},
|
|
41
44
|
"publishConfig": {
|
|
42
45
|
"access": "public"
|
|
43
46
|
},
|