misc

package
v5.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package misc provides miscellaneous utility functions and embedded data for the CLI Proxy API. This package contains general-purpose helpers and embedded resources that do not fit into more specific domain packages. It includes embedded instructional text for Claude Code-related operations.

Package misc provides miscellaneous utility functions and embedded data for the CLI Proxy API. This package contains general-purpose helpers and embedded resources that do not fit into more specific domain packages. It includes embedded instructional text for Codex-related operations.

Package misc provides miscellaneous utility functions and embedded data for the CLI Proxy API. This package contains general-purpose helpers and embedded resources that do not fit into more specific domain packages. It includes a comprehensive MIME type mapping for file operations.

Index

Constants

This section is empty.

Variables

View Source
var ClaudeCodeInstructions string

ClaudeCodeInstructions holds the content of the claude_code_instructions.txt file, which is embedded into the application binary at compile time. This variable contains specific instructions for Claude Code model interactions and code generation guidance.

View Source
var GPT5CodexInstructions string
View Source
var GPT5Instructions string

CodexInstructions holds the content of the codex_instructions.txt file, which is embedded into the application binary at compile time. This variable contains instructional text used for Codex-related operations and model guidance.

View Source
var MimeTypes = map[string]string{}/* 732 elements not displayed */

MimeTypes is a comprehensive map of file extensions to their corresponding MIME types. This map is used to determine the Content-Type header for file uploads and other operations where the MIME type needs to be identified from a file extension. The list is extensive to cover a wide range of common and uncommon file formats.

Functions

func CodexInstructions

func CodexInstructions(modelName string) string

func GenerateRandomState

func GenerateRandomState() (string, error)

GenerateRandomState generates a cryptographically secure random state parameter for OAuth2 flows to prevent CSRF attacks.

Returns:

  • string: A hexadecimal encoded random state string
  • error: An error if the random generation fails, nil otherwise

func LogCredentialSeparator added in v5.2.1

func LogCredentialSeparator()

LogCredentialSeparator adds a visual separator to group auth/key processing logs.

func LogSavingCredentials added in v5.2.1

func LogSavingCredentials(path string)

LogSavingCredentials emits a consistent log message when persisting auth material.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL