Source code out of sync: Port 3000 Docker conflict fixes missing from GitHub repo
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 812
- Forks
- 175
- Avg merge
- 2m
- Merged PRs (30d)
- 3
Description
Summary
The published npm package (agentic-flow@2.0.1-alpha.5) contains important bug fixes that are not reflected in the GitHub source code. This makes it difficult for contributors to understand the current codebase or submit PRs.
Bug That Was Fixed (in npm, not in GitHub source)
Problem: When using npx agentic-flow --agent coder --task "..." with OpenRouter or other proxy providers, the agent returns empty responses.
Root Cause: Docker Desktop commonly runs a service on port 3000, which intercepts proxy traffic before it reaches the agentic-flow proxy server. The hardcoded default port of 3000 caused all proxy requests to fail silently.
Fixes Present in npm Package (v2.0.1-alpha.5)
1. dist/cli-proxy.js (line ~50)
// OLD (hardcoded):
proxyPort = 3000;
// NEW (fixed):
proxyPort = parseInt(process.env.PROXY_PORT || '3001');
2. dist/agents/claudeAgentDirect.js - Fallback URLs
// OLD:
baseURL: process.env.OPENROUTER_PROXY_URL || 'http://localhost:3000'
// NEW:
baseURL: process.env.OPENROUTER_PROXY_URL || `http://localhost:${process.env.PROXY_PORT || '3001'}`
3. dist/agents/claudeAgentDirect.js - ANTHROPIC_BASE_URL passthrough
// NEW (added):
const baseURL = process.env.ANTHROPIC_BASE_URL;
return {
model: envModel || 'claude-sonnet-4-5-20250929',
apiKey,
baseURL, // Use proxy URL if ANTHROPIC_BASE_URL is set
};
Request
Please sync the GitHub TypeScript source files with the published npm package so that:
- Contributors can see the actual current code
- Future PRs can be based on the correct source
- The build process is reproducible
Affected Files (TypeScript source needed)
src/cli-proxy.ts- proxyPort default changesrc/agents/claudeAgentDirect.ts- fallback URLs + ANTHROPIC_BASE_URL
Environment
- npm package version: 2.0.1-alpha.5
- Node.js: 18+
- Issue discovered on: macOS with Docker Desktop running on port 3000
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/cli-proxy.ts and src/agents/claudeAgentDirect.ts, then compare them with the published dist files in agentic-flow@2.0.1-alpha.5. Reproduce or inspect the build and verify that the TypeScript sources include the documented proxy-port, fallback URL, and ANTHROPIC_BASE_URL changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, nodejs, typescript
- Domain
- backend, cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100