Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"isar_flutter_libs","path":"C:\\\\Users\\\\belal\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\isar_flutter_libs-3.1.0+1\\\\","native_build":true,"dependencies":[],"dev_dependency":true},{"name":"path_provider_foundation","path":"C:\\\\Users\\\\belal\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_foundation-2.4.2\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false}],"android":[{"name":"isar_flutter_libs","path":"C:\\\\Users\\\\belal\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\isar_flutter_libs-3.1.0+1\\\\","native_build":true,"dependencies":[],"dev_dependency":true},{"name":"path_provider_android","path":"C:\\\\Users\\\\belal\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_android-2.2.17\\\\","native_build":true,"dependencies":[],"dev_dependency":false}],"macos":[{"name":"isar_flutter_libs","path":"C:\\\\Users\\\\belal\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\isar_flutter_libs-3.1.0+1\\\\","native_build":true,"dependencies":[],"dev_dependency":true},{"name":"path_provider_foundation","path":"C:\\\\Users\\\\belal\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_foundation-2.4.2\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false}],"linux":[{"name":"isar_flutter_libs","path":"C:\\\\Users\\\\belal\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\isar_flutter_libs-3.1.0+1\\\\","native_build":true,"dependencies":[],"dev_dependency":true},{"name":"path_provider_linux","path":"C:\\\\Users\\\\belal\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_linux-2.2.1\\\\","native_build":false,"dependencies":[],"dev_dependency":false}],"windows":[{"name":"isar_flutter_libs","path":"C:\\\\Users\\\\belal\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\isar_flutter_libs-3.1.0+1\\\\","native_build":true,"dependencies":[],"dev_dependency":true},{"name":"path_provider_windows","path":"C:\\\\Users\\\\belal\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_windows-2.3.0\\\\","native_build":false,"dependencies":[],"dev_dependency":false}],"web":[]},"dependencyGraph":[{"name":"isar_flutter_libs","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2025-08-16 18:52:05.168876","version":"3.32.6","swift_package_manager_enabled":{"ios":false,"macos":false}}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"onnxruntime","path":"/home/jules/.pub-cache/hosted/pub.dev/onnxruntime-1.4.1/","native_build":true,"dependencies":[],"dev_dependency":false}],"android":[{"name":"onnxruntime","path":"/home/jules/.pub-cache/hosted/pub.dev/onnxruntime-1.4.1/","native_build":true,"dependencies":[],"dev_dependency":false}],"macos":[{"name":"onnxruntime","path":"/home/jules/.pub-cache/hosted/pub.dev/onnxruntime-1.4.1/","native_build":true,"dependencies":[],"dev_dependency":false}],"linux":[{"name":"onnxruntime","path":"/home/jules/.pub-cache/hosted/pub.dev/onnxruntime-1.4.1/","native_build":true,"dependencies":[],"dev_dependency":false}],"windows":[{"name":"onnxruntime","path":"/home/jules/.pub-cache/hosted/pub.dev/onnxruntime-1.4.1/","native_build":true,"dependencies":[],"dev_dependency":false}],"web":[]},"dependencyGraph":[{"name":"onnxruntime","dependencies":[]}],"date_created":"2025-11-24 21:02:48.717549","version":"3.38.3","swift_package_manager_enabled":{"ios":false,"macos":false}}
1 change: 1 addition & 0 deletions flutter
Submodule flutter added at 19074d
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

#include "generated_plugin_registrant.h"

#include <isar_flutter_libs/isar_flutter_libs_plugin.h>

void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) isar_flutter_libs_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "IsarFlutterLibsPlugin");
isar_flutter_libs_plugin_register_with_registrar(isar_flutter_libs_registrar);
}
2 changes: 2 additions & 0 deletions isar_agent_memory_tests/linux/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
#

list(APPEND FLUTTER_PLUGIN_LIST
isar_flutter_libs
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
onnxruntime
)

set(PLUGIN_BUNDLED_LIBRARIES)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import FlutterMacOS
import Foundation

import isar_flutter_libs

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
IsarFlutterLibsPlugin.register(with: registry.registrar(forPlugin: "IsarFlutterLibsPlugin"))
}
1 change: 1 addition & 0 deletions isar_agent_memory_tests/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dependencies:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.8
isar_flutter_libs: ^3.1.0+1

dev_dependencies:
flutter_test:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

#include "generated_plugin_registrant.h"

#include <isar_flutter_libs/isar_flutter_libs_plugin.h>

void RegisterPlugins(flutter::PluginRegistry* registry) {
IsarFlutterLibsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("IsarFlutterLibsPlugin"));
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
#

list(APPEND FLUTTER_PLUGIN_LIST
isar_flutter_libs
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
onnxruntime
)

set(PLUGIN_BUNDLED_LIBRARIES)
Expand Down
8 changes: 4 additions & 4 deletions lib/objectbox-model.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
{
"id": "2:1442387009774653075",
"name": "docKey",
"indexId": "1:8701917581695520620",
"type": 9,
"flags": 2080,
"indexId": "1:8701917581695520620"
"flags": 2080
},
{
"id": "3:1210557137860714142",
Expand All @@ -29,9 +29,9 @@
{
"id": "4:9089606705394925499",
"name": "vector",
"indexId": "2:7396986783401268781",
"type": 28,
"flags": 8,
"indexId": "2:7396986783401268781"
"flags": 8
}
],
"relations": []
Expand Down
231 changes: 124 additions & 107 deletions lib/objectbox.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 21 additions & 1 deletion lib/src/models/memory_edge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ class MemoryEdge {
required this.relation,
this.weight,
this.metadata,
}) : createdAt = DateTime.now();
this.version,
this.deviceId,
this.isDeleted = false,
DateTime? modifiedAt,
}) : createdAt = DateTime.now() {
this.modifiedAt = modifiedAt ?? DateTime.now();
}

/// Unique identifier for this edge, managed by Isar.
Id id = Isar.autoIncrement;
Expand All @@ -44,6 +50,20 @@ class MemoryEdge {
/// Automatically set to the current time upon creation.
late DateTime createdAt;

/// The timestamp when this record was last modified (system-level sync).
///
/// Used for Last-Write-Wins (LWW) conflict resolution.
late DateTime modifiedAt;

/// Version identifier (e.g., hash or monotonic counter) for synchronization.
String? version;

/// ID of the device that last modified this record.
String? deviceId;

/// Soft delete flag (tombstone) for synchronization.
bool isDeleted;

/// Arbitrary extensible metadata.
///
/// A map for storing additional, non-indexed data. This field is ignored by
Expand Down
Loading
Loading