Commit Graph
92 Commits
Author SHA1 Message Date
Sycun 67683f4266 merge: preserve personal assessment and model profile work in Pi migration 2026-11-11 09:22:23 +08:00
Sycun 43b5ac2da5 feat(runtime): introduce Pi agents and native workflow and retrieval engines 2026-11-11 09:19:14 +08:00
Sycun f895a33eb1 merge: integrate local model profiles with personal gateway headers 2026-11-03 10:17:34 +08:00
Sycun 1ac81fe217 merge: integrate HTTP proxy settings into personal main 2026-11-03 10:13:15 +08:00
Ed1s0nZ 195540b619 fix(headers): mask private names and stabilize empty audit configuration 2026-11-02 17:22:52 +08:00
Ed1s0nZ 5feea8d3c3 fix(headers): isolate credentials across audit, redirects and probes 2026-11-02 17:18:12 +08:00
Sycun cc37959e14 feat(proxy): add stable HTTP egress settings isolated from tools and models 2026-11-01 00:03:51 +08:00
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
lgq 0a6dc6f872 fix: use floating pagination selects across pages for Chrome compatibility 2026-10-27 23:59:47 +08:00
Sycun 8b74b33eee fix(ai): harden local context detection and budget previews
- Surface llama.cpp parallel slots via context_slots and a warning instead of treating n_ctx as the per-request window
- Pass max_completion_tokens into detection previews and warn when the output cap is clamped
- Clamp the effective budget to the window and use the assumed local window when clamping output
- Overwrite a stale window on explicit auto-detect so the preview matches the saved value
- Keep the budget-warning test repeatable and document failover/budget semantics
2026-10-21 09:47:03 +08:00
Sycun 3964f325bd feat(web): surface context window detection in AI channel settings 2026-10-21 00:13:01 +08:00
Sycun 4eda42dc10 feat: move token details to settings and show dashboard cache hit rate 2026-10-11 23:51:01 +08:00
Sycun cbd8073beb feat: move the one-click update into the system settings menu
The update console stops being a page of its own and becomes the last section
of 系统设置 (data-section="update", gated by update:read): the sidebar entry
and page-system-update are gone, the console markup lives in
settings-section-update, and the settings menu is where an operator now finds
it. #system-update keeps working as an alias - both hash parsers normalize it
to settings + the update section - so existing deep links and docs keep landing.

Polling follows the new home: leaving the settings page (router) or switching
to another section (settings.js) stops it, selecting the section loads the
console, and returning to the settings page with the section still selected
re-reads the install tree and re-arms the poller (a frozen progress read is
the "nothing is happening" picture an operator must never be shown).

The guard suite follows the move: the old nav/page assertions become "must not
exist", the new ones pin the section, the alias, the poller handoff and the
retired nav.systemUpdate key (settings.nav.update replaces it in zh/EN/RU).
README and both developer/deployment guides say 系统设置 → 一键更新.
2026-10-07 22:52:56 +08:00
Ed1s0nZ 05d7d9ec65 fix: explain password validation errors and support login preview 2026-10-06 02:49:17 +08:00
Ed1s0nZ 76da98944c fix: mask stored credentials and validate agent saves 2026-10-06 02:04:14 +08:00
SycunandParallels 470eb5ead1 feat: add runtime storage cleanup with per-category retention (#310) (#313)
Runtime artifacts (agent workspaces, tool-output spill, C2 payloads, chat
uploads, workflow checkpoints, diagnostic logs) previously accumulated
without bound: most were only removed when a conversation or project was
deleted, and tmp/c2 plus workflow checkpoints were never removed at all.

Add a storage cleaner with named per-category tasks (Gitea-style), a
settings page tab, and a background sweep that is off by default so
upgrading never deletes existing data.

Safety properties, since mis-deleting live task data costs far more than
the disk saved:
- dry-run is the default; a real cleanup requires dry_run=false together
  with confirm=true at the API layer, not just a frontend dialog
- sessions active within active_grace_hours are always skipped, and a
  failed activity lookup skips conservatively (fail closed)
- directories whose conversation/project no longer exists are reclaimed
  as orphans after orphan_grace_days
- scanners never follow symlinks and every candidate path is confined to
  its category root; deletion renames to a .tmp-for-deletion marker first
  so a crash leaves recoverable residue instead of a half-deleted dir
- storage:* permissions are admin-only; without the grantSystemRolePermissions
  skip the default branch would have given operators an irreversible
  file-deletion right

Also fix two confirmed leaks: DeleteConversation left chat_uploads files
on disk (their rows already vanished via ON DELETE CASCADE), and workflow
checkpoints had no deletion path at all.

Co-authored-by: Parallels <parallels@kali-linux-2025-2.localdomain>
2026-09-25 14:46:23 +08:00
Ed1s0nZandCursor 38b96ec67a feat: add TypeSafe Jev as HITL audit backend
Let audit_agent approve or reject with one System One call instead of chat JSON, while keeping the OpenAI-compatible backend as an option.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-22 21:15:53 +08:00
temp fbbe984005 fix: refresh ai channel reasoning selects 2026-08-25 18:51:19 +08:00
temp abc00c1fef fix: auto-detect deepseek profile in settings 2026-08-25 18:40:49 +08:00
公明 e691c5d9c6 Add files via upload 2026-08-15 01:33:33 +08:00
公明 d3714c9913 Add files via upload 2026-08-06 17:12:21 +08:00
公明 cc0233d7b4 Add files via upload 2026-07-24 17:05:44 +08:00
公明 c326adbb66 Add files via upload 2026-07-24 14:53:44 +08:00
公明 7d1e9bdac4 Add files via upload 2026-07-24 14:08:19 +08:00
公明 151b445c74 Add files via upload 2026-07-24 11:44:35 +08:00
公明 f0b1955059 Add files via upload 2026-07-23 20:18:55 +08:00
公明 a83490f29c Add files via upload 2026-07-23 18:56:18 +08:00
公明 fa9229b435 Add files via upload 2026-07-21 20:42:43 +08:00
公明 c689122774 Add files via upload 2026-07-20 16:49:19 +08:00
公明 9f092388e1 Add files via upload 2026-07-17 16:51:35 +08:00
公明 68e3ead4d7 Add files via upload 2026-07-13 18:56:52 +08:00
公明 1abfd3d22a Add files via upload 2026-07-10 21:19:55 +08:00
公明 823fb47a81 Add files via upload 2026-07-10 19:46:14 +08:00
公明 04efc50161 Add files via upload 2026-07-10 16:37:14 +08:00
公明 f68d69d562 Add files via upload 2026-07-09 14:30:44 +08:00
公明 69e8d7020c Add files via upload 2026-07-09 11:26:31 +08:00
公明 84cbaa57dc Add files via upload 2026-07-07 11:31:38 +08:00
公明 404feb372e Add files via upload 2026-07-06 17:00:03 +08:00
公明 ecc75ee326 Add files via upload 2026-07-06 13:55:51 +08:00
公明 7b8b57907b Add files via upload 2026-07-06 11:31:13 +08:00
公明 a110d233e1 Add files via upload 2026-07-02 11:49:03 +08:00
公明 b7fa18b6d4 Add files via upload 2026-06-18 23:44:04 +08:00
公明 01b3d8056c Add files via upload 2026-06-18 21:09:00 +08:00
公明 25ce0b221f Add files via upload 2026-06-14 21:07:51 +08:00
公明 83e1c707ca Add files via upload 2026-06-12 22:04:57 +08:00
公明 bf0ce33e3f Add files via upload 2026-06-12 19:36:45 +08:00
公明 9e0525abc1 Add files via upload 2026-06-09 20:44:41 +08:00
公明 679a8192ae Add files via upload 2026-06-04 13:34:26 +08:00
公明 3a401ade68 Add files via upload 2026-06-03 17:08:59 +08:00
公明 b8b1e8431b Add files via upload 2026-06-02 13:34:12 +08:00