1caf96e694
fix: harden assistant SQLite/PostgreSQL dual-backend (singleton, timeouts, warnings)
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 10:24:23 +08:00
1490bd5f24
feat: unify runtime logging (rotating files, log root, scripts, desktop)
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 10:11:51 +08:00
86d4bad107
docs: add assistant PostgreSQL migration guide and link from README
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 09:42:08 +08:00
d14e9d3596
feat(persistence): PostgreSQL assistant store, chat persist fixes, gateway scripts
...
- Add SQLAlchemy Core repos, pg adapter/compat, assistant_store factory, Alembic bootstrap and migration/cutover scripts.
- Harden chat_message writes (NUL scrub for PG), turn_uuid on attempt failure, WS turn_runner fallbacks and gateway executed_turn_uuid init.
- start_gateway: log paths, PS7 stderr handling via cmd, background stdout/stderr redirect; runtime assistant_runtime_log_dir export.
- Ops: clear_all_chat_sessions with PG-only --postgresql and env-gated wipe; clear_postgres_chat_sessions.ps1.
- Tests: SA repos, pg compat, persist fallback, smoke env isolation; CI and docs touch-ups.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 09:33:50 +08:00
48190afbc1
docs: document AIA_TOOL_FUNCTION_STRICT and add env example
...
Add ENVIRONMENT_VARIABLES entry, changelog note, and _local/system.env.example placeholder for OpenAI-style tools function.strict toggling.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-13 15:09:17 +08:00
274a9b8ddd
feat(mcp): pass all mcp_local.env keys to subprocess; allowlist supplements host-only
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-12 18:51:07 +08:00
48d5e468e6
feat(mcp): allowlist EXTRA merges with default; add Trilium keys to default
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-12 17:39:14 +08:00
1c90a3570e
Add netx UME NE inventory tools for ops
...
Expose netx_query_ume_ne_inventory and netx_get_ume_ne (GET /v1/ume/inventory/ne and /ne/{id}). Update ops playbook, ROLE_SYSTEM, env example comment, and unit tests.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-11 17:24:57 +08:00
396dba76ea
feat(chat): image specialist session image fallback and WS UX
...
- Resolve legacy multimodal inputs from session history when the user sends
text-only (assistant images first, then user uploads); optional env toggles.
- Support relay_pointer image resolution in legacy lane collector.
- Align uvicorn WebSocket frame limit with MAX_PAYLOAD_BYTES; document
OCLAW_UVICORN_WS_MAX_SIZE and compatible-mode env knobs.
- Admin chat: encode attachments after bubble preview; FileReader-based
base64 for large files.
- Tests and docs for new behavior.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-10 11:25:21 +08:00
faeb067856
feat(chat): image specialist legacy lane, Responses fixes, ACL + UI attachments
...
- Image expert: DashScope-style /chat/completions via image_legacy_client; early exit in
direct_loop when skill_binding_role is image; shared placeholder helper; docs/IMAGE_SPECIALIST_LANE.md.
- Strict attachment ACL: link_attachment_acl on assistant chat_message rows (sqlite_store);
chat attachment rate limit when user_id empty; admin chat tests updated.
- Admin chat UI: aggregate bubbles render assistant_text attachments (image_ref); WS expand path.
- turn_runner: persisted_chat_attachments_nonempty for final_msg selection.
- OpenAI Responses transport + agent_messages/agent_core_attempt adjustments; env docs and tests.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-10 07:06:05 +08:00
d1bcc4debe
feat: multimodal image clients, workspaces, Tushare skill, test fixes
...
- Replace monolithic image_message_client with HTTP/OCR/legacy modules; tighten OpenAI transport + tool schemas for multimodal downgrade to OCR specialist path.
- Add image/stock workspace prompts (META/SOUL/ROLE_SYSTEM); register experts; tweak specialist agent/direct loop/query_image_attachment.
- Add bundled runtime/skills/tushare-finance (references, api_client, SKILL metadata).
- Document OCR-related env vars; admin chat tweaks; README; weixin_install Ensure-OfficialPluginRuntimeDeps helper.
- Tests: multimodal downgrade + OCR coverage, strict tool pairing in attachment replay guard, workspace contract skips _internal/_system dirs, router/trace/prompt guards.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-10 04:41:42 +08:00
61d2b87a30
fix(auth): provide bootstrap default admin password when unset
...
Fallback to a default bootstrap password for first login when env and stored secrets are empty, and document the behavior in system.env.example.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-06 17:38:18 +08:00
b0e0c05d8a
feat: integrate netx ops data access and unify prompt/workspace runtime
...
Migrate prompt templates into runtime workspaces, add network_ops netx toolchain (latest batch injection, raw fields, SQL query), and align docs/tests/admin/runtime wiring so ops analysis can query netx detail data through stable role-scoped paths.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-03 23:54:38 +08:00
37522f492a
feat: plan agent v2, global chat mode, and user-mode v2 flag sync
...
- Add runtime/plan_agent_v2 package and shims; gateway/direct_loop/WS wiring
- Admin chat: interaction mode and specialist only in user menu; session API stores memory_mode and execution_mode only
- POST /admin/api/chat/user-mode mirrors plan_agent_version to AIA_EXPERT_PLAN_AGENT_V2_ENABLED (v2 to 1, v1 to 0)
- Composer cleanup (hidden mode select, no reasoning toggle in meta bar); tests and _local/system.env.example
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-02 18:41:45 +08:00