Unofficial complete specification for implementing a proxy that handles Claude Code's OAuth authentication flow and API requests. Captured from Claude Code CLI v2.1.77 on 2026-03-17.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/packages/http-api/src/handlers/accounts.ts b/packages/http-api/src/handlers/accounts.ts | |
| index d954345..8ef3284 100644 | |
| --- a/packages/http-api/src/handlers/accounts.ts | |
| +++ b/packages/http-api/src/handlers/accounts.ts | |
| @@ -163,22 +163,17 @@ export function createAccountsListHandler(dbOps: DatabaseOperations) { | |
| // Use unified rate limit status if available | |
| if (account.rate_limit_status) { | |
| rateLimitStatus = account.rate_limit_status; | |
| - if (account.rate_limit_reset && account.rate_limit_reset > now) { | |
| - const minutesLeft = Math.ceil( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Unified devcontainer post-create script | |
| # Idempotent, atomic, architecture-aware | |
| # Each step is independent — failures are logged but never abort the script. | |
| set -uo pipefail | |
| ############################################################################### | |
| # CRLF self-heal — Windows git checkout can inject \r into shell scripts | |
| ############################################################################### | |
| if head -1 "$0" | grep -q $'\r'; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/apps/server/src/server.ts b/apps/server/src/server.ts | |
| index d502e19..f11b791 100644 | |
| --- a/apps/server/src/server.ts | |
| +++ b/apps/server/src/server.ts | |
| @@ -510,12 +510,14 @@ export default async function startServer(options?: { | |
| runtime.port = port; | |
| } | |
| DatabaseFactory.initialize(undefined, runtime); | |
| - const dbOps = DatabaseFactory.getInstance(); | |
| + const dbOps = await DatabaseFactory.getInstanceAsync(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openapi: 3.1.0 | |
| info: | |
| title: Pexels API | |
| version: "2026-03-08" | |
| summary: Unofficial OpenAPI 3.1 specification generated from the current Pexels documentation. | |
| description: |- | |
| This OpenAPI document was generated from the current public Pexels API documentation. | |
| Notes: | |
| - Authentication is via the `Authorization` header with a Pexels API key. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # devcontainer-tmux — Start or attach a tmux session inside a running devcontainer | |
| # Usage: devcontainer-tmux <org>/<repo> [session-suffix] [--repo-root PATH] | |
| # | |
| # Examples: | |
| # devcontainer-tmux troykelly/openclaw-projects | |
| # devcontainer-tmux troykelly/openclaw-projects 002 | |
| # devcontainer-tmux troykelly/openclaw-projects fix-tests --repo-root ~/github | |
| # | |
| # Behaviour: |
🚨 Critical Fix for Kernel 6.12 FUSE Regression
This script fixes a severe regression in Linux kernel 6.12 (shipped with Debian 13) that causes FUSE filesystems to deadlock and completely kill networking, rendering the entire system unusable.
- Kernel 6.12 introduced a regression in the FUSE (Filesystem in Userspace) subsystem
Author: Troy Kelly
Date: 27th February 2025
This Python script verifies that a load balancer (LB) cluster is functioning properly by:
- Resolving DNS for:
- HTTP via A/AAAA records
- HTTPS via SVCB/HTTPS records if present, else falling back to A/AAAA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- /home/vscode/.local/lib/python3.11/site-packages/octodns_cloudflare/__init__.py 2025-01-28 23:37:03.687375946 +0000 | |
| +++ /workspaces/dns/temp-cloudflare-patch/__init__.py 2025-01-28 23:40:24.543880502 +0000 | |
| @@ -1072,33 +1072,87 @@ | |
| self._try_request('DELETE', path) | |
| def _apply_Delete(self, change): | |
| + """ | |
| + Delete an existing record (DNS record or Pagerule) in Cloudflare. | |
| + | |
| + Raises CloudflareError if critical data (e.g., zone_id, record id) is missing, |
Author: Troy Kelly
NewerOlder