{"modulePath":"github.com/enowdev/antares","version":"v0.8.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpshim\n\nPackage httpshim makes ordinary \\`curl\\` and \\`wget\\` invocations in the agent's terminal go through the browser-fingerprinted HTTP stack, so a command the model reaches for out of habit still passes bot-detection.\n\nIt works by placing small shim scripts named curl and wget on the shell's PATH. Each shim re-invokes the Antares binary as \\`antares \\_httpshim curl …\\`, which parses the common flags and performs the request with httpcloak. Any invocation the shim does not fully understand — an upload, a unix socket, a non-HTTP URL — is handed to the real curl/wget untouched, so nothing that worked before breaks.\n\n## Variables\n\n```go\nvar Tools = []string{\"curl\", \"wget\"}\n```\nTools are the commands the shim stands in for.\n\n## Functions\n\n```go\nfunc Install() (string, error)\n```\nInstall writes the shim scripts and returns the directory to prepend to PATH. It is a no-op error on Windows, where the local shell is PowerShell and the PATH-shim trick does not apply cleanly.\n\n```go\nfunc Run(tool string, args []string) int\n```\nRun dispatches an intercepted invocation. It is the entry point for the \\`antares \\_httpshim \\\u003ctool\u003e \\\u003cargs…\u003e\\` subcommand and returns a process exit code.\n\n","path":"github.com/enowdev/antares/internal/httpshim","name":"httpshim","synopsis":"Package httpshim makes ordinary `curl` and `wget` invocations in the agent's terminal go through the browser-fingerprinted HTTP stack, so a command the model reaches for out of habit still passes bot-detection.","isRedistributable":true}
