capacitor-native-agent 0.3.5 → 0.3.7
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 +16 -0
- package/android/src/main/java/uniffi/native_agent_ffi/native_agent_ffi.kt +260 -8
- package/android/src/main/jniLibs/arm64-v8a/libnative_agent_ffi.so +0 -0
- package/dist/esm/definitions.d.ts +11 -0
- package/dist/esm/definitions.d.ts.map +1 -1
- package/dist/esm/plugin.d.ts.map +1 -1
- package/dist/esm/plugin.js +1 -0
- package/dist/esm/plugin.js.map +1 -1
- package/ios/Frameworks/NativeAgentFFI.xcframework/Info.plist +4 -4
- 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_ffi/native_agent_ffi.swift +2594 -0
- package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64/Headers/{native_agent_ffiFFI → native_agent_ffi}/native_agent_ffiFFI.h +104 -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_ffi/native_agent_ffi.swift +2594 -0
- package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64-simulator/Headers/{native_agent_ffiFFI → native_agent_ffi}/native_agent_ffiFFI.h +104 -0
- package/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64-simulator/libnative_agent_ffi.a +0 -0
- package/ios/Sources/NativeAgentPlugin/Generated/native_agent_ffi.swift +273 -7
- package/ios/Sources/NativeAgentPlugin/Generated/native_agent_ffiFFI.h +104 -0
- package/ios/Sources/NativeAgentPlugin/LanceDBBridge.swift +70 -0
- package/ios/Sources/NativeAgentPlugin/MemoryProviderImpl.swift +206 -0
- package/ios/Sources/NativeAgentPlugin/NativeAgentPlugin.swift +31 -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
|
|
@@ -326,6 +373,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_delete_auth(void*_Nonnu
|
|
|
326
373
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_end_skill(void*_Nonnull ptr, RustBuffer skill_id, RustCallStatus *_Nonnull out_status
|
|
327
374
|
);
|
|
328
375
|
#endif
|
|
376
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_EXCHANGE_OAUTH_CODE
|
|
377
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_EXCHANGE_OAUTH_CODE
|
|
378
|
+
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_exchange_oauth_code(void*_Nonnull ptr, RustBuffer token_url, RustBuffer body_json, RustBuffer content_type, RustCallStatus *_Nonnull out_status
|
|
379
|
+
);
|
|
380
|
+
#endif
|
|
329
381
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_FOLLOW_UP
|
|
330
382
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_FOLLOW_UP
|
|
331
383
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_follow_up(void*_Nonnull ptr, RustBuffer prompt, RustCallStatus *_Nonnull out_status
|
|
@@ -461,6 +513,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_event_callback(void
|
|
|
461
513
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_heartbeat_config(void*_Nonnull ptr, RustBuffer config_json, RustCallStatus *_Nonnull out_status
|
|
462
514
|
);
|
|
463
515
|
#endif
|
|
516
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
517
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
518
|
+
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_memory_provider(void*_Nonnull ptr, uint64_t provider, RustCallStatus *_Nonnull out_status
|
|
519
|
+
);
|
|
520
|
+
#endif
|
|
464
521
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
|
|
465
522
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
|
|
466
523
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_notifier(void*_Nonnull ptr, uint64_t notifier, RustCallStatus *_Nonnull out_status
|
|
@@ -496,6 +553,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_update_cron_job(void*_N
|
|
|
496
553
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_update_skill(void*_Nonnull ptr, RustBuffer id, RustBuffer patch_json, RustCallStatus *_Nonnull out_status
|
|
497
554
|
);
|
|
498
555
|
#endif
|
|
556
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_MEMORYPROVIDER
|
|
557
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_MEMORYPROVIDER
|
|
558
|
+
void uniffi_native_agent_ffi_fn_init_callback_vtable_memoryprovider(UniffiVTableCallbackInterfaceMemoryProvider* _Nonnull vtable
|
|
559
|
+
);
|
|
560
|
+
#endif
|
|
499
561
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVEEVENTCALLBACK
|
|
500
562
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVEEVENTCALLBACK
|
|
501
563
|
void uniffi_native_agent_ffi_fn_init_callback_vtable_nativeeventcallback(UniffiVTableCallbackInterfaceNativeEventCallback* _Nonnull vtable
|
|
@@ -842,6 +904,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_delete_auth(v
|
|
|
842
904
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_END_SKILL
|
|
843
905
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_end_skill(void
|
|
844
906
|
|
|
907
|
+
);
|
|
908
|
+
#endif
|
|
909
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_EXCHANGE_OAUTH_CODE
|
|
910
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_EXCHANGE_OAUTH_CODE
|
|
911
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_exchange_oauth_code(void
|
|
912
|
+
|
|
845
913
|
);
|
|
846
914
|
#endif
|
|
847
915
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_FOLLOW_UP
|
|
@@ -1004,6 +1072,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_event_cal
|
|
|
1004
1072
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_HEARTBEAT_CONFIG
|
|
1005
1073
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_heartbeat_config(void
|
|
1006
1074
|
|
|
1075
|
+
);
|
|
1076
|
+
#endif
|
|
1077
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
1078
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
1079
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_memory_provider(void
|
|
1080
|
+
|
|
1007
1081
|
);
|
|
1008
1082
|
#endif
|
|
1009
1083
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
|
|
@@ -1052,6 +1126,36 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_update_skill(
|
|
|
1052
1126
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_CONSTRUCTOR_NATIVEAGENTHANDLE_NEW
|
|
1053
1127
|
uint16_t uniffi_native_agent_ffi_checksum_constructor_nativeagenthandle_new(void
|
|
1054
1128
|
|
|
1129
|
+
);
|
|
1130
|
+
#endif
|
|
1131
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_STORE
|
|
1132
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_STORE
|
|
1133
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_store(void
|
|
1134
|
+
|
|
1135
|
+
);
|
|
1136
|
+
#endif
|
|
1137
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_RECALL
|
|
1138
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_RECALL
|
|
1139
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_recall(void
|
|
1140
|
+
|
|
1141
|
+
);
|
|
1142
|
+
#endif
|
|
1143
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_FORGET
|
|
1144
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_FORGET
|
|
1145
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_forget(void
|
|
1146
|
+
|
|
1147
|
+
);
|
|
1148
|
+
#endif
|
|
1149
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_SEARCH
|
|
1150
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_SEARCH
|
|
1151
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_search(void
|
|
1152
|
+
|
|
1153
|
+
);
|
|
1154
|
+
#endif
|
|
1155
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_LIST
|
|
1156
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_LIST
|
|
1157
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_list(void
|
|
1158
|
+
|
|
1055
1159
|
);
|
|
1056
1160
|
#endif
|
|
1057
1161
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEEVENTCALLBACK_ON_EVENT
|
|
Binary file
|
|
@@ -533,6 +533,11 @@ public protocol NativeAgentHandleProtocol : AnyObject {
|
|
|
533
533
|
*/
|
|
534
534
|
func endSkill(skillId: String) throws
|
|
535
535
|
|
|
536
|
+
/**
|
|
537
|
+
* Exchange an OAuth authorization code for tokens.
|
|
538
|
+
*/
|
|
539
|
+
func exchangeOauthCode(tokenUrl: String, bodyJson: String, contentType: String?) throws -> String
|
|
540
|
+
|
|
536
541
|
/**
|
|
537
542
|
* Follow up on the current conversation.
|
|
538
543
|
*/
|
|
@@ -665,6 +670,8 @@ public protocol NativeAgentHandleProtocol : AnyObject {
|
|
|
665
670
|
*/
|
|
666
671
|
func setHeartbeatConfig(configJson: String) throws
|
|
667
672
|
|
|
673
|
+
func setMemoryProvider(provider: MemoryProvider) throws
|
|
674
|
+
|
|
668
675
|
func setNotifier(notifier: NativeNotifier) throws
|
|
669
676
|
|
|
670
677
|
/**
|
|
@@ -823,6 +830,19 @@ open func endSkill(skillId: String)throws {try rustCallWithError(FfiConverterTy
|
|
|
823
830
|
FfiConverterString.lower(skillId),$0
|
|
824
831
|
)
|
|
825
832
|
}
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* Exchange an OAuth authorization code for tokens.
|
|
837
|
+
*/
|
|
838
|
+
open func exchangeOauthCode(tokenUrl: String, bodyJson: String, contentType: String?)throws -> String {
|
|
839
|
+
return try FfiConverterString.lift(try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
840
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_exchange_oauth_code(self.uniffiClonePointer(),
|
|
841
|
+
FfiConverterString.lower(tokenUrl),
|
|
842
|
+
FfiConverterString.lower(bodyJson),
|
|
843
|
+
FfiConverterOptionString.lower(contentType),$0
|
|
844
|
+
)
|
|
845
|
+
})
|
|
826
846
|
}
|
|
827
847
|
|
|
828
848
|
/**
|
|
@@ -1114,6 +1134,13 @@ open func setHeartbeatConfig(configJson: String)throws {try rustCallWithError(F
|
|
|
1114
1134
|
}
|
|
1115
1135
|
}
|
|
1116
1136
|
|
|
1137
|
+
open func setMemoryProvider(provider: MemoryProvider)throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1138
|
+
uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_memory_provider(self.uniffiClonePointer(),
|
|
1139
|
+
FfiConverterCallbackInterfaceMemoryProvider.lower(provider),$0
|
|
1140
|
+
)
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1117
1144
|
open func setNotifier(notifier: NativeNotifier)throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
|
|
1118
1145
|
uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_notifier(self.uniffiClonePointer(),
|
|
1119
1146
|
FfiConverterCallbackInterfaceNativeNotifier.lower(notifier),$0
|
|
@@ -1876,6 +1903,229 @@ extension NativeAgentError: Foundation.LocalizedError {
|
|
|
1876
1903
|
|
|
1877
1904
|
|
|
1878
1905
|
|
|
1906
|
+
/**
|
|
1907
|
+
* Callback interface for memory operations (LanceDB or any vector store).
|
|
1908
|
+
* Implemented by Kotlin/Swift, which bridges to the actual memory backend.
|
|
1909
|
+
*/
|
|
1910
|
+
public protocol MemoryProvider : AnyObject {
|
|
1911
|
+
|
|
1912
|
+
func store(key: String, text: String, metadataJson: String?) -> String
|
|
1913
|
+
|
|
1914
|
+
func recall(query: String, limit: UInt32) -> String
|
|
1915
|
+
|
|
1916
|
+
func forget(key: String) -> String
|
|
1917
|
+
|
|
1918
|
+
func search(query: String, maxResults: UInt32) -> String
|
|
1919
|
+
|
|
1920
|
+
func list(prefix: String?, limit: UInt32?) -> String
|
|
1921
|
+
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
// Magic number for the Rust proxy to call using the same mechanism as every other method,
|
|
1925
|
+
// to free the callback once it's dropped by Rust.
|
|
1926
|
+
private let IDX_CALLBACK_FREE: Int32 = 0
|
|
1927
|
+
// Callback return codes
|
|
1928
|
+
private let UNIFFI_CALLBACK_SUCCESS: Int32 = 0
|
|
1929
|
+
private let UNIFFI_CALLBACK_ERROR: Int32 = 1
|
|
1930
|
+
private let UNIFFI_CALLBACK_UNEXPECTED_ERROR: Int32 = 2
|
|
1931
|
+
|
|
1932
|
+
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
1933
|
+
fileprivate struct UniffiCallbackInterfaceMemoryProvider {
|
|
1934
|
+
|
|
1935
|
+
// Create the VTable using a series of closures.
|
|
1936
|
+
// Swift automatically converts these into C callback functions.
|
|
1937
|
+
static var vtable: UniffiVTableCallbackInterfaceMemoryProvider = UniffiVTableCallbackInterfaceMemoryProvider(
|
|
1938
|
+
store: { (
|
|
1939
|
+
uniffiHandle: UInt64,
|
|
1940
|
+
key: RustBuffer,
|
|
1941
|
+
text: RustBuffer,
|
|
1942
|
+
metadataJson: RustBuffer,
|
|
1943
|
+
uniffiOutReturn: UnsafeMutablePointer<RustBuffer>,
|
|
1944
|
+
uniffiCallStatus: UnsafeMutablePointer<RustCallStatus>
|
|
1945
|
+
) in
|
|
1946
|
+
let makeCall = {
|
|
1947
|
+
() throws -> String in
|
|
1948
|
+
guard let uniffiObj = try? FfiConverterCallbackInterfaceMemoryProvider.handleMap.get(handle: uniffiHandle) else {
|
|
1949
|
+
throw UniffiInternalError.unexpectedStaleHandle
|
|
1950
|
+
}
|
|
1951
|
+
return uniffiObj.store(
|
|
1952
|
+
key: try FfiConverterString.lift(key),
|
|
1953
|
+
text: try FfiConverterString.lift(text),
|
|
1954
|
+
metadataJson: try FfiConverterOptionString.lift(metadataJson)
|
|
1955
|
+
)
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
|
|
1959
|
+
let writeReturn = { uniffiOutReturn.pointee = FfiConverterString.lower($0) }
|
|
1960
|
+
uniffiTraitInterfaceCall(
|
|
1961
|
+
callStatus: uniffiCallStatus,
|
|
1962
|
+
makeCall: makeCall,
|
|
1963
|
+
writeReturn: writeReturn
|
|
1964
|
+
)
|
|
1965
|
+
},
|
|
1966
|
+
recall: { (
|
|
1967
|
+
uniffiHandle: UInt64,
|
|
1968
|
+
query: RustBuffer,
|
|
1969
|
+
limit: UInt32,
|
|
1970
|
+
uniffiOutReturn: UnsafeMutablePointer<RustBuffer>,
|
|
1971
|
+
uniffiCallStatus: UnsafeMutablePointer<RustCallStatus>
|
|
1972
|
+
) in
|
|
1973
|
+
let makeCall = {
|
|
1974
|
+
() throws -> String in
|
|
1975
|
+
guard let uniffiObj = try? FfiConverterCallbackInterfaceMemoryProvider.handleMap.get(handle: uniffiHandle) else {
|
|
1976
|
+
throw UniffiInternalError.unexpectedStaleHandle
|
|
1977
|
+
}
|
|
1978
|
+
return uniffiObj.recall(
|
|
1979
|
+
query: try FfiConverterString.lift(query),
|
|
1980
|
+
limit: try FfiConverterUInt32.lift(limit)
|
|
1981
|
+
)
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
let writeReturn = { uniffiOutReturn.pointee = FfiConverterString.lower($0) }
|
|
1986
|
+
uniffiTraitInterfaceCall(
|
|
1987
|
+
callStatus: uniffiCallStatus,
|
|
1988
|
+
makeCall: makeCall,
|
|
1989
|
+
writeReturn: writeReturn
|
|
1990
|
+
)
|
|
1991
|
+
},
|
|
1992
|
+
forget: { (
|
|
1993
|
+
uniffiHandle: UInt64,
|
|
1994
|
+
key: RustBuffer,
|
|
1995
|
+
uniffiOutReturn: UnsafeMutablePointer<RustBuffer>,
|
|
1996
|
+
uniffiCallStatus: UnsafeMutablePointer<RustCallStatus>
|
|
1997
|
+
) in
|
|
1998
|
+
let makeCall = {
|
|
1999
|
+
() throws -> String in
|
|
2000
|
+
guard let uniffiObj = try? FfiConverterCallbackInterfaceMemoryProvider.handleMap.get(handle: uniffiHandle) else {
|
|
2001
|
+
throw UniffiInternalError.unexpectedStaleHandle
|
|
2002
|
+
}
|
|
2003
|
+
return uniffiObj.forget(
|
|
2004
|
+
key: try FfiConverterString.lift(key)
|
|
2005
|
+
)
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
let writeReturn = { uniffiOutReturn.pointee = FfiConverterString.lower($0) }
|
|
2010
|
+
uniffiTraitInterfaceCall(
|
|
2011
|
+
callStatus: uniffiCallStatus,
|
|
2012
|
+
makeCall: makeCall,
|
|
2013
|
+
writeReturn: writeReturn
|
|
2014
|
+
)
|
|
2015
|
+
},
|
|
2016
|
+
search: { (
|
|
2017
|
+
uniffiHandle: UInt64,
|
|
2018
|
+
query: RustBuffer,
|
|
2019
|
+
maxResults: UInt32,
|
|
2020
|
+
uniffiOutReturn: UnsafeMutablePointer<RustBuffer>,
|
|
2021
|
+
uniffiCallStatus: UnsafeMutablePointer<RustCallStatus>
|
|
2022
|
+
) in
|
|
2023
|
+
let makeCall = {
|
|
2024
|
+
() throws -> String in
|
|
2025
|
+
guard let uniffiObj = try? FfiConverterCallbackInterfaceMemoryProvider.handleMap.get(handle: uniffiHandle) else {
|
|
2026
|
+
throw UniffiInternalError.unexpectedStaleHandle
|
|
2027
|
+
}
|
|
2028
|
+
return uniffiObj.search(
|
|
2029
|
+
query: try FfiConverterString.lift(query),
|
|
2030
|
+
maxResults: try FfiConverterUInt32.lift(maxResults)
|
|
2031
|
+
)
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
|
|
2035
|
+
let writeReturn = { uniffiOutReturn.pointee = FfiConverterString.lower($0) }
|
|
2036
|
+
uniffiTraitInterfaceCall(
|
|
2037
|
+
callStatus: uniffiCallStatus,
|
|
2038
|
+
makeCall: makeCall,
|
|
2039
|
+
writeReturn: writeReturn
|
|
2040
|
+
)
|
|
2041
|
+
},
|
|
2042
|
+
list: { (
|
|
2043
|
+
uniffiHandle: UInt64,
|
|
2044
|
+
prefix: RustBuffer,
|
|
2045
|
+
limit: RustBuffer,
|
|
2046
|
+
uniffiOutReturn: UnsafeMutablePointer<RustBuffer>,
|
|
2047
|
+
uniffiCallStatus: UnsafeMutablePointer<RustCallStatus>
|
|
2048
|
+
) in
|
|
2049
|
+
let makeCall = {
|
|
2050
|
+
() throws -> String in
|
|
2051
|
+
guard let uniffiObj = try? FfiConverterCallbackInterfaceMemoryProvider.handleMap.get(handle: uniffiHandle) else {
|
|
2052
|
+
throw UniffiInternalError.unexpectedStaleHandle
|
|
2053
|
+
}
|
|
2054
|
+
return uniffiObj.list(
|
|
2055
|
+
prefix: try FfiConverterOptionString.lift(prefix),
|
|
2056
|
+
limit: try FfiConverterOptionUInt32.lift(limit)
|
|
2057
|
+
)
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
|
|
2061
|
+
let writeReturn = { uniffiOutReturn.pointee = FfiConverterString.lower($0) }
|
|
2062
|
+
uniffiTraitInterfaceCall(
|
|
2063
|
+
callStatus: uniffiCallStatus,
|
|
2064
|
+
makeCall: makeCall,
|
|
2065
|
+
writeReturn: writeReturn
|
|
2066
|
+
)
|
|
2067
|
+
},
|
|
2068
|
+
uniffiFree: { (uniffiHandle: UInt64) -> () in
|
|
2069
|
+
let result = try? FfiConverterCallbackInterfaceMemoryProvider.handleMap.remove(handle: uniffiHandle)
|
|
2070
|
+
if result == nil {
|
|
2071
|
+
print("Uniffi callback interface MemoryProvider: handle missing in uniffiFree")
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
)
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
private func uniffiCallbackInitMemoryProvider() {
|
|
2078
|
+
uniffi_native_agent_ffi_fn_init_callback_vtable_memoryprovider(&UniffiCallbackInterfaceMemoryProvider.vtable)
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
// FfiConverter protocol for callback interfaces
|
|
2082
|
+
#if swift(>=5.8)
|
|
2083
|
+
@_documentation(visibility: private)
|
|
2084
|
+
#endif
|
|
2085
|
+
fileprivate struct FfiConverterCallbackInterfaceMemoryProvider {
|
|
2086
|
+
fileprivate static var handleMap = UniffiHandleMap<MemoryProvider>()
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
#if swift(>=5.8)
|
|
2090
|
+
@_documentation(visibility: private)
|
|
2091
|
+
#endif
|
|
2092
|
+
extension FfiConverterCallbackInterfaceMemoryProvider : FfiConverter {
|
|
2093
|
+
typealias SwiftType = MemoryProvider
|
|
2094
|
+
typealias FfiType = UInt64
|
|
2095
|
+
|
|
2096
|
+
#if swift(>=5.8)
|
|
2097
|
+
@_documentation(visibility: private)
|
|
2098
|
+
#endif
|
|
2099
|
+
public static func lift(_ handle: UInt64) throws -> SwiftType {
|
|
2100
|
+
try handleMap.get(handle: handle)
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
#if swift(>=5.8)
|
|
2104
|
+
@_documentation(visibility: private)
|
|
2105
|
+
#endif
|
|
2106
|
+
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {
|
|
2107
|
+
let handle: UInt64 = try readInt(&buf)
|
|
2108
|
+
return try lift(handle)
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
#if swift(>=5.8)
|
|
2112
|
+
@_documentation(visibility: private)
|
|
2113
|
+
#endif
|
|
2114
|
+
public static func lower(_ v: SwiftType) -> UInt64 {
|
|
2115
|
+
return handleMap.insert(obj: v)
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
#if swift(>=5.8)
|
|
2119
|
+
@_documentation(visibility: private)
|
|
2120
|
+
#endif
|
|
2121
|
+
public static func write(_ v: SwiftType, into buf: inout [UInt8]) {
|
|
2122
|
+
writeInt(&buf, lower(v))
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
|
|
2128
|
+
|
|
1879
2129
|
/**
|
|
1880
2130
|
* Callback interface for events from the native agent.
|
|
1881
2131
|
*/
|
|
@@ -1890,13 +2140,7 @@ public protocol NativeEventCallback : AnyObject {
|
|
|
1890
2140
|
|
|
1891
2141
|
}
|
|
1892
2142
|
|
|
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
|
|
2143
|
+
|
|
1900
2144
|
|
|
1901
2145
|
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
1902
2146
|
fileprivate struct UniffiCallbackInterfaceNativeEventCallback {
|
|
@@ -2197,6 +2441,9 @@ private var initializationResult: InitializationResult = {
|
|
|
2197
2441
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_end_skill() != 49984) {
|
|
2198
2442
|
return InitializationResult.apiChecksumMismatch
|
|
2199
2443
|
}
|
|
2444
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_exchange_oauth_code() != 22859) {
|
|
2445
|
+
return InitializationResult.apiChecksumMismatch
|
|
2446
|
+
}
|
|
2200
2447
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_follow_up() != 816) {
|
|
2201
2448
|
return InitializationResult.apiChecksumMismatch
|
|
2202
2449
|
}
|
|
@@ -2278,6 +2525,9 @@ private var initializationResult: InitializationResult = {
|
|
|
2278
2525
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_heartbeat_config() != 33968) {
|
|
2279
2526
|
return InitializationResult.apiChecksumMismatch
|
|
2280
2527
|
}
|
|
2528
|
+
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_memory_provider() != 23171) {
|
|
2529
|
+
return InitializationResult.apiChecksumMismatch
|
|
2530
|
+
}
|
|
2281
2531
|
if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_notifier() != 58795) {
|
|
2282
2532
|
return InitializationResult.apiChecksumMismatch
|
|
2283
2533
|
}
|
|
@@ -2302,6 +2552,21 @@ private var initializationResult: InitializationResult = {
|
|
|
2302
2552
|
if (uniffi_native_agent_ffi_checksum_constructor_nativeagenthandle_new() != 18383) {
|
|
2303
2553
|
return InitializationResult.apiChecksumMismatch
|
|
2304
2554
|
}
|
|
2555
|
+
if (uniffi_native_agent_ffi_checksum_method_memoryprovider_store() != 49136) {
|
|
2556
|
+
return InitializationResult.apiChecksumMismatch
|
|
2557
|
+
}
|
|
2558
|
+
if (uniffi_native_agent_ffi_checksum_method_memoryprovider_recall() != 3170) {
|
|
2559
|
+
return InitializationResult.apiChecksumMismatch
|
|
2560
|
+
}
|
|
2561
|
+
if (uniffi_native_agent_ffi_checksum_method_memoryprovider_forget() != 43231) {
|
|
2562
|
+
return InitializationResult.apiChecksumMismatch
|
|
2563
|
+
}
|
|
2564
|
+
if (uniffi_native_agent_ffi_checksum_method_memoryprovider_search() != 19100) {
|
|
2565
|
+
return InitializationResult.apiChecksumMismatch
|
|
2566
|
+
}
|
|
2567
|
+
if (uniffi_native_agent_ffi_checksum_method_memoryprovider_list() != 46802) {
|
|
2568
|
+
return InitializationResult.apiChecksumMismatch
|
|
2569
|
+
}
|
|
2305
2570
|
if (uniffi_native_agent_ffi_checksum_method_nativeeventcallback_on_event() != 29742) {
|
|
2306
2571
|
return InitializationResult.apiChecksumMismatch
|
|
2307
2572
|
}
|
|
@@ -2309,6 +2574,7 @@ private var initializationResult: InitializationResult = {
|
|
|
2309
2574
|
return InitializationResult.apiChecksumMismatch
|
|
2310
2575
|
}
|
|
2311
2576
|
|
|
2577
|
+
uniffiCallbackInitMemoryProvider()
|
|
2312
2578
|
uniffiCallbackInitNativeEventCallback()
|
|
2313
2579
|
uniffiCallbackInitNativeNotifier()
|
|
2314
2580
|
return InitializationResult.ok
|
|
@@ -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
|
|
@@ -326,6 +373,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_delete_auth(void*_Nonnu
|
|
|
326
373
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_end_skill(void*_Nonnull ptr, RustBuffer skill_id, RustCallStatus *_Nonnull out_status
|
|
327
374
|
);
|
|
328
375
|
#endif
|
|
376
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_EXCHANGE_OAUTH_CODE
|
|
377
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_EXCHANGE_OAUTH_CODE
|
|
378
|
+
RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_exchange_oauth_code(void*_Nonnull ptr, RustBuffer token_url, RustBuffer body_json, RustBuffer content_type, RustCallStatus *_Nonnull out_status
|
|
379
|
+
);
|
|
380
|
+
#endif
|
|
329
381
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_FOLLOW_UP
|
|
330
382
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_FOLLOW_UP
|
|
331
383
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_follow_up(void*_Nonnull ptr, RustBuffer prompt, RustCallStatus *_Nonnull out_status
|
|
@@ -461,6 +513,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_event_callback(void
|
|
|
461
513
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_heartbeat_config(void*_Nonnull ptr, RustBuffer config_json, RustCallStatus *_Nonnull out_status
|
|
462
514
|
);
|
|
463
515
|
#endif
|
|
516
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
517
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
518
|
+
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_memory_provider(void*_Nonnull ptr, uint64_t provider, RustCallStatus *_Nonnull out_status
|
|
519
|
+
);
|
|
520
|
+
#endif
|
|
464
521
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
|
|
465
522
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
|
|
466
523
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_notifier(void*_Nonnull ptr, uint64_t notifier, RustCallStatus *_Nonnull out_status
|
|
@@ -496,6 +553,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_update_cron_job(void*_N
|
|
|
496
553
|
void uniffi_native_agent_ffi_fn_method_nativeagenthandle_update_skill(void*_Nonnull ptr, RustBuffer id, RustBuffer patch_json, RustCallStatus *_Nonnull out_status
|
|
497
554
|
);
|
|
498
555
|
#endif
|
|
556
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_MEMORYPROVIDER
|
|
557
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_MEMORYPROVIDER
|
|
558
|
+
void uniffi_native_agent_ffi_fn_init_callback_vtable_memoryprovider(UniffiVTableCallbackInterfaceMemoryProvider* _Nonnull vtable
|
|
559
|
+
);
|
|
560
|
+
#endif
|
|
499
561
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVEEVENTCALLBACK
|
|
500
562
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_INIT_CALLBACK_VTABLE_NATIVEEVENTCALLBACK
|
|
501
563
|
void uniffi_native_agent_ffi_fn_init_callback_vtable_nativeeventcallback(UniffiVTableCallbackInterfaceNativeEventCallback* _Nonnull vtable
|
|
@@ -842,6 +904,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_delete_auth(v
|
|
|
842
904
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_END_SKILL
|
|
843
905
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_end_skill(void
|
|
844
906
|
|
|
907
|
+
);
|
|
908
|
+
#endif
|
|
909
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_EXCHANGE_OAUTH_CODE
|
|
910
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_EXCHANGE_OAUTH_CODE
|
|
911
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_exchange_oauth_code(void
|
|
912
|
+
|
|
845
913
|
);
|
|
846
914
|
#endif
|
|
847
915
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_FOLLOW_UP
|
|
@@ -1004,6 +1072,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_event_cal
|
|
|
1004
1072
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_HEARTBEAT_CONFIG
|
|
1005
1073
|
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_heartbeat_config(void
|
|
1006
1074
|
|
|
1075
|
+
);
|
|
1076
|
+
#endif
|
|
1077
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
1078
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_MEMORY_PROVIDER
|
|
1079
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_memory_provider(void
|
|
1080
|
+
|
|
1007
1081
|
);
|
|
1008
1082
|
#endif
|
|
1009
1083
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_SET_NOTIFIER
|
|
@@ -1052,6 +1126,36 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_update_skill(
|
|
|
1052
1126
|
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_CONSTRUCTOR_NATIVEAGENTHANDLE_NEW
|
|
1053
1127
|
uint16_t uniffi_native_agent_ffi_checksum_constructor_nativeagenthandle_new(void
|
|
1054
1128
|
|
|
1129
|
+
);
|
|
1130
|
+
#endif
|
|
1131
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_STORE
|
|
1132
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_STORE
|
|
1133
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_store(void
|
|
1134
|
+
|
|
1135
|
+
);
|
|
1136
|
+
#endif
|
|
1137
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_RECALL
|
|
1138
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_RECALL
|
|
1139
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_recall(void
|
|
1140
|
+
|
|
1141
|
+
);
|
|
1142
|
+
#endif
|
|
1143
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_FORGET
|
|
1144
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_FORGET
|
|
1145
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_forget(void
|
|
1146
|
+
|
|
1147
|
+
);
|
|
1148
|
+
#endif
|
|
1149
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_SEARCH
|
|
1150
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_SEARCH
|
|
1151
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_search(void
|
|
1152
|
+
|
|
1153
|
+
);
|
|
1154
|
+
#endif
|
|
1155
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_LIST
|
|
1156
|
+
#define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_MEMORYPROVIDER_LIST
|
|
1157
|
+
uint16_t uniffi_native_agent_ffi_checksum_method_memoryprovider_list(void
|
|
1158
|
+
|
|
1055
1159
|
);
|
|
1056
1160
|
#endif
|
|
1057
1161
|
#ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEEVENTCALLBACK_ON_EVENT
|