capacitor-native-agent 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Package.swift +3 -1
- package/android/build.gradle +1 -0
- package/android/src/main/java/com/t6x/plugins/nativeagent/LanceDBBridge.kt +27 -0
- package/android/src/main/java/com/t6x/plugins/nativeagent/MemoryProviderImpl.kt +177 -0
- package/android/src/main/java/com/t6x/plugins/nativeagent/NativeAgentPlugin.kt +6 -0
- package/android/src/main/java/uniffi/native_agent_ffi/native_agent_ffi.kt +230 -8
- package/android/src/main/jniLibs/arm64-v8a/libnative_agent_ffi.so +0 -0
- package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64/Headers/{native_agent_ffiFFI → native_agent_ffi}/module.modulemap +1 -1
- package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64/Headers/{native_agent_ffiFFI → native_agent_ffi}/native_agent_ffiFFI.h +93 -0
- package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64/libnative_agent_ffi.a +0 -0
- package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64-simulator/Headers/{native_agent_ffiFFI → native_agent_ffi}/module.modulemap +1 -1
- package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64-simulator/Headers/{native_agent_ffiFFI → native_agent_ffi}/native_agent_ffiFFI.h +93 -0
- package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64-simulator/libnative_agent_ffi.a +0 -0
- package/ios/Sources/NativeAgentPlugin/Generated/native_agent_ffi.swift +252 -7
- package/ios/Sources/NativeAgentPlugin/Generated/native_agent_ffiFFI.h +93 -0
- package/ios/Sources/NativeAgentPlugin/LanceDBBridge.swift +70 -0
- package/ios/Sources/NativeAgentPlugin/MemoryProviderImpl.swift +206 -0
- package/ios/Sources/NativeAgentPlugin/NativeAgentPlugin.swift +3 -0
- package/package.json +8 -2
|
@@ -250,6 +250,41 @@ typedef struct UniffiForeignFutureStructVoid {
|
|
|
250
250
|
typedef void (*UniffiForeignFutureCompleteVoid)(uint64_t, UniffiForeignFutureStructVoid
|
|
251
251
|
);
|
|
252
252
|
|
|
253
|
+
#endif
|
|
254
|
+
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD0
|
|
255
|
+
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD0
|
|
256
|
+
typedef void (*UniffiCallbackInterfaceMemoryProviderMethod0)(uint64_t, RustBuffer, RustBuffer, RustBuffer, RustBuffer* _Nonnull,
|
|
257
|
+
RustCallStatus *_Nonnull uniffiCallStatus
|
|
258
|
+
);
|
|
259
|
+
|
|
260
|
+
#endif
|
|
261
|
+
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD1
|
|
262
|
+
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD1
|
|
263
|
+
typedef void (*UniffiCallbackInterfaceMemoryProviderMethod1)(uint64_t, RustBuffer, uint32_t, RustBuffer* _Nonnull,
|
|
264
|
+
RustCallStatus *_Nonnull uniffiCallStatus
|
|
265
|
+
);
|
|
266
|
+
|
|
267
|
+
#endif
|
|
268
|
+
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD2
|
|
269
|
+
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD2
|
|
270
|
+
typedef void (*UniffiCallbackInterfaceMemoryProviderMethod2)(uint64_t, RustBuffer, RustBuffer* _Nonnull,
|
|
271
|
+
RustCallStatus *_Nonnull uniffiCallStatus
|
|
272
|
+
);
|
|
273
|
+
|
|
274
|
+
#endif
|
|
275
|
+
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD3
|
|
276
|
+
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD3
|
|
277
|
+
typedef void (*UniffiCallbackInterfaceMemoryProviderMethod3)(uint64_t, RustBuffer, uint32_t, RustBuffer* _Nonnull,
|
|
278
|
+
RustCallStatus *_Nonnull uniffiCallStatus
|
|
279
|
+
);
|
|
280
|
+
|
|
281
|
+
#endif
|
|
282
|
+
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD4
|
|
283
|
+
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD4
|
|
284
|
+
typedef void (*UniffiCallbackInterfaceMemoryProviderMethod4)(uint64_t, RustBuffer, RustBuffer, RustBuffer* _Nonnull,
|
|
285
|
+
RustCallStatus *_Nonnull uniffiCallStatus
|
|
286
|
+
);
|
|
287
|
+
|
|
253
288
|
#endif
|
|
254
289
|
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_NATIVE_EVENT_CALLBACK_METHOD0
|
|
255
290
|
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_NATIVE_EVENT_CALLBACK_METHOD0
|
|
@@ -264,6 +299,18 @@ typedef void (*UniffiCallbackInterfaceNativeNotifierMethod0)(uint64_t, RustBuffe
|
|
|
264
299
|
RustCallStatus *_Nonnull uniffiCallStatus
|
|
265
300
|
);
|
|
266
301
|
|
|
302
|
+
#endif
|
|
303
|
+
#ifndef UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_MEMORY_PROVIDER
|
|
304
|
+
#define UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_MEMORY_PROVIDER
|
|
305
|
+
typedef struct UniffiVTableCallbackInterfaceMemoryProvider {
|
|
306
|
+
UniffiCallbackInterfaceMemoryProviderMethod0 _Nonnull store;
|
|
307
|
+
UniffiCallbackInterfaceMemoryProviderMethod1 _Nonnull recall;
|
|
308
|
+
UniffiCallbackInterfaceMemoryProviderMethod2 _Nonnull forget;
|
|
309
|
+
UniffiCallbackInterfaceMemoryProviderMethod3 _Nonnull search;
|
|
310
|
+
UniffiCallbackInterfaceMemoryProviderMethod4 _Nonnull list;
|
|
311
|
+
UniffiCallbackInterfaceFree _Nonnull uniffiFree;
|
|
312
|
+
} UniffiVTableCallbackInterfaceMemoryProvider;
|
|
313
|
+
|
|
267
314
|
#endif
|
|
268
315
|
#ifndef UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_NATIVE_EVENT_CALLBACK
|
|
269
316
|
#define UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_NATIVE_EVENT_CALLBACK
|
|
@@ -461,6 +508,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_event_callback(void
|
|
|
461
508
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_heartbeat_config(void*_Nonnull ptr, RustBuffer config_json, RustCallStatus *_Nonnull out_status
|
|
462
509
|
);
|
|
463
510
|
#endif
|
|
511
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
512
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
513
|
+
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_memory_provider(void*_Nonnull ptr, uint64_t provider, RustCallStatus *_Nonnull out_status
|
|
514
|
+
);
|
|
515
|
+
#endif
|
|
464
516
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
|
|
465
517
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
|
|
466
518
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_notifier(void*_Nonnull ptr, uint64_t notifier, RustCallStatus *_Nonnull out_status
|
|
@@ -496,6 +548,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_update_cron_job(void*_N
|
|
|
496
548
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_update_skill(void*_Nonnull ptr, RustBuffer id, RustBuffer patch_json, RustCallStatus *_Nonnull out_status
|
|
497
549
|
);
|
|
498
550
|
#endif
|
|
551
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_MEMORYPROVIDER
|
|
552
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_MEMORYPROVIDER
|
|
553
|
+
void uniffi_native_agent_ffi_fn_init_callback_vtable_memoryprovider(UniffiVTableCallbackInterfaceMemoryProvider* _Nonnull vtable
|
|
554
|
+
);
|
|
555
|
+
#endif
|
|
499
556
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVEEVENTCALLBACK
|
|
500
557
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVEEVENTCALLBACK
|
|
501
558
|
void uniffi_native_agent_ffi_fn_init_callback_vtable_nativeeventcallback(UniffiVTableCallbackInterfaceNativeEventCallback* _Nonnull vtable
|
|
@@ -1004,6 +1061,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_event_cal
|
|
|
1004
1061
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_HEARTBEAT_CONFIG
|
|
1005
1062
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_heartbeat_config(void
|
|
1006
1063
|
|
|
1064
|
+
);
|
|
1065
|
+
#endif
|
|
1066
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
1067
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
1068
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_memory_provider(void
|
|
1069
|
+
|
|
1007
1070
|
);
|
|
1008
1071
|
#endif
|
|
1009
1072
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
|
|
@@ -1052,6 +1115,36 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_update_skill(
|
|
|
1052
1115
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_CONSTRUCTOR_NATIVEAGENTHANDLE_NEW
|
|
1053
1116
|
uint16_t uniffi_native_agent_ffi_checksum_constructor_nativeagenthandle_new(void
|
|
1054
1117
|
|
|
1118
|
+
);
|
|
1119
|
+
#endif
|
|
1120
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_STORE
|
|
1121
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_STORE
|
|
1122
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_store(void
|
|
1123
|
+
|
|
1124
|
+
);
|
|
1125
|
+
#endif
|
|
1126
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_RECALL
|
|
1127
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_RECALL
|
|
1128
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_recall(void
|
|
1129
|
+
|
|
1130
|
+
);
|
|
1131
|
+
#endif
|
|
1132
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_FORGET
|
|
1133
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_FORGET
|
|
1134
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_forget(void
|
|
1135
|
+
|
|
1136
|
+
);
|
|
1137
|
+
#endif
|
|
1138
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_SEARCH
|
|
1139
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_SEARCH
|
|
1140
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_search(void
|
|
1141
|
+
|
|
1142
|
+
);
|
|
1143
|
+
#endif
|
|
1144
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_LIST
|
|
1145
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_LIST
|
|
1146
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_list(void
|
|
1147
|
+
|
|
1055
1148
|
);
|
|
1056
1149
|
#endif
|
|
1057
1150
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEEVENTCALLBACK_ON_EVENT
|
|
Binary file
|
|
@@ -250,6 +250,41 @@ typedef struct UniffiForeignFutureStructVoid {
|
|
|
250
250
|
typedef void (*UniffiForeignFutureCompleteVoid)(uint64_t, UniffiForeignFutureStructVoid
|
|
251
251
|
);
|
|
252
252
|
|
|
253
|
+
#endif
|
|
254
|
+
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD0
|
|
255
|
+
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD0
|
|
256
|
+
typedef void (*UniffiCallbackInterfaceMemoryProviderMethod0)(uint64_t, RustBuffer, RustBuffer, RustBuffer, RustBuffer* _Nonnull,
|
|
257
|
+
RustCallStatus *_Nonnull uniffiCallStatus
|
|
258
|
+
);
|
|
259
|
+
|
|
260
|
+
#endif
|
|
261
|
+
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD1
|
|
262
|
+
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD1
|
|
263
|
+
typedef void (*UniffiCallbackInterfaceMemoryProviderMethod1)(uint64_t, RustBuffer, uint32_t, RustBuffer* _Nonnull,
|
|
264
|
+
RustCallStatus *_Nonnull uniffiCallStatus
|
|
265
|
+
);
|
|
266
|
+
|
|
267
|
+
#endif
|
|
268
|
+
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD2
|
|
269
|
+
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD2
|
|
270
|
+
typedef void (*UniffiCallbackInterfaceMemoryProviderMethod2)(uint64_t, RustBuffer, RustBuffer* _Nonnull,
|
|
271
|
+
RustCallStatus *_Nonnull uniffiCallStatus
|
|
272
|
+
);
|
|
273
|
+
|
|
274
|
+
#endif
|
|
275
|
+
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD3
|
|
276
|
+
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD3
|
|
277
|
+
typedef void (*UniffiCallbackInterfaceMemoryProviderMethod3)(uint64_t, RustBuffer, uint32_t, RustBuffer* _Nonnull,
|
|
278
|
+
RustCallStatus *_Nonnull uniffiCallStatus
|
|
279
|
+
);
|
|
280
|
+
|
|
281
|
+
#endif
|
|
282
|
+
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD4
|
|
283
|
+
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_MEMORY_PROVIDER_METHOD4
|
|
284
|
+
typedef void (*UniffiCallbackInterfaceMemoryProviderMethod4)(uint64_t, RustBuffer, RustBuffer, RustBuffer* _Nonnull,
|
|
285
|
+
RustCallStatus *_Nonnull uniffiCallStatus
|
|
286
|
+
);
|
|
287
|
+
|
|
253
288
|
#endif
|
|
254
289
|
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_NATIVE_EVENT_CALLBACK_METHOD0
|
|
255
290
|
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_NATIVE_EVENT_CALLBACK_METHOD0
|
|
@@ -264,6 +299,18 @@ typedef void (*UniffiCallbackInterfaceNativeNotifierMethod0)(uint64_t, RustBuffe
|
|
|
264
299
|
RustCallStatus *_Nonnull uniffiCallStatus
|
|
265
300
|
);
|
|
266
301
|
|
|
302
|
+
#endif
|
|
303
|
+
#ifndef UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_MEMORY_PROVIDER
|
|
304
|
+
#define UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_MEMORY_PROVIDER
|
|
305
|
+
typedef struct UniffiVTableCallbackInterfaceMemoryProvider {
|
|
306
|
+
UniffiCallbackInterfaceMemoryProviderMethod0 _Nonnull store;
|
|
307
|
+
UniffiCallbackInterfaceMemoryProviderMethod1 _Nonnull recall;
|
|
308
|
+
UniffiCallbackInterfaceMemoryProviderMethod2 _Nonnull forget;
|
|
309
|
+
UniffiCallbackInterfaceMemoryProviderMethod3 _Nonnull search;
|
|
310
|
+
UniffiCallbackInterfaceMemoryProviderMethod4 _Nonnull list;
|
|
311
|
+
UniffiCallbackInterfaceFree _Nonnull uniffiFree;
|
|
312
|
+
} UniffiVTableCallbackInterfaceMemoryProvider;
|
|
313
|
+
|
|
267
314
|
#endif
|
|
268
315
|
#ifndef UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_NATIVE_EVENT_CALLBACK
|
|
269
316
|
#define UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_NATIVE_EVENT_CALLBACK
|
|
@@ -461,6 +508,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_event_callback(void
|
|
|
461
508
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_heartbeat_config(void*_Nonnull ptr, RustBuffer config_json, RustCallStatus *_Nonnull out_status
|
|
462
509
|
);
|
|
463
510
|
#endif
|
|
511
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
512
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
513
|
+
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_memory_provider(void*_Nonnull ptr, uint64_t provider, RustCallStatus *_Nonnull out_status
|
|
514
|
+
);
|
|
515
|
+
#endif
|
|
464
516
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
|
|
465
517
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
|
|
466
518
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_notifier(void*_Nonnull ptr, uint64_t notifier, RustCallStatus *_Nonnull out_status
|
|
@@ -496,6 +548,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_update_cron_job(void*_N
|
|
|
496
548
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_update_skill(void*_Nonnull ptr, RustBuffer id, RustBuffer patch_json, RustCallStatus *_Nonnull out_status
|
|
497
549
|
);
|
|
498
550
|
#endif
|
|
551
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_MEMORYPROVIDER
|
|
552
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_MEMORYPROVIDER
|
|
553
|
+
void uniffi_native_agent_ffi_fn_init_callback_vtable_memoryprovider(UniffiVTableCallbackInterfaceMemoryProvider* _Nonnull vtable
|
|
554
|
+
);
|
|
555
|
+
#endif
|
|
499
556
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVEEVENTCALLBACK
|
|
500
557
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVEEVENTCALLBACK
|
|
501
558
|
void uniffi_native_agent_ffi_fn_init_callback_vtable_nativeeventcallback(UniffiVTableCallbackInterfaceNativeEventCallback* _Nonnull vtable
|
|
@@ -1004,6 +1061,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_event_cal
|
|
|
1004
1061
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_HEARTBEAT_CONFIG
|
|
1005
1062
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_heartbeat_config(void
|
|
1006
1063
|
|
|
1064
|
+
);
|
|
1065
|
+
#endif
|
|
1066
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
1067
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
1068
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_memory_provider(void
|
|
1069
|
+
|
|
1007
1070
|
);
|
|
1008
1071
|
#endif
|
|
1009
1072
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
|
|
@@ -1052,6 +1115,36 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_update_skill(
|
|
|
1052
1115
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_CONSTRUCTOR_NATIVEAGENTHANDLE_NEW
|
|
1053
1116
|
uint16_t uniffi_native_agent_ffi_checksum_constructor_nativeagenthandle_new(void
|
|
1054
1117
|
|
|
1118
|
+
);
|
|
1119
|
+
#endif
|
|
1120
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_STORE
|
|
1121
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_STORE
|
|
1122
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_store(void
|
|
1123
|
+
|
|
1124
|
+
);
|
|
1125
|
+
#endif
|
|
1126
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_RECALL
|
|
1127
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_RECALL
|
|
1128
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_recall(void
|
|
1129
|
+
|
|
1130
|
+
);
|
|
1131
|
+
#endif
|
|
1132
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_FORGET
|
|
1133
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_FORGET
|
|
1134
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_forget(void
|
|
1135
|
+
|
|
1136
|
+
);
|
|
1137
|
+
#endif
|
|
1138
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_SEARCH
|
|
1139
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_SEARCH
|
|
1140
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_search(void
|
|
1141
|
+
|
|
1142
|
+
);
|
|
1143
|
+
#endif
|
|
1144
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_LIST
|
|
1145
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_LIST
|
|
1146
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_list(void
|
|
1147
|
+
|
|
1055
1148
|
);
|
|
1056
1149
|
#endif
|
|
1057
1150
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEEVENTCALLBACK_ON_EVENT
|
|
Binary file
|
|
@@ -665,6 +665,8 @@ public protocol NativeAgentHandleProtocol : AnyObject {
|
|
|
665
665
|
*/
|
|
666
666
|
func setHeartbeatConfig(configJson: String) throws
|
|
667
667
|
|
|
668
|
+
func setMemoryProvider(provider: MemoryProvider) throws
|
|
669
|
+
|
|
668
670
|
func setNotifier(notifier: NativeNotifier) throws
|
|
669
671
|
|
|
670
672
|
/**
|
|
@@ -1114,6 +1116,13 @@ open func setHeartbeatConfig(configJson: String)throws {try rustCallWithError(F
|
|
|
1114
1116
|
}
|
|
1115
1117
|
}
|
|
1116
1118
|
|
|
1119
|
+
open func setMemoryProvider(provider: MemoryProvider)throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1120
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_memory_provider(self.uniffiClonePointer(),
|
|
1121
|
+
FfiConverterCallbackInterfaceMemoryProvider.lower(provider),$0
|
|
1122
|
+
)
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1117
1126
|
open func setNotifier(notifier: NativeNotifier)throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1118
1127
|
uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_notifier(self.uniffiClonePointer(),
|
|
1119
1128
|
FfiConverterCallbackInterfaceNativeNotifier.lower(notifier),$0
|
|
@@ -1876,6 +1885,229 @@ extension NativeAgentError: Foundation.LocalizedError {
|
|
|
1876
1885
|
|
|
1877
1886
|
|
|
1878
1887
|
|
|
1888
|
+
/**
|
|
1889
|
+
* Callback interface for memory operations (LanceDB or any vector store).
|
|
1890
|
+
* Implemented by Kotlin/Swift, which bridges to the actual memory backend.
|
|
1891
|
+
*/
|
|
1892
|
+
public protocol MemoryProvider : AnyObject {
|
|
1893
|
+
|
|
1894
|
+
func store(key: String, text: String, metadataJson: String?) -> String
|
|
1895
|
+
|
|
1896
|
+
func recall(query: String, limit: UInt32) -> String
|
|
1897
|
+
|
|
1898
|
+
func forget(key: String) -> String
|
|
1899
|
+
|
|
1900
|
+
func search(query: String, maxResults: UInt32) -> String
|
|
1901
|
+
|
|
1902
|
+
func list(prefix: String?, limit: UInt32?) -> String
|
|
1903
|
+
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
// Magic number for the Rust proxy to call using the same mechanism as every other method,
|
|
1907
|
+
// to free the callback once it's dropped by Rust.
|
|
1908
|
+
private let IDX_CALLBACK_FREE: Int32 = 0
|
|
1909
|
+
// Callback return codes
|
|
1910
|
+
private let UNIFFI_CALLBACK_SUCCESS: Int32 = 0
|
|
1911
|
+
private let UNIFFI_CALLBACK_ERROR: Int32 = 1
|
|
1912
|
+
private let UNIFFI_CALLBACK_UNEXPECTED_ERROR: Int32 = 2
|
|
1913
|
+
|
|
1914
|
+
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
1915
|
+
fileprivate struct UniffiCallbackInterfaceMemoryProvider {
|
|
1916
|
+
|
|
1917
|
+
// Create the VTable using a series of closures.
|
|
1918
|
+
// Swift automatically converts these into C callback functions.
|
|
1919
|
+
static var vtable: UniffiVTableCallbackInterfaceMemoryProvider = UniffiVTableCallbackInterfaceMemoryProvider(
|
|
1920
|
+
store: { (
|
|
1921
|
+
uniffiHandle: UInt64,
|
|
1922
|
+
key: RustBuffer,
|
|
1923
|
+
text: RustBuffer,
|
|
1924
|
+
metadataJson: RustBuffer,
|
|
1925
|
+
uniffiOutReturn: UnsafeMutablePointer<RustBuffer>,
|
|
1926
|
+
uniffiCallStatus: UnsafeMutablePointer<RustCallStatus>
|
|
1927
|
+
) in
|
|
1928
|
+
let makeCall = {
|
|
1929
|
+
() throws -> String in
|
|
1930
|
+
guard let uniffiObj = try? FfiConverterCallbackInterfaceMemoryProvider.handleMap.get(handle: uniffiHandle) else {
|
|
1931
|
+
throw UniffiInternalError.unexpectedStaleHandle
|
|
1932
|
+
}
|
|
1933
|
+
return uniffiObj.store(
|
|
1934
|
+
key: try FfiConverterString.lift(key),
|
|
1935
|
+
text: try FfiConverterString.lift(text),
|
|
1936
|
+
metadataJson: try FfiConverterOptionString.lift(metadataJson)
|
|
1937
|
+
)
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
|
|
1941
|
+
let writeReturn = { uniffiOutReturn.pointee = FfiConverterString.lower($0) }
|
|
1942
|
+
uniffiTraitInterfaceCall(
|
|
1943
|
+
callStatus: uniffiCallStatus,
|
|
1944
|
+
makeCall: makeCall,
|
|
1945
|
+
writeReturn: writeReturn
|
|
1946
|
+
)
|
|
1947
|
+
},
|
|
1948
|
+
recall: { (
|
|
1949
|
+
uniffiHandle: UInt64,
|
|
1950
|
+
query: RustBuffer,
|
|
1951
|
+
limit: UInt32,
|
|
1952
|
+
uniffiOutReturn: UnsafeMutablePointer<RustBuffer>,
|
|
1953
|
+
uniffiCallStatus: UnsafeMutablePointer<RustCallStatus>
|
|
1954
|
+
) in
|
|
1955
|
+
let makeCall = {
|
|
1956
|
+
() throws -> String in
|
|
1957
|
+
guard let uniffiObj = try? FfiConverterCallbackInterfaceMemoryProvider.handleMap.get(handle: uniffiHandle) else {
|
|
1958
|
+
throw UniffiInternalError.unexpectedStaleHandle
|
|
1959
|
+
}
|
|
1960
|
+
return uniffiObj.recall(
|
|
1961
|
+
query: try FfiConverterString.lift(query),
|
|
1962
|
+
limit: try FfiConverterUInt32.lift(limit)
|
|
1963
|
+
)
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
|
|
1967
|
+
let writeReturn = { uniffiOutReturn.pointee = FfiConverterString.lower($0) }
|
|
1968
|
+
uniffiTraitInterfaceCall(
|
|
1969
|
+
callStatus: uniffiCallStatus,
|
|
1970
|
+
makeCall: makeCall,
|
|
1971
|
+
writeReturn: writeReturn
|
|
1972
|
+
)
|
|
1973
|
+
},
|
|
1974
|
+
forget: { (
|
|
1975
|
+
uniffiHandle: UInt64,
|
|
1976
|
+
key: RustBuffer,
|
|
1977
|
+
uniffiOutReturn: UnsafeMutablePointer<RustBuffer>,
|
|
1978
|
+
uniffiCallStatus: UnsafeMutablePointer<RustCallStatus>
|
|
1979
|
+
) in
|
|
1980
|
+
let makeCall = {
|
|
1981
|
+
() throws -> String in
|
|
1982
|
+
guard let uniffiObj = try? FfiConverterCallbackInterfaceMemoryProvider.handleMap.get(handle: uniffiHandle) else {
|
|
1983
|
+
throw UniffiInternalError.unexpectedStaleHandle
|
|
1984
|
+
}
|
|
1985
|
+
return uniffiObj.forget(
|
|
1986
|
+
key: try FfiConverterString.lift(key)
|
|
1987
|
+
)
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
|
|
1991
|
+
let writeReturn = { uniffiOutReturn.pointee = FfiConverterString.lower($0) }
|
|
1992
|
+
uniffiTraitInterfaceCall(
|
|
1993
|
+
callStatus: uniffiCallStatus,
|
|
1994
|
+
makeCall: makeCall,
|
|
1995
|
+
writeReturn: writeReturn
|
|
1996
|
+
)
|
|
1997
|
+
},
|
|
1998
|
+
search: { (
|
|
1999
|
+
uniffiHandle: UInt64,
|
|
2000
|
+
query: RustBuffer,
|
|
2001
|
+
maxResults: UInt32,
|
|
2002
|
+
uniffiOutReturn: UnsafeMutablePointer<RustBuffer>,
|
|
2003
|
+
uniffiCallStatus: UnsafeMutablePointer<RustCallStatus>
|
|
2004
|
+
) in
|
|
2005
|
+
let makeCall = {
|
|
2006
|
+
() throws -> String in
|
|
2007
|
+
guard let uniffiObj = try? FfiConverterCallbackInterfaceMemoryProvider.handleMap.get(handle: uniffiHandle) else {
|
|
2008
|
+
throw UniffiInternalError.unexpectedStaleHandle
|
|
2009
|
+
}
|
|
2010
|
+
return uniffiObj.search(
|
|
2011
|
+
query: try FfiConverterString.lift(query),
|
|
2012
|
+
maxResults: try FfiConverterUInt32.lift(maxResults)
|
|
2013
|
+
)
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
let writeReturn = { uniffiOutReturn.pointee = FfiConverterString.lower($0) }
|
|
2018
|
+
uniffiTraitInterfaceCall(
|
|
2019
|
+
callStatus: uniffiCallStatus,
|
|
2020
|
+
makeCall: makeCall,
|
|
2021
|
+
writeReturn: writeReturn
|
|
2022
|
+
)
|
|
2023
|
+
},
|
|
2024
|
+
list: { (
|
|
2025
|
+
uniffiHandle: UInt64,
|
|
2026
|
+
prefix: RustBuffer,
|
|
2027
|
+
limit: RustBuffer,
|
|
2028
|
+
uniffiOutReturn: UnsafeMutablePointer<RustBuffer>,
|
|
2029
|
+
uniffiCallStatus: UnsafeMutablePointer<RustCallStatus>
|
|
2030
|
+
) in
|
|
2031
|
+
let makeCall = {
|
|
2032
|
+
() throws -> String in
|
|
2033
|
+
guard let uniffiObj = try? FfiConverterCallbackInterfaceMemoryProvider.handleMap.get(handle: uniffiHandle) else {
|
|
2034
|
+
throw UniffiInternalError.unexpectedStaleHandle
|
|
2035
|
+
}
|
|
2036
|
+
return uniffiObj.list(
|
|
2037
|
+
prefix: try FfiConverterOptionString.lift(prefix),
|
|
2038
|
+
limit: try FfiConverterOptionUInt32.lift(limit)
|
|
2039
|
+
)
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
let writeReturn = { uniffiOutReturn.pointee = FfiConverterString.lower($0) }
|
|
2044
|
+
uniffiTraitInterfaceCall(
|
|
2045
|
+
callStatus: uniffiCallStatus,
|
|
2046
|
+
makeCall: makeCall,
|
|
2047
|
+
writeReturn: writeReturn
|
|
2048
|
+
)
|
|
2049
|
+
},
|
|
2050
|
+
uniffiFree: { (uniffiHandle: UInt64) -> () in
|
|
2051
|
+
let result = try? FfiConverterCallbackInterfaceMemoryProvider.handleMap.remove(handle: uniffiHandle)
|
|
2052
|
+
if result == nil {
|
|
2053
|
+
print("Uniffi callback interface MemoryProvider: handle missing in uniffiFree")
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
)
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
private func uniffiCallbackInitMemoryProvider() {
|
|
2060
|
+
uniffi_native_agent_ffi_fn_init_callback_vtable_memoryprovider(&UniffiCallbackInterfaceMemoryProvider.vtable)
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
// FfiConverter protocol for callback interfaces
|
|
2064
|
+
#if swift(>=5.8)
|
|
2065
|
+
@_documentation(visibility: private)
|
|
2066
|
+
#endif
|
|
2067
|
+
fileprivate struct FfiConverterCallbackInterfaceMemoryProvider {
|
|
2068
|
+
fileprivate static var handleMap = UniffiHandleMap<MemoryProvider>()
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
#if swift(>=5.8)
|
|
2072
|
+
@_documentation(visibility: private)
|
|
2073
|
+
#endif
|
|
2074
|
+
extension FfiConverterCallbackInterfaceMemoryProvider : FfiConverter {
|
|
2075
|
+
typealias SwiftType = MemoryProvider
|
|
2076
|
+
typealias FfiType = UInt64
|
|
2077
|
+
|
|
2078
|
+
#if swift(>=5.8)
|
|
2079
|
+
@_documentation(visibility: private)
|
|
2080
|
+
#endif
|
|
2081
|
+
public static func lift(_ handle: UInt64) throws -> SwiftType {
|
|
2082
|
+
try handleMap.get(handle: handle)
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
#if swift(>=5.8)
|
|
2086
|
+
@_documentation(visibility: private)
|
|
2087
|
+
#endif
|
|
2088
|
+
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {
|
|
2089
|
+
let handle: UInt64 = try readInt(&buf)
|
|
2090
|
+
return try lift(handle)
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
#if swift(>=5.8)
|
|
2094
|
+
@_documentation(visibility: private)
|
|
2095
|
+
#endif
|
|
2096
|
+
public static func lower(_ v: SwiftType) -> UInt64 {
|
|
2097
|
+
return handleMap.insert(obj: v)
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
#if swift(>=5.8)
|
|
2101
|
+
@_documentation(visibility: private)
|
|
2102
|
+
#endif
|
|
2103
|
+
public static func write(_ v: SwiftType, into buf: inout [UInt8]) {
|
|
2104
|
+
writeInt(&buf, lower(v))
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
|
|
2110
|
+
|
|
1879
2111
|
/**
|
|
1880
2112
|
* Callback interface for events from the native agent.
|
|
1881
2113
|
*/
|
|
@@ -1890,13 +2122,7 @@ public protocol NativeEventCallback : AnyObject {
|
|
|
1890
2122
|
|
|
1891
2123
|
}
|
|
1892
2124
|
|
|
1893
|
-
|
|
1894
|
-
// to free the callback once it's dropped by Rust.
|
|
1895
|
-
private let IDX_CALLBACK_FREE: Int32 = 0
|
|
1896
|
-
// Callback return codes
|
|
1897
|
-
private let UNIFFI_CALLBACK_SUCCESS: Int32 = 0
|
|
1898
|
-
private let UNIFFI_CALLBACK_ERROR: Int32 = 1
|
|
1899
|
-
private let UNIFFI_CALLBACK_UNEXPECTED_ERROR: Int32 = 2
|
|
2125
|
+
|
|
1900
2126
|
|
|
1901
2127
|
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
1902
2128
|
fileprivate struct UniffiCallbackInterfaceNativeEventCallback {
|
|
@@ -2278,6 +2504,9 @@ private var initializationResult: InitializationResult = {
|
|
|
2278
2504
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_heartbeat_config() != 33968) {
|
|
2279
2505
|
return InitializationResult.apiChecksumMismatch
|
|
2280
2506
|
}
|
|
2507
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_memory_provider() != 23171) {
|
|
2508
|
+
return InitializationResult.apiChecksumMismatch
|
|
2509
|
+
}
|
|
2281
2510
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_notifier() != 58795) {
|
|
2282
2511
|
return InitializationResult.apiChecksumMismatch
|
|
2283
2512
|
}
|
|
@@ -2302,6 +2531,21 @@ private var initializationResult: InitializationResult = {
|
|
|
2302
2531
|
if (uniffi_native_agent_ffi_checksum_constructor_nativeagenthandle_new() != 18383) {
|
|
2303
2532
|
return InitializationResult.apiChecksumMismatch
|
|
2304
2533
|
}
|
|
2534
|
+
if (uniffi_native_agent_ffi_checksum_method_memoryprovider_store() != 49136) {
|
|
2535
|
+
return InitializationResult.apiChecksumMismatch
|
|
2536
|
+
}
|
|
2537
|
+
if (uniffi_native_agent_ffi_checksum_method_memoryprovider_recall() != 3170) {
|
|
2538
|
+
return InitializationResult.apiChecksumMismatch
|
|
2539
|
+
}
|
|
2540
|
+
if (uniffi_native_agent_ffi_checksum_method_memoryprovider_forget() != 43231) {
|
|
2541
|
+
return InitializationResult.apiChecksumMismatch
|
|
2542
|
+
}
|
|
2543
|
+
if (uniffi_native_agent_ffi_checksum_method_memoryprovider_search() != 19100) {
|
|
2544
|
+
return InitializationResult.apiChecksumMismatch
|
|
2545
|
+
}
|
|
2546
|
+
if (uniffi_native_agent_ffi_checksum_method_memoryprovider_list() != 46802) {
|
|
2547
|
+
return InitializationResult.apiChecksumMismatch
|
|
2548
|
+
}
|
|
2305
2549
|
if (uniffi_native_agent_ffi_checksum_method_nativeeventcallback_on_event() != 29742) {
|
|
2306
2550
|
return InitializationResult.apiChecksumMismatch
|
|
2307
2551
|
}
|
|
@@ -2309,6 +2553,7 @@ private var initializationResult: InitializationResult = {
|
|
|
2309
2553
|
return InitializationResult.apiChecksumMismatch
|
|
2310
2554
|
}
|
|
2311
2555
|
|
|
2556
|
+
uniffiCallbackInitMemoryProvider()
|
|
2312
2557
|
uniffiCallbackInitNativeEventCallback()
|
|
2313
2558
|
uniffiCallbackInitNativeNotifier()
|
|
2314
2559
|
return InitializationResult.ok
|