revert: rollback Phase 1 and OAuth fix — broke plan usage functionality

Reverts b5be1c0 and 1f1b387. These changes broke the OAuth token
authentication for fetching plan usage data from Anthropic API,
causing /ocp usage to show 0% with "unknown" reset times.

Root cause: code changes inadvertently altered the fetchUsageFromApi
flow, breaking the existing working OAuth x-api-key authentication.

This restores server.mjs to the last known working state (f6f4f68).
Phase 1 modular files removed — will be re-implemented in a separate
branch with proper isolation testing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-25 18:16:04 +10:00
co-authored by Claude Opus 4.6
parent b5be1c04f4
commit 77a6f8ed59
10 changed files with 12 additions and 1682 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "openclaw-claude-proxy",
"version": "3.0.1",
"version": "3.0.0",
"description": "OpenAI-compatible proxy for Claude CLI — plan usage monitoring, runtime settings, prompt truncation, OCP CLI",
"type": "module",
"bin": {
@@ -24,6 +24,6 @@
},
"repository": {
"type": "git",
"url": "https://github.com/dtzp555-max/ocp"
"url": "https://github.com/dtzp555-max/openclaw-claude-proxy"
}
}