CyberStrikeAI/web/static/js
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
..
agents.js
…
api-docs.js
…
asset-export-language.test.cjs fix: localize asset exports and preserve import compatibility 2026-10-06 02:51:15 +08:00
asset-scan-prompt.test.cjs fix: respect limited scan goals and retain asset completion instructions 2026-10-06 03:26:31 +08:00
assets.js fix: use supported FOFA region return field and preserve asset location 2026-10-16 16:14:39 +08:00
attack-chain-context.js fix: close review findings in context memory, attack chain and blackboard 2026-10-12 23:16:33 +08:00
attack-chain-context.test.cjs fix: close review findings in context memory, attack chain and blackboard 2026-10-12 23:16:33 +08:00
audit-datetime-picker.js feat: add Russian UI locale (#341) 2026-10-05 15:07:54 +08:00
audit-reset.test.cjs fix: validate workflows and preserve execution outcomes 2026-10-06 02:32:32 +08:00
audit.js fix: use floating pagination selects across pages for Chrome compatibility 2026-10-27 23:59:47 +08:00
auth.js Merge remote-tracking branch 'origin/main' into feat/self-update 2026-10-08 13:59:27 +08:00
batch-outcome-display.test.cjs fix: show failed outcomes in finished batch queues 2026-10-06 03:05:25 +08:00
builtin-tools.js
…
c2-listener-form.test.cjs fix: restore listener edit actions and validate required fields 2026-10-06 02:54:27 +08:00
c2-profile-save.test.cjs fix: preserve task terminal state and file navigation paths 2026-10-06 01:48:12 +08:00
c2.js fix: use floating pagination selects across pages for Chrome compatibility 2026-10-27 23:59:47 +08:00
chat-codex-layout.test.cjs feat(ui): 显示 Agent 任务进度列表 (#251) 2026-08-14 10:44:03 +08:00
chat-files.js fix: use floating pagination selects across pages for Chrome compatibility 2026-10-27 23:59:47 +08:00
chat-input-keyboard.test.cjs 优化项目对话、刷新续流、实时滚动与工具状态恢复 (#245) 2026-08-13 21:28:37 +08:00
chat-message-copy.test.cjs Add token usage tracking and UI refinements 2026-08-24 00:05:05 +08:00
chat-plan-progress.js Add files via upload 2026-08-15 01:33:33 +08:00
chat-plan-progress.test.cjs feat(ui): 显示 Agent 任务进度列表 (#251) 2026-08-14 10:44:03 +08:00
chat-scroll-refresh.test.cjs feat: add detailed token usage monitoring and cache write metrics 2026-10-11 22:30:30 +08:00
chat-scroll.js Add files via upload 2026-08-15 01:33:33 +08:00
chat.js fix: use floating pagination selects across pages for Chrome compatibility 2026-10-27 23:59:47 +08:00
conversation-actions-sync.test.cjs Remove conversation grouping feature 2026-08-26 15:00:09 +08:00
dashboard.js style: show only cache hit rate below dashboard token total 2026-10-12 00:00:26 +08:00
eino-usage-summary-ui.test.cjs Add files via upload 2026-08-15 01:33:33 +08:00
fact-graph.js
…
fofa-fields.test.cjs fix: use supported FOFA region return field and preserve asset location 2026-10-16 16:14:39 +08:00
form-validation.test.cjs fix: validate form edits and enforce task result ownership 2026-10-06 02:20:28 +08:00
hitl-approval-ui.test.cjs fix: check HITL reviewer field in canonical database schema 2026-10-12 14:06:29 +08:00
hitl-conversation-isolation.test.cjs fix: preserve rollback binaries during ambiguous recovery and YAML settings 2026-10-09 10:27:17 +08:00
hitl.js fix: use floating pagination selects across pages for Chrome compatibility 2026-10-27 23:59:47 +08:00
i18n.js feat: add Russian UI locale (#341) 2026-10-05 15:07:54 +08:00
info-collect.js fix: use supported FOFA region return field and preserve asset location 2026-10-16 16:14:39 +08:00
iteration-divider-ui.test.cjs 优化项目对话、刷新续流、实时滚动与工具状态恢复 (#245) 2026-08-13 21:28:37 +08:00
knowledge-index-error.test.cjs fix: retain knowledge indexing errors and explain failure causes 2026-10-06 03:02:14 +08:00
knowledge.js fix: retain knowledge indexing errors and explain failure causes 2026-10-06 03:02:14 +08:00
mobile-ui-i18n.test.cjs 增加手机端使用ui的体验和整体优化 (#344) 2026-10-08 10:44:42 +08:00
mobile-ui.js 增加手机端使用ui的体验和整体优化 (#344) 2026-10-08 10:44:42 +08:00
modal.js Remove conversation grouping feature 2026-08-26 15:00:09 +08:00
monitor-blocked-stats.test.cjs feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
monitor.js fix: use floating pagination selects across pages for Chrome compatibility 2026-10-27 23:59:47 +08:00
notification-view-read.test.cjs fix: preserve task terminal state and file navigation paths 2026-10-06 01:48:12 +08:00
notifications.js fix: preserve task terminal state and file navigation paths 2026-10-06 01:48:12 +08:00
pagination-select.test.cjs fix: use floating pagination selects across pages for Chrome compatibility 2026-10-27 23:59:47 +08:00
password-feedback.test.cjs fix: place accessible password visibility toggle inside login input 2026-10-08 11:52:44 +08:00
permission-gate-state.test.cjs feat: update this installation's own source in one action 2026-10-07 12:07:26 +08:00
progress-done-outcome.test.cjs fix: retain cancellation labels after approval interruptions 2026-10-06 03:11:11 +08:00
project-folder-preview.test.cjs fix: use a closed ring for project preview task stats 2026-09-18 17:21:01 +08:00
project-related-facts.test.cjs fix: keep related fact views in place and clarify import outcomes 2026-10-06 02:58:56 +08:00
projects.js fix: use floating pagination selects across pages for Chrome compatibility 2026-10-27 23:59:47 +08:00
rbac-admin-guard.test.cjs fix(rbac): protect built-in administrator from losing access 2026-10-19 16:44:14 +08:00
rbac-guards.js feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
rbac.js fix(rbac): protect built-in administrator from losing access 2026-10-19 16:44:14 +08:00
roles.js fix: use floating pagination selects across pages for Chrome compatibility 2026-10-27 23:59:47 +08:00
router-hash-form.test.cjs feat: update this installation's own source in one action 2026-10-07 12:07:26 +08:00
router.js feat: move token details to settings and show dashboard cache hit rate 2026-10-11 23:51:01 +08:00
sanitize-markdown.js
…
settings-eino-resilience.test.cjs fix: refresh ai channel reasoning selects 2026-08-25 18:51:19 +08:00
settings.js feat(headers): 支持为 AI 渠道配置自定义 HTTP 请求头 2026-10-30 20:13:56 +08:00
skill-description-save.test.cjs fix: mask stored credentials and validate agent saves 2026-10-06 02:04:14 +08:00
skills.js fix: use floating pagination selects across pages for Chrome compatibility 2026-10-27 23:59:47 +08:00
storage.js feat: add runtime storage cleanup with per-category retention (#310) (#313) 2026-09-25 14:46:23 +08:00
tasks.js fix: use floating pagination selects across pages for Chrome compatibility 2026-10-27 23:59:47 +08:00
terminal.js
…
theme.js
…
token-usage-analysis.test.cjs feat: refine token analytics with interactive trends and cache breakdown 2026-10-12 00:10:37 +08:00
token-usage.js feat: refine token analytics with interactive trends and cache breakdown 2026-10-12 00:10:37 +08:00
tool-blocked-display.test.cjs feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
tool-guard.js fix: reject stale concurrent interception rule saves 2026-10-10 17:18:13 +08:00
tool-guard.test.cjs fix: reject stale concurrent interception rule saves 2026-10-10 17:18:13 +08:00
tool-result-args-backfill.test.cjs Fix missing results for parallel Eino tool calls. 2026-08-19 00:29:12 +08:00
turn-duration-refresh.test.cjs feat: add detailed token usage monitoring and cache write metrics 2026-10-11 22:30:30 +08:00
update-ui.test.cjs feat: move token details to settings and show dashboard cache hit rate 2026-10-11 23:51:01 +08:00
update.js fix: serialize installation updates and recover interrupted adoption and rollback 2026-10-09 10:58:12 +08:00
vulnerability-create.test.cjs fix(vulnerability): allow standalone manual findings and validate links 2026-10-10 16:03:42 +08:00
vulnerability-retest.test.cjs feat: add vulnerability retest branches with an isolated evidence log 2026-10-10 07:21:20 +08:00
vulnerability.js fix: use floating pagination selects across pages for Chrome compatibility 2026-10-27 23:59:47 +08:00
webshell-file-path.test.cjs fix: preserve task terminal state and file navigation paths 2026-10-06 01:48:12 +08:00
webshell.js feat: add detailed token usage monitoring and cache write metrics 2026-10-11 22:30:30 +08:00
wechat-robot.js
…
workflow-package-client.js
…
workflow-package-client.test.cjs
…
workflow-package-ui.test.cjs fix: keep related fact views in place and clarify import outcomes 2026-10-06 02:58:56 +08:00
workflow-save.test.cjs fix(workflows): resume saving after metadata confirmation (#345) 2026-10-08 11:08:46 +08:00
workflow-validity.test.cjs fix: validate workflows and preserve execution outcomes 2026-10-06 02:32:32 +08:00
workflows.js fix(workflows): resume saving after metadata confirmation (#345) 2026-10-08 11:08:46 +08:00