capacitor-native-agent 0.3.4 → 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.
Files changed (19) hide show
  1. package/Package.swift +3 -1
  2. package/android/build.gradle +1 -0
  3. package/android/src/main/java/com/t6x/plugins/nativeagent/LanceDBBridge.kt +27 -0
  4. package/android/src/main/java/com/t6x/plugins/nativeagent/MemoryProviderImpl.kt +177 -0
  5. package/android/src/main/java/com/t6x/plugins/nativeagent/NativeAgentPlugin.kt +6 -0
  6. package/android/src/main/java/uniffi/native_agent_ffi/native_agent_ffi.kt +230 -8
  7. package/android/src/main/jniLibs/arm64-v8a/libnative_agent_ffi.so +0 -0
  8. package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64/Headers/{native_agent_ffiFFI → native_agent_ffi}/module.modulemap +1 -1
  9. package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64/Headers/{native_agent_ffiFFI → native_agent_ffi}/native_agent_ffiFFI.h +152 -0
  10. package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64/libnative_agent_ffi.a +0 -0
  11. package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64-simulator/Headers/{native_agent_ffiFFI → native_agent_ffi}/module.modulemap +1 -1
  12. package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64-simulator/Headers/{native_agent_ffiFFI → native_agent_ffi}/native_agent_ffiFFI.h +152 -0
  13. package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64-simulator/libnative_agent_ffi.a +0 -0
  14. package/ios/Sources/NativeAgentPlugin/Generated/native_agent_ffi.swift +252 -7
  15. package/ios/Sources/NativeAgentPlugin/Generated/native_agent_ffiFFI.h +93 -0
  16. package/ios/Sources/NativeAgentPlugin/LanceDBBridge.swift +70 -0
  17. package/ios/Sources/NativeAgentPlugin/MemoryProviderImpl.swift +206 -0
  18. package/ios/Sources/NativeAgentPlugin/NativeAgentPlugin.swift +3 -0
  19. 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
@@ -257,6 +292,25 @@ typedef void (*UniffiCallbackInterfaceNativeEventCallbackMethod0)(uint64_t, Rust
257
292
  RustCallStatus *_Nonnull uniffiCallStatus
258
293
  );
259
294
 
295
+ #endif
296
+ #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_NATIVE_NOTIFIER_METHOD0
297
+ #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_NATIVE_NOTIFIER_METHOD0
298
+ typedef void (*UniffiCallbackInterfaceNativeNotifierMethod0)(uint64_t, RustBuffer, RustBuffer, RustBuffer, RustBuffer* _Nonnull,
299
+ RustCallStatus *_Nonnull uniffiCallStatus
300
+ );
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
+
260
314
  #endif
261
315
  #ifndef UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_NATIVE_EVENT_CALLBACK
262
316
  #define UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_NATIVE_EVENT_CALLBACK
@@ -265,6 +319,14 @@ typedef struct UniffiVTableCallbackInterfaceNativeEventCallback {
265
319
  UniffiCallbackInterfaceFree _Nonnull uniffiFree;
266
320
  } UniffiVTableCallbackInterfaceNativeEventCallback;
267
321
 
322
+ #endif
323
+ #ifndef UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_NATIVE_NOTIFIER
324
+ #define UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_NATIVE_NOTIFIER
325
+ typedef struct UniffiVTableCallbackInterfaceNativeNotifier {
326
+ UniffiCallbackInterfaceNativeNotifierMethod0 _Nonnull sendNotification;
327
+ UniffiCallbackInterfaceFree _Nonnull uniffiFree;
328
+ } UniffiVTableCallbackInterfaceNativeNotifier;
329
+
268
330
  #endif
269
331
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_CLONE_NATIVEAGENTHANDLE
270
332
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_CLONE_NATIVEAGENTHANDLE
@@ -376,6 +438,11 @@ RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_skills(void*
376
438
  RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_load_session(void*_Nonnull ptr, RustBuffer session_key, RustCallStatus *_Nonnull out_status
377
439
  );
378
440
  #endif
441
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
442
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
443
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_persist_config(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
444
+ );
445
+ #endif
379
446
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_REFRESH_TOKEN
380
447
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_REFRESH_TOKEN
381
448
  RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_refresh_token(void*_Nonnull ptr, RustBuffer provider, RustCallStatus *_Nonnull out_status
@@ -441,6 +508,16 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_event_callback(void
441
508
  void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_heartbeat_config(void*_Nonnull ptr, RustBuffer config_json, RustCallStatus *_Nonnull out_status
442
509
  );
443
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
516
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
517
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
518
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_notifier(void*_Nonnull ptr, uint64_t notifier, RustCallStatus *_Nonnull out_status
519
+ );
520
+ #endif
444
521
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_SCHEDULER_CONFIG
445
522
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_SCHEDULER_CONFIG
446
523
  void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_scheduler_config(void*_Nonnull ptr, RustBuffer config_json, RustCallStatus *_Nonnull out_status
@@ -471,11 +548,26 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_update_cron_job(void*_N
471
548
  void uniffi_native_agent_ffi_fn_method_nativeagenthandle_update_skill(void*_Nonnull ptr, RustBuffer id, RustBuffer patch_json, RustCallStatus *_Nonnull out_status
472
549
  );
473
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
474
556
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVEEVENTCALLBACK
475
557
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVEEVENTCALLBACK
476
558
  void uniffi_native_agent_ffi_fn_init_callback_vtable_nativeeventcallback(UniffiVTableCallbackInterfaceNativeEventCallback* _Nonnull vtable
477
559
  );
478
560
  #endif
561
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVENOTIFIER
562
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVENOTIFIER
563
+ void uniffi_native_agent_ffi_fn_init_callback_vtable_nativenotifier(UniffiVTableCallbackInterfaceNativeNotifier* _Nonnull vtable
564
+ );
565
+ #endif
566
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_FUNC_CREATE_HANDLE_FROM_PERSISTED_CONFIG
567
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_FUNC_CREATE_HANDLE_FROM_PERSISTED_CONFIG
568
+ void*_Nonnull uniffi_native_agent_ffi_fn_func_create_handle_from_persisted_config(RustBuffer config_path, RustCallStatus *_Nonnull out_status
569
+ );
570
+ #endif
479
571
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_FUNC_INIT_WORKSPACE
480
572
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_FUNC_INIT_WORKSPACE
481
573
  void uniffi_native_agent_ffi_fn_func_init_workspace(RustBuffer config, RustCallStatus *_Nonnull out_status
@@ -759,6 +851,12 @@ void ffi_native_agent_ffi_rust_future_free_void(uint64_t handle
759
851
  #ifndef UNIFFI_FFIDEF_FFI_NATIVE_AGENT_FFI_RUST_FUTURE_COMPLETE_VOID
760
852
  #define UNIFFI_FFIDEF_FFI_NATIVE_AGENT_FFI_RUST_FUTURE_COMPLETE_VOID
761
853
  void ffi_native_agent_ffi_rust_future_complete_void(uint64_t handle, RustCallStatus *_Nonnull out_status
854
+ );
855
+ #endif
856
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_FUNC_CREATE_HANDLE_FROM_PERSISTED_CONFIG
857
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_FUNC_CREATE_HANDLE_FROM_PERSISTED_CONFIG
858
+ uint16_t uniffi_native_agent_ffi_checksum_func_create_handle_from_persisted_config(void
859
+
762
860
  );
763
861
  #endif
764
862
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_FUNC_INIT_WORKSPACE
@@ -879,6 +977,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_skills(v
879
977
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LOAD_SESSION
880
978
  uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_session(void
881
979
 
980
+ );
981
+ #endif
982
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
983
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
984
+ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_persist_config(void
985
+
882
986
  );
883
987
  #endif
884
988
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_REFRESH_TOKEN
@@ -957,6 +1061,18 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_event_cal
957
1061
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_HEARTBEAT_CONFIG
958
1062
  uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_heartbeat_config(void
959
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
+
1070
+ );
1071
+ #endif
1072
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
1073
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
1074
+ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_notifier(void
1075
+
960
1076
  );
961
1077
  #endif
962
1078
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_SCHEDULER_CONFIG
@@ -999,12 +1115,48 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_update_skill(
999
1115
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_CONSTRUCTOR_NATIVEAGENTHANDLE_NEW
1000
1116
  uint16_t uniffi_native_agent_ffi_checksum_constructor_nativeagenthandle_new(void
1001
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
+
1002
1148
  );
1003
1149
  #endif
1004
1150
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEEVENTCALLBACK_ON_EVENT
1005
1151
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEEVENTCALLBACK_ON_EVENT
1006
1152
  uint16_t uniffi_native_agent_ffi_checksum_method_nativeeventcallback_on_event(void
1007
1153
 
1154
+ );
1155
+ #endif
1156
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVENOTIFIER_SEND_NOTIFICATION
1157
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVENOTIFIER_SEND_NOTIFICATION
1158
+ uint16_t uniffi_native_agent_ffi_checksum_method_nativenotifier_send_notification(void
1159
+
1008
1160
  );
1009
1161
  #endif
1010
1162
  #ifndef UNIFFI_FFIDEF_FFI_NATIVE_AGENT_FFI_UNIFFI_CONTRACT_VERSION
@@ -1,4 +1,4 @@
1
1
  module native_agent_ffiFFI {
2
2
  header "native_agent_ffiFFI.h"
3
3
  export *
4
- }
4
+ }
@@ -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
@@ -257,6 +292,25 @@ typedef void (*UniffiCallbackInterfaceNativeEventCallbackMethod0)(uint64_t, Rust
257
292
  RustCallStatus *_Nonnull uniffiCallStatus
258
293
  );
259
294
 
295
+ #endif
296
+ #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_NATIVE_NOTIFIER_METHOD0
297
+ #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_NATIVE_NOTIFIER_METHOD0
298
+ typedef void (*UniffiCallbackInterfaceNativeNotifierMethod0)(uint64_t, RustBuffer, RustBuffer, RustBuffer, RustBuffer* _Nonnull,
299
+ RustCallStatus *_Nonnull uniffiCallStatus
300
+ );
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
+
260
314
  #endif
261
315
  #ifndef UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_NATIVE_EVENT_CALLBACK
262
316
  #define UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_NATIVE_EVENT_CALLBACK
@@ -265,6 +319,14 @@ typedef struct UniffiVTableCallbackInterfaceNativeEventCallback {
265
319
  UniffiCallbackInterfaceFree _Nonnull uniffiFree;
266
320
  } UniffiVTableCallbackInterfaceNativeEventCallback;
267
321
 
322
+ #endif
323
+ #ifndef UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_NATIVE_NOTIFIER
324
+ #define UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_NATIVE_NOTIFIER
325
+ typedef struct UniffiVTableCallbackInterfaceNativeNotifier {
326
+ UniffiCallbackInterfaceNativeNotifierMethod0 _Nonnull sendNotification;
327
+ UniffiCallbackInterfaceFree _Nonnull uniffiFree;
328
+ } UniffiVTableCallbackInterfaceNativeNotifier;
329
+
268
330
  #endif
269
331
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_CLONE_NATIVEAGENTHANDLE
270
332
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_CLONE_NATIVEAGENTHANDLE
@@ -376,6 +438,11 @@ RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_list_skills(void*
376
438
  RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_load_session(void*_Nonnull ptr, RustBuffer session_key, RustCallStatus *_Nonnull out_status
377
439
  );
378
440
  #endif
441
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
442
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
443
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_persist_config(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
444
+ );
445
+ #endif
379
446
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_REFRESH_TOKEN
380
447
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_REFRESH_TOKEN
381
448
  RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_refresh_token(void*_Nonnull ptr, RustBuffer provider, RustCallStatus *_Nonnull out_status
@@ -441,6 +508,16 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_event_callback(void
441
508
  void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_heartbeat_config(void*_Nonnull ptr, RustBuffer config_json, RustCallStatus *_Nonnull out_status
442
509
  );
443
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
516
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
517
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
518
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_notifier(void*_Nonnull ptr, uint64_t notifier, RustCallStatus *_Nonnull out_status
519
+ );
520
+ #endif
444
521
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_SCHEDULER_CONFIG
445
522
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_SCHEDULER_CONFIG
446
523
  void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_scheduler_config(void*_Nonnull ptr, RustBuffer config_json, RustCallStatus *_Nonnull out_status
@@ -471,11 +548,26 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_update_cron_job(void*_N
471
548
  void uniffi_native_agent_ffi_fn_method_nativeagenthandle_update_skill(void*_Nonnull ptr, RustBuffer id, RustBuffer patch_json, RustCallStatus *_Nonnull out_status
472
549
  );
473
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
474
556
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVEEVENTCALLBACK
475
557
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVEEVENTCALLBACK
476
558
  void uniffi_native_agent_ffi_fn_init_callback_vtable_nativeeventcallback(UniffiVTableCallbackInterfaceNativeEventCallback* _Nonnull vtable
477
559
  );
478
560
  #endif
561
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVENOTIFIER
562
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVENOTIFIER
563
+ void uniffi_native_agent_ffi_fn_init_callback_vtable_nativenotifier(UniffiVTableCallbackInterfaceNativeNotifier* _Nonnull vtable
564
+ );
565
+ #endif
566
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_FUNC_CREATE_HANDLE_FROM_PERSISTED_CONFIG
567
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_FUNC_CREATE_HANDLE_FROM_PERSISTED_CONFIG
568
+ void*_Nonnull uniffi_native_agent_ffi_fn_func_create_handle_from_persisted_config(RustBuffer config_path, RustCallStatus *_Nonnull out_status
569
+ );
570
+ #endif
479
571
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_FUNC_INIT_WORKSPACE
480
572
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_FUNC_INIT_WORKSPACE
481
573
  void uniffi_native_agent_ffi_fn_func_init_workspace(RustBuffer config, RustCallStatus *_Nonnull out_status
@@ -759,6 +851,12 @@ void ffi_native_agent_ffi_rust_future_free_void(uint64_t handle
759
851
  #ifndef UNIFFI_FFIDEF_FFI_NATIVE_AGENT_FFI_RUST_FUTURE_COMPLETE_VOID
760
852
  #define UNIFFI_FFIDEF_FFI_NATIVE_AGENT_FFI_RUST_FUTURE_COMPLETE_VOID
761
853
  void ffi_native_agent_ffi_rust_future_complete_void(uint64_t handle, RustCallStatus *_Nonnull out_status
854
+ );
855
+ #endif
856
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_FUNC_CREATE_HANDLE_FROM_PERSISTED_CONFIG
857
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_FUNC_CREATE_HANDLE_FROM_PERSISTED_CONFIG
858
+ uint16_t uniffi_native_agent_ffi_checksum_func_create_handle_from_persisted_config(void
859
+
762
860
  );
763
861
  #endif
764
862
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_FUNC_INIT_WORKSPACE
@@ -879,6 +977,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_list_skills(v
879
977
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_LOAD_SESSION
880
978
  uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_load_session(void
881
979
 
980
+ );
981
+ #endif
982
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
983
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_PERSIST_CONFIG
984
+ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_persist_config(void
985
+
882
986
  );
883
987
  #endif
884
988
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_REFRESH_TOKEN
@@ -957,6 +1061,18 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_event_cal
957
1061
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_HEARTBEAT_CONFIG
958
1062
  uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_heartbeat_config(void
959
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
+
1070
+ );
1071
+ #endif
1072
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
1073
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
1074
+ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_notifier(void
1075
+
960
1076
  );
961
1077
  #endif
962
1078
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_SCHEDULER_CONFIG
@@ -999,12 +1115,48 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_update_skill(
999
1115
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_CONSTRUCTOR_NATIVEAGENTHANDLE_NEW
1000
1116
  uint16_t uniffi_native_agent_ffi_checksum_constructor_nativeagenthandle_new(void
1001
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
+
1002
1148
  );
1003
1149
  #endif
1004
1150
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEEVENTCALLBACK_ON_EVENT
1005
1151
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEEVENTCALLBACK_ON_EVENT
1006
1152
  uint16_t uniffi_native_agent_ffi_checksum_method_nativeeventcallback_on_event(void
1007
1153
 
1154
+ );
1155
+ #endif
1156
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVENOTIFIER_SEND_NOTIFICATION
1157
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVENOTIFIER_SEND_NOTIFICATION
1158
+ uint16_t uniffi_native_agent_ffi_checksum_method_nativenotifier_send_notification(void
1159
+
1008
1160
  );
1009
1161
  #endif
1010
1162
  #ifndef UNIFFI_FFIDEF_FFI_NATIVE_AGENT_FFI_UNIFFI_CONTRACT_VERSION