@holin-work/holin-cli 1.3.9 → 1.4.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.
Files changed (2) hide show
  1. package/bin/holin-cli.js +6 -2
  2. package/package.json +1 -1
package/bin/holin-cli.js CHANGED
@@ -269,14 +269,18 @@ function createProxyServer() {
269
269
  }
270
270
 
271
271
  // Build upstream request based on path
272
- // /mcp → https://api.holin.work/icbu/mcp (MCP protocol)
273
- // /api/* → https://api.holin.work/api/* (platform API, e.g. file upload)
272
+ // /mcp → https://api.holin.work/icbu/mcp (MCP protocol, holin-listing)
273
+ // /api/upload/* → https://api.holin.work/icbu/api/upload/* (file upload, holin-listing)
274
+ // /api/* → https://api.holin.work/api/* (platform API, holin-platform)
274
275
  const upstreamBase = "https://api.holin.work";
275
276
  let upstreamPath;
276
277
  let isMcpRequest = false;
277
278
  if (req.url.startsWith("/mcp")) {
278
279
  upstreamPath = "/icbu/mcp";
279
280
  isMcpRequest = true;
281
+ } else if (req.url.startsWith("/api/upload/")) {
282
+ // File upload APIs live in holin-listing (behind /icbu/ nginx prefix)
283
+ upstreamPath = "/icbu" + req.url;
280
284
  } else if (req.url.startsWith("/api/")) {
281
285
  upstreamPath = req.url;
282
286
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holin-work/holin-cli",
3
- "version": "1.3.9",
3
+ "version": "1.4.0",
4
4
  "description": "Holin CLI — Accio plugin authorization tool for ICBU batch listing",
5
5
  "type": "module",
6
6
  "bin": {