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
|