CyberStrikeAI/internal
root d6b0aed1de feat(headers): 支持为 AI 渠道配置自定义 HTTP 请求头
部分 OpenAI 兼容供应商(如 opencode)要求私有鉴权头或会话头,
而非标准的 Authorization: Bearer,导致无法接入。

- config: OpenAIConfig / AIChannelConfig 新增 headers 字段,
  值支持 ${ENV_VAR}、${ENV_VAR:-default} 与 %session_id% 占位符
- openai: 新增 headersRoundTripper 接入 Eino ChatModel 传输链,
  同名的内置头(Authorization/User-Agent 等)可被覆盖
- openai: 内置 Client 的 4 处出站请求同样注入自定义头
- handler: 任务开始时把对话 ID 注入 ctx,供 %session_id% 替换;
  连接测试没有真实会话,使用探测值 connect-test
- web: 渠道设置页新增“自定义请求头”编辑区(每行 KEY=VALUE)
- 占位符使用 %session_id% 而非 {{session_id}},因为 index.html
  由 Go html/template 渲染,双花括号会被当作模板函数解析
2026-10-30 20:13:56 +08:00
..
agent fix: preserve human intent through planning and restart while keeping legacy edits 2026-10-12 19:34:24 +08:00
agentfinalizer Fix finalization cleanup for pending tool executions 2026-08-23 19:57:17 +08:00
agents Add files via upload 2026-08-18 20:31:48 +08:00
app feat(api): add durable asynchronous conversation runs 2026-10-23 11:45:15 +08:00
attackchain feat: verify attack-chain nodes against real tool calls 2026-10-13 00:10:33 +08:00
audit Add files via upload 2026-08-18 20:36:34 +08:00
authctx Add files via upload 2026-08-18 20:17:38 +08:00
c2 fix: close expired offline commands and serialize TCP dispatch 2026-10-06 03:41:37 +08:00
config feat(headers): 支持为 AI 渠道配置自定义 HTTP 请求头 2026-10-30 20:13:56 +08:00
database feat(api): add durable asynchronous conversation runs 2026-10-23 11:45:15 +08:00
einomcp Add files via upload 2026-08-18 20:36:34 +08:00
einoobserve Add files via upload 2026-08-18 20:36:34 +08:00
handler feat(headers): 支持为 AI 渠道配置自定义 HTTP 请求头 2026-10-30 20:13:56 +08:00
hitl feat: add TypeSafe Jev as HITL audit backend 2026-09-22 21:15:53 +08:00
knowledge feat: reconcile SQLite tables and columns at startup 2026-10-10 20:45:39 +08:00
llm Add files via upload 2026-08-18 20:34:53 +08:00
logger feat: persist diagnostic logs with daily rotation and retention 2026-09-08 14:41:46 +08:00
mcp feat: add vulnerability retest branches with an isolated evidence log 2026-10-10 07:21:20 +08:00
monitor Add files via upload 2026-08-18 20:17:38 +08:00
multiagent fix(openai): preserve provider-specific reasoning disable intent (#366) 2026-10-21 15:43:53 +08:00
openai feat(headers): 支持为 AI 渠道配置自定义 HTTP 请求头 2026-10-30 20:13:56 +08:00
processguard feat: manage task process lifetimes and preserve turn history 2026-09-16 17:52:58 +08:00
project test: make workspace inventory fixtures portable on Windows 2026-10-16 12:09:32 +08:00
projectprompt Merge main and reconcile project resume with checkpoint index limits 2026-10-16 11:15:11 +08:00
reasoning fix(openai): preserve provider-specific reasoning disable intent (#366) 2026-10-21 15:43:53 +08:00
robot Add files via upload 2026-08-18 20:17:38 +08:00
runlease feat: manage task process lifetimes and preserve turn history 2026-09-16 17:52:58 +08:00
security fix(rbac): revoke only affected role sessions 2026-10-10 15:42:42 +08:00
skillpackage Add files via upload 2026-08-18 20:31:48 +08:00
storage feat: add runtime storage cleanup with per-category retention (#310) (#313) 2026-09-25 14:46:23 +08:00
termout fix: startup banner hardcodes 127.0.0.1 regardless of server.host (#307) 2026-09-13 15:27:38 +08:00
toolguard feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
tooloutput Add files via upload 2026-08-18 20:36:34 +08:00
typesafe feat: add TypeSafe Jev as HITL audit backend 2026-09-22 21:15:53 +08:00
update fix: preserve MCP stop state and validate recovery evidence before mutation 2026-10-09 14:12:27 +08:00
vision Add files via upload 2026-08-18 20:36:34 +08:00
workflow fix: snapshot MCP configuration and make tool deadline failures consistent 2026-10-09 10:58:12 +08:00