From ae4a829904a1c07a40a1290f9adb541c9fd780d7 Mon Sep 17 00:00:00 2001 From: dtzp555-max Date: Tue, 5 May 2026 09:44:12 +1000 Subject: [PATCH] chore(naming): rename package + code refs from openclaw-claude-proxy to OCP (#57) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The npm name `ocp` is squatted (deprecated `node-ocp` v0.0.1), so the package name is renamed to `open-claude-proxy` (verified via `npm view open-claude-proxy` → 404, confirming availability). ### Changes - `package.json`: - `"name"`: `openclaw-claude-proxy` → `open-claude-proxy` - `"bin"` map UNCHANGED: both `openclaw-claude-proxy` and `ocp` binaries still resolve, preserving back-compat for existing installs that reference `openclaw-claude-proxy` as a CLI command. - `setup.mjs`: header JSDoc + start.sh banner string - `uninstall.mjs`: header JSDoc ### Intentionally NOT changed - `server.mjs` startup banner (line 1628): `console.log('openclaw-claude-proxy v...')`. Editing `server.mjs` requires `cli.js:NNNN` citation per ALIGNMENT.md Rule 1, and a cosmetic log-string rename has no `cli.js` correspondence. Deferred — would need an ALIGNMENT.md scope justification PR if pursued. - `bin/openclaw-claude-proxy` symlink/path: existing installs depend on this name; kept as a back-compat alias. ### Evidence ``` $ npm view ocp ocp@0.0.1 | DEPRECATED — squatted by node-ocp $ npm view open-claude-proxy 404 — available ``` Refs: audit (naming consistency). Co-authored-by: dtzp555 --- package.json | 2 +- setup.mjs | 4 ++-- uninstall.mjs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 981396c..877a90c 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "openclaw-claude-proxy", + "name": "open-claude-proxy", "version": "3.12.0", "description": "OCP (Open Claude Proxy) — use your Claude Pro/Max subscription as an OpenAI-compatible API for any IDE. Works with Cline, OpenCode, Aider, Continue.dev, OpenClaw, and more.", "type": "module", diff --git a/setup.mjs b/setup.mjs index 488bc98..d3e0a19 100755 --- a/setup.mjs +++ b/setup.mjs @@ -1,6 +1,6 @@ #!/usr/bin/env node /** - * openclaw-claude-proxy setup + * OCP (Open Claude Proxy) setup * * Automatically configures OpenClaw to use Claude CLI as a model provider. * Run: node setup.mjs [--port 3456] [--default-model opus|sonnet|haiku] [--dry-run] @@ -217,7 +217,7 @@ const logDir = join(OPENCLAW_DIR, "logs"); if (!existsSync(logDir)) mkdirSync(logDir, { recursive: true }); const startSh = `#!/bin/bash -# Start openclaw-claude-proxy if not already running +# Start OCP (Open Claude Proxy) if not already running PORT=\${CLAUDE_PROXY_PORT:-${PORT}} if ! lsof -i :\$PORT -sTCP:LISTEN &>/dev/null; then unset CLAUDECODE diff --git a/uninstall.mjs b/uninstall.mjs index cdb814b..7ff33aa 100644 --- a/uninstall.mjs +++ b/uninstall.mjs @@ -1,6 +1,6 @@ #!/usr/bin/env node /** - * openclaw-claude-proxy uninstaller + * OCP (Open Claude Proxy) uninstaller * * Stops and removes the launchd (macOS) or systemd (Linux) auto-start entry. * Handles both legacy (ai.openclaw.proxy / openclaw-proxy) and current