UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

49 lines • 1.68 kB
/** * The stream options a brain may send a hand: serializable request shaping only. Never secrets or headers, callbacks, * signals or live objects, or the loop-only `commitStep` (4.3, 2.3 options hygiene). `env` stays hand-local because * some adapters derive the dial target from it: the Cloudflare providers of `anthropic-messages` and `openai-responses` * fill the account and gateway of the model `baseUrl` from it (`resolveCloudflareBaseUrl`), `azure-openai-responses` * reads its base URL or resource name from it, and `bedrock-converse-stream` its HTTP proxy. A brain-supplied `env` * could therefore redirect the hand's dial, with the hand's own credential, to a host of the brain's choosing. `cwd` * stays hand-local because the start message's `cwd` is the one source the hand interprets. */ export const WIRE_STREAM_OPTION_KEYS = [ "abortServerSideFallback", "affinitySessionId", "cacheRetention", "deferred", "extraBody", "maxRetries", "maxRetryDelayMs", "maxTokens", "metadata", "reasoning", "refusalFallbacks", "samplingParams", "serviceTier", "sessionAffinityKey", "sessionId", "streamKind", "temperature", "thinkingBudgets", "thinkingSelection", "timeoutMs", "toolChoice", "transport", "websocketConnectTimeoutMs", ]; export const PROVIDER_CALL_ERROR_CODES = [ "auth", "rate_limited", "unavailable", "aborted", "unknown_provider", "local_only_unsupported", "stale_epoch", "claim_expired", "claim_invalid", "registry_key_unknown", "registry_key_revoked", "definition_mismatch", ]; //# sourceMappingURL=wire.js.map