Skip to content

Commit c6ee7f9

Browse files
authored
Merge pull request #152 from nextcloud/prepare-v2.6.0
Prepare v2.6.0
2 parents de8ea8e + 3423f01 commit c6ee7f9

8 files changed

Lines changed: 3263 additions & 2280 deletions

File tree

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,30 @@ All notable changes to this project will be documented in this file.
88
The format is based on [Keep a Changelog](http://keepachangelog.com/)
99
and this project adheres to [Semantic Versioning](http://semver.org/).
1010

11+
## [2.6.0] - 2026-04-16
12+
13+
### Added
14+
- lots of more tools for
15+
- Bookmarks
16+
- Calendar
17+
- Circles
18+
- Cookbook
19+
- Deck
20+
- Files
21+
- Forms
22+
- Mail
23+
- Shares
24+
- "find user" tool
25+
- Register and invoke async tools in MCP middleware
26+
27+
### Changed
28+
- updated dependencies
29+
30+
### Fixed
31+
- Log tool error in handle_tool_error
32+
- First history item cannot be a tool message
33+
34+
1135
## [2.5.1] - 2026-03-10
1236

1337
### Changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
APP_ID := context_agent
66
APP_NAME := Nextcloud Context Agent
7-
APP_VERSION := 2.5.1
7+
APP_VERSION := 2.6.0
88
JSON_INFO := "{\"id\":\"$(APP_ID)\",\"name\":\"$(APP_NAME)\",\"daemon_config_name\":\"manual_install\",\"version\":\"$(APP_VERSION)\",\"secret\":\"12345\",\"port\":9081}"
99

1010

appinfo/info.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Positive:
2828
* The software for this app is open source, no trained AI model is used
2929
]]>
3030
</description>
31-
<version>2.5.1</version>
31+
<version>2.6.0</version>
3232
<licence>MIT</licence>
3333
<author mail="mklehr@gmx.net" homepage="https://marcelklehr.de">Marcel Klehr</author>
3434
<namespace>ContextAgent</namespace>
@@ -45,7 +45,7 @@ Positive:
4545
<docker-install>
4646
<registry>ghcr.io</registry>
4747
<image>nextcloud/context_agent</image>
48-
<image-tag>2.5.1</image-tag>
48+
<image-tag>2.6.0</image-tag>
4949
</docker-install>
5050
<routes>
5151
<route>

ex_app/lib/agent.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from ex_app.lib.nc_model import model
1818
from ex_app.lib.tools import get_tools
1919
from ex_app.lib.memorysaver import MemorySaver
20+
from ex_app.lib.jsonplus import JsonPlusSerializer
2021

2122

2223
# Dummy thread id as we return the whole state
@@ -66,7 +67,7 @@ def load_conversation(conversation_token: str):
6667
# Verify whether this was signed by this instance of context_agent
6768
serialized_state = verify_signature(conversation_token, key)
6869
# Deserialize the saved state
69-
conversation = checkpointer.serde.loads(serialized_state.encode())
70+
conversation = JsonPlusSerializer().loads(serialized_state.encode())
7071
# Get the last checkpoint state
7172
last_checkpoint = conversation['last_checkpoint']
7273
# get the last checkpointer config
@@ -88,7 +89,8 @@ def export_conversation(checkpointer):
8889
last_checkpoint = checkpointer.storage[last_config['configurable']['thread_id']][last_config['configurable']['checkpoint_ns']][last_config['configurable']['checkpoint_id']]
8990
# prepare the to-serialize blob
9091
state = {"last_config": last_config, "last_checkpoint": last_checkpoint}
91-
serialized_state = checkpointer.serde.dumps(state)
92+
serialized_state = JsonPlusSerializer().dumps(state)
93+
print(serialized_state)
9294
# sign the serialized state
9395
conversation_token = add_signature(serialized_state.decode('utf-8'), key)
9496
return conversation_token

0 commit comments

Comments
 (0)