Commit Graph

71 Commits

Author SHA1 Message Date
Χγφτ Kompanion c1d8c582f9 Move HandlerMemory up again.
--
2025-10-20 00:17:33 +02:00
Χγφτ Kompanion d39d20dd22 Add development set up variables 2025-10-19 21:09:22 +02:00
Χγφτ Kompanion 3f1410a095 Fix compile of command line parser
This is such an antiattren, amazing.
2025-10-19 19:13:25 +02:00
Χγφτ Kompanion fd922fe747 Acctually build the moved directories
Linking worked only because it was done against old binaries.
There is stil aseccuring in recur;
2025-10-19 19:11:49 +02:00
Χγφτ Kompanion 4091059e75 Fix production daabase creation
* The user should be externally configured.
2025-10-19 19:10:54 +02:00
Χγφτ Kompanion b2197ff11c Look for MCP-Server for test instantiation 2025-10-19 19:08:40 +02:00
Χγφτ Kompanion 720d445f1f cli: add --warm-cache (policy/ad-hoc) and --rehydrate; mcp: warm_cache accepts since/tags/key; add delete_context (stub) and upsert_and_embed wiring; resources: basic NL regex mappings 2025-10-19 11:56:14 +02:00
Χγφτ Kompanion 6fd938d4f3 mcp: add upsert_and_embed tool; implement warm_cache with filters + embeddings via libKI; DAL: make memory_chunks upsert unique by (item,seq) with SQL and in-memory; DB: add unique index on (item,seq) 2025-10-19 11:09:15 +02:00
Χγφτ Kompanion a0f5dd8b4f mcp: implement warm_cache using libKI embeddings + DAL upserts (chunks + embeddings); returns queued count 2025-10-19 10:55:21 +02:00
Χγφτ Kompanion d5226fe7d6 tests: add snapshot round-trip test using Orchestrator::saveSnapshot/loadSnapshot; Orchestrator reuses a DAL handle so stub mode persists within instance 2025-10-19 10:49:12 +02:00
Χγφτ Kompanion c36ef7e46b middleware: add snapshot helpers (save/load) backed by PgDal; link kom_dal with PIC; CLI: add --snapshot-save/--snapshot-load for easy syntax 2025-10-19 10:40:33 +02:00
Χγφτ Kompanion 70bd4ea064 tests: prefer stdio MCP + mcp-proxy when available; source ~/dev/main/src/env.sh if present; robust cleanup 2025-10-19 10:24:03 +02:00
Χγφτ Kompanion 6ff51da0e2 mcp: document handlers and route embed_text via libKI (OllamaProvider) with synchronous QFuture wait; ki: respect OLLAMA_BASE for tags/generate/embeddings 2025-10-19 10:23:38 +02:00
Χγφτ Kompanion 50ecdcf56b cli: surface ingest/run_ingest.py as src/cli/embed_pipeline.py to make the Python embedder visible alongside the CLI 2025-10-19 08:34:19 +02:00
Χγφτ Kompanion 924f5c7995 ki: add inline API doc for KIEmbedOptions/KIEmbeddingResult to prefer middleware-sourced documentation 2025-10-19 08:34:04 +02:00
Χγφτ Kompanion 1e15a96bbe gui: add 'Embed' button to call KIClient::embed and display resulting vector dimension 2025-10-19 08:33:52 +02:00
Χγφτ Kompanion 2ee757b64a ki: implement multi-text embeddings in OllamaProvider::embed by batching one request per text and aggregating results 2025-10-19 08:33:27 +02:00
Χγφτ Kompanion e1eb3afacc middleware: add C++ orchestrator + API docs; cli: add MCP server mode and DB navigation; tests: add orchestrator QtTest; docs: add CLI usage; db: move SQL from sql/ to db/sql; tools: remove extra python embedding stub
- Add src/middleware/orchestrator.{h,cpp} with simple journal.from_prompt task loop and Ollama-backed model provider.
- Extend src/cli/KompanionApp.cpp with:
  - MCP server mode (--mcp-serve/--mcp-address)
  - DB helpers (--db-namespaces, --db-items, --db-search, --embedding-file)
- Add tests/test_orchestrator.cpp and link Qt6::Network; keep tests passing.
- Move legacy SQL from sql/pg/001_init.sql to db/sql/pg/001_init.sql for consistency.
- Add docs/cli-and-schema-navigation.md with examples for server, tools, and schema navigation.
- Remove tools/pg_search.py (redundant embedding stub).
2025-10-19 08:32:43 +02:00
Χγφτ Kompanion 99614bbe93 Update task 2025-10-19 07:43:28 +02:00
Χγφτ Kompanion 8dcdd92055 Add middleware layer and documentation 2025-10-18 20:12:49 +02:00
Χγφτ Kompanion dadb0af954 Change API naming to KI
It is just the catchy thing to do.
2025-10-18 14:16:16 +02:00
Χγφτ Kompanion ee37ed47bb Finish the kllm integration better
Thanks to Gemini we now have a cleaner build interface
2025-10-18 14:00:09 +02:00
Χγφτ Kompanion 2ecb214510 Add full integration tests and more debug outout 2025-10-18 09:37:32 +02:00
Χγφτ Kompanion d6640abcbd Ifx path to stestscript again - remove obsolete files 2025-10-18 09:35:37 +02:00
Χγφτ Kompanion 799f060204 Tests: Make them callable from any path 2025-10-18 05:05:58 +02:00
Χγφτ Kompanion a943ca055a Refactoring move API in subdir 2025-10-17 12:50:18 +02:00
Χγφτ Kompanion b5c3dd21e0 Use new embedding size in schema 2025-10-17 02:35:59 +02:00
Χγφτ Kompanion 3ab1089c51 Adapt ingest dir to new ingest system 2025-10-17 02:30:22 +02:00
Χγφτ Kompanion 7b27493656 Add missing ingest files 2025-10-17 00:00:45 +02:00
Χγφτ Kompanion 0264262742 Adapt defaults for ingest_dir 2025-10-16 22:36:12 +02:00
Χγφτ Kompanion 4b2f9ea184 Merge branch 'work/API' to switch to KompanionAi API 2025-10-16 21:59:51 +02:00
Χγφτ Kompanion f2f7879f42 Add bearer authentication based on namespace
While there can be namespaces without a secret, commonly
the namespace should basically be the username and the
password the login secret.
2025-10-16 21:57:50 +02:00
Χγφτ Kompanion a8694850b1 Refactor: Revert auth_token removal and add namespace to ToolSchemas.json, update tests. 2025-10-16 21:51:07 +02:00
Χγφτ Kompanion bc0ae50be5 Add some debug output and simplify overyl complex code 2025-10-16 20:43:54 +02:00
Χγφτ Kompanion ca390763e6 feat: Implement initial KompanionAI SDK structure and KLLM compatibility layer 2025-10-16 19:24:09 +02:00
Χγφτ Kompanion fd289edded Outline future plans 2025-10-16 04:55:58 +02:00
Χγφτ Kompanion f71b2ef510 Implement server logic fully 2025-10-16 04:55:18 +02:00
Χγφτ Kompanion 220be1744d Update CMakeLists to follow KDE pattern 2025-10-16 01:20:30 +02:00
Χγφτ Kompanion 122df11433 memory: remove exception parsing helpers 2025-10-15 19:13:09 +02:00
Χγφτ Kompanion 8479c23234 cli: drop exceptions from KompanionApp 2025-10-15 18:44:00 +02:00
Χγφτ Kompanion a84af5d464 doc: add anything-llm compatibility plan 2025-10-15 18:43:47 +02:00
Χγφτ Kompanion db01fb0485 Add missing files 2025-10-16 03:46:06 +13:00
Χγφτ Kompanion 70848fda6e Convert to QtSql and extend 2025-10-16 03:45:27 +13:00
Χγφτ Kompanion a04506a081 Extend command line and add db init.
This also removes obsolete schema files for clarity
2025-10-15 22:35:19 +13:00
Χγφτ Kompanion e881bc4998 First prototype 2025-10-15 15:16:56 +13:00
Χγφτ Kompanion 53a1a043c7 Add Kconfig and more tools 2025-10-15 12:07:21 +13:00
Χγφτ Kompanion 779ac57f50 Add Schema files 2025-10-15 10:39:44 +13:00
Χγφτ Kompanion 122085b1f8 Added optional Postgres support:
CMake now detects libpq/pqxx, sets HAVE_PG, and links kom_dal when available
 (CMakeLists.txt:6-24, src/dal/CMakeLists.txt:9-13); PgDal gained connection management,
    prepared statements, and guarded runtime paths while preserving the
 in-memory fallback (src/dal/PgDal.cpp:1-820, src/dal/PgDal.hpp:1-153).
  - Introduced MCP resource descriptors mirroring the Ξlope memory
model—episodic events, semantic chunks, and the semantic_sync job contract—to
 guide tooling and DAL sync behavior (resources/memory/
    kom.memory.v1/episodic.json, semantic.json, jobs/semantic_sync.json).

Note: Work done by little blue
2025-10-15 10:38:33 +13:00
Χγφτ Kompanion b567b51ee2 Snapshot commit 2025-10-15 10:14:58 +13:00
Χγφτ Kompanion 5ae22ff9f8 Add testsystem 2025-10-15 01:22:29 +13:00