Commit Graph

354 Commits

Author SHA1 Message Date
Georg Bauer
c4a032346c Feature/python api image discovery (#34)
* Expose chat.analyzeMediaImage in Python API for batch image metadata generation

* Fix updateMedia losing linkedPostIds by reading existing sidecar before overwriting

* Also preserve author from sidecar when DB value is null (data drift)

* Extend MetadataDiffEngine to cover media, scripts, and templates

* Redesign MetadataDiffPanel: item-first view with field pills, filtering, and per-item multi-field diffs

* Fix task:progress startsWith crash (taskId not id) and nested button violation in field pills

* Populate field diffs for file-missing items and show fileMissing badge in UI

* feat: extended meta diff

* feat: meta diff als reconstructs orphans

* chore: updated documentation

---------

Co-authored-by: hugo <hugoms@me.com>
2026-03-04 22:37:43 +01:00
Georg Bauer
08ef72a802 fix: unified handling of editor reloading (#32)
Co-authored-by: hugo <hugoms@me.com>
2026-03-04 09:28:20 +01:00
Georg Bauer
32b66e1677 Feat/language detection (#31)
* feat: implementation of language detection

* run utility scripts in tasks

* fix: addiitonal fixes for background utilities

* feat: toast() also for utility scripts

---------

Co-authored-by: hugo <hugoms@me.com>
2026-03-03 14:36:15 +01:00
Georg Bauer
5747925503 Feature/lmstudio provider (#30)
* chore: just a plan update

* Add LM Studio as local AI provider (OpenAI-compatible, like Ollama)

* Convert WebP thumbnails to JPEG before image analysis for LM Studio compatibility

* Strengthen language enforcement in image analysis prompt for local models

* Use i18n localized prompts for image analysis instead of English instructions

* Add airplane mode (Flugmodus) with status bar toggle and offline model preferences

* Fix flightmode: persist model IDs, skip network when offline, airplane icon

* Auto-fallback to offline models in airplane mode for chat, title, and image analysis

* Auto-select first local model as offline fallback when no explicit offline model configured

* Block git fetch/pull/push and site upload in airplane mode

* fix: thumbnails optimized for AI

* fix: error handling in airplane mode

---------

Co-authored-by: hugo <hugoms@me.com>
2026-03-02 13:35:42 +01:00
6a0dbb6511 refactor: switch mindmap layout from d3-hierarchy to dagre with word wrapping 2026-03-01 22:29:49 +01:00
78aa59e0a3 fix: center and balance mindmap layout with left/right splitting 2026-03-01 22:15:08 +01:00
71d05a0fa5 feat: add render_mindmap a2ui tool with d3-hierarchy layout 2026-03-01 22:09:17 +01:00
9fdbccc687 feat: ollama support 2026-03-01 21:31:33 +01:00
db84129a17 feat: add count_posts aggregation tool to AI SDK and MCP server 2026-03-01 20:46:44 +01:00
3074fe461c fix: some fixes for mcp server and ai tools 2026-03-01 20:40:36 +01:00
a508981400 Block external images in chat markdown renderer (CSP compliance) 2026-03-01 20:10:25 +01:00
834d3524e1 Phase 3: delete OpenCodeManager + streaming, dedup MCPServer tools (-6,359 lines) 2026-03-01 20:03:59 +01:00
b2854cee34 Phase 2: providers + chat + tasks + IPC rewire 2026-03-01 19:56:39 +01:00
1c74e9807d Phase 1: shared blog-tools + a2ui-tools with AI SDK tool(), MCPServer dedup 2026-03-01 19:26:37 +01:00
fe394a02b8 Phase 0: validate AI SDK v6 with Zen gateway — 31 tests, all green 2026-03-01 19:08:48 +01:00
7cc50e35ee feat: some better helps for AI assistants 2026-03-01 17:29:45 +01:00
63674266f5 fix: better models.dev support 2026-03-01 17:03:50 +01:00
e2c46e94aa fix: second round of fixes 2026-03-01 15:24:15 +01:00
202ea1b7cc fix: first round of fixes of implementation 2026-03-01 15:11:33 +01:00
c911ec2354 feat: add Mistral AI as first-class alternative provider 2026-03-01 14:41:42 +01:00
1dd520f770 feat: integration of models.dev and proper handling of outpout tokens 2026-03-01 14:04:23 +01:00
4bd7e6cd99 fix: rollback in-memory key on store failure, add corrupted-data and rollback tests 2026-03-01 13:20:16 +01:00
226c9193d6 fix: isolate cleanup from key retrieval, add deleteSetting test 2026-03-01 13:14:15 +01:00
089ed70a62 fix: eliminate non-null assertions, fix broken test, add error-path coverage 2026-03-01 13:07:50 +01:00
0618c7c532 feat: migrate API key storage to Electron safeStorage (OS keychain)
- Add SecureKeyStore class using safeStorage encrypt/decrypt with base64 in SQLite
- Update chatHandlers to store/retrieve API keys via SecureKeyStore
- Delete old plain-text opencode_api_key on startup (no migration, re-enter key)
- Add deleteSetting() to ChatEngine
- Add 14 SecureKeyStore unit tests and 6 chatHandlers keychain integration tests
- Update existing chatHandlers test mocks for SecureKeyStore
- Update MISTRAL_PLAN.md: mark PR 1 done, remove legacy fallback from PR 2 scope
2026-03-01 12:36:35 +01:00
2ddaad422f fix: thinking signature capture, abort-aware retry delay, usage tracking 2026-03-01 12:13:14 +01:00
72410b2973 fix: thinking block support, roundText preservation, abort listener leak, typo 2026-03-01 12:02:57 +01:00
90f541cc84 fix: iterator cleanup, abort listener leak, token guard, tool parse errors 2026-03-01 11:51:36 +01:00
bae229a9a2 fix: scope retry to connection only, prevent onDelta double-emission 2026-03-01 11:42:07 +01:00
2dec5592c9 fix: SSE streaming review fixes round 2 2026-03-01 10:54:02 +01:00
781cedade5 fix: SSE streaming review fixes
- Fix OpenAI path using accumulatedText instead of round-specific text
  in assistant messages for multi-round tool conversations
- Guard JSON.parse in both SSE parsers against corrupted events
- Extract cacheReadTokens from OpenAI prompt_tokens_details when available
- Add tests for JSON parse resilience and cache token extraction (7 new tests)
2026-03-01 10:25:54 +01:00
78c2cb7bb7 feat: SSE streaming for chat providers 2026-03-01 10:10:54 +01:00
61bca755e0 feat: posts also get structured forward links 2026-03-01 08:24:24 +01:00
cabb1536c3 feat: agents get access to backlinks 2026-03-01 08:12:38 +01:00
24ca2d3317 feat: moved big css block out of pages into external css file 2026-03-01 07:43:46 +01:00
4c21b624f2 feat: backlinks on single posts 2026-03-01 07:26:49 +01:00
289535021a fix: slugify transliterates now much better 2026-03-01 07:12:38 +01:00
46cdadbaca feat: agents use stdio now and vibe added 2026-02-28 23:02:58 +01:00
ca258ea14d chore: added missing tests 2026-02-28 22:37:07 +01:00
6d2c47b64d fix: proper project setting 2026-02-28 22:21:01 +01:00
aedd013d88 fix: remove button for mcp server install 2026-02-28 22:09:34 +01:00
61b6c904f4 fix: fixed a failing test file 2026-02-28 21:58:53 +01:00
c358e1b11c feat: first round of mcp standalone server 2026-02-28 21:23:22 +01:00
8af1063351 fix: just a fixed test 2026-02-28 14:54:56 +01:00
554c02e1d3 fix: MCP apps rendering now 2026-02-28 14:26:56 +01:00
46752068be feat: rework templates 2026-02-28 13:00:51 +01:00
6c22e69805 feat: more work on mcp server integration 2026-02-28 12:36:13 +01:00
e71e478776 feat: more on mcp server 2026-02-28 11:05:39 +01:00
591caf8733 feat: mcp server round four 2026-02-28 10:18:26 +01:00
e5463b10f9 feat: mcp server implementation third round 2026-02-28 09:53:45 +01:00