capacitor-native-agent 0.2.0 → 0.2.2

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.
@@ -10,7 +10,7 @@
10
10
  <key>HeadersPath</key>
11
11
  <string>Headers</string>
12
12
  <key>LibraryIdentifier</key>
13
- <string>ios-arm64-simulator</string>
13
+ <string>ios-arm64</string>
14
14
  <key>LibraryPath</key>
15
15
  <string>libnative_agent_ffi.a</string>
16
16
  <key>SupportedArchitectures</key>
@@ -19,8 +19,6 @@
19
19
  </array>
20
20
  <key>SupportedPlatform</key>
21
21
  <string>ios</string>
22
- <key>SupportedPlatformVariant</key>
23
- <string>simulator</string>
24
22
  </dict>
25
23
  <dict>
26
24
  <key>BinaryPath</key>
@@ -28,7 +26,7 @@
28
26
  <key>HeadersPath</key>
29
27
  <string>Headers</string>
30
28
  <key>LibraryIdentifier</key>
31
- <string>ios-arm64</string>
29
+ <string>ios-arm64-simulator</string>
32
30
  <key>LibraryPath</key>
33
31
  <string>libnative_agent_ffi.a</string>
34
32
  <key>SupportedArchitectures</key>
@@ -37,6 +35,8 @@
37
35
  </array>
38
36
  <key>SupportedPlatform</key>
39
37
  <string>ios</string>
38
+ <key>SupportedPlatformVariant</key>
39
+ <string>simulator</string>
40
40
  </dict>
41
41
  </array>
42
42
  <key>CFBundlePackageType</key>
@@ -621,6 +621,11 @@ public protocol NativeAgentHandleProtocol : AnyObject {
621
621
  */
622
622
  func respondToCronApproval(requestId: String, approved: Bool) throws
623
623
 
624
+ /**
625
+ * Respond to a pending MCP tool call.
626
+ */
627
+ func respondToMcpTool(toolCallId: String, resultJson: String, isError: Bool) throws
628
+
624
629
  /**
625
630
  * Restart MCP server with new tools.
626
631
  */
@@ -1003,6 +1008,18 @@ open func respondToCronApproval(requestId: String, approved: Bool)throws {try r
1003
1008
  FfiConverterBool.lower(approved),$0
1004
1009
  )
1005
1010
  }
1011
+ }
1012
+
1013
+ /**
1014
+ * Respond to a pending MCP tool call.
1015
+ */
1016
+ open func respondToMcpTool(toolCallId: String, resultJson: String, isError: Bool)throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
1017
+ uniffi_native_agent_ffi_fn_method_nativeagenthandle_respond_to_mcp_tool(self.uniffiClonePointer(),
1018
+ FfiConverterString.lower(toolCallId),
1019
+ FfiConverterString.lower(resultJson),
1020
+ FfiConverterBool.lower(isError),$0
1021
+ )
1022
+ }
1006
1023
  }
1007
1024
 
1008
1025
  /**
@@ -1912,6 +1929,15 @@ fileprivate struct FfiConverterOptionString: FfiConverterRustBuffer {
1912
1929
  }
1913
1930
  }
1914
1931
  }
1932
+ /**
1933
+ * Standalone workspace initialization for cold-start paths.
1934
+ */
1935
+ public func initWorkspace(config: InitConfig)throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
1936
+ uniffi_native_agent_ffi_fn_func_init_workspace(
1937
+ FfiConverterTypeInitConfig.lower(config),$0
1938
+ )
1939
+ }
1940
+ }
1915
1941
 
1916
1942
  private enum InitializationResult {
1917
1943
  case ok
@@ -1928,6 +1954,9 @@ private var initializationResult: InitializationResult = {
1928
1954
  if bindings_contract_version != scaffolding_contract_version {
1929
1955
  return InitializationResult.contractVersionMismatch
1930
1956
  }
1957
+ if (uniffi_native_agent_ffi_checksum_func_init_workspace() != 39423) {
1958
+ return InitializationResult.apiChecksumMismatch
1959
+ }
1931
1960
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_abort() != 58908) {
1932
1961
  return InitializationResult.apiChecksumMismatch
1933
1962
  }
@@ -1943,10 +1972,10 @@ private var initializationResult: InitializationResult = {
1943
1972
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_delete_auth() != 2640) {
1944
1973
  return InitializationResult.apiChecksumMismatch
1945
1974
  }
1946
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_end_skill() != 44226) {
1975
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_end_skill() != 49984) {
1947
1976
  return InitializationResult.apiChecksumMismatch
1948
1977
  }
1949
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_follow_up() != 44936) {
1978
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_follow_up() != 816) {
1950
1979
  return InitializationResult.apiChecksumMismatch
1951
1980
  }
1952
1981
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_get_auth_status() != 31550) {
@@ -1994,16 +2023,19 @@ private var initializationResult: InitializationResult = {
1994
2023
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_remove_skill() != 49129) {
1995
2024
  return InitializationResult.apiChecksumMismatch
1996
2025
  }
1997
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_approval() != 64086) {
2026
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_approval() != 3194) {
2027
+ return InitializationResult.apiChecksumMismatch
2028
+ }
2029
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_cron_approval() != 851) {
1998
2030
  return InitializationResult.apiChecksumMismatch
1999
2031
  }
2000
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_cron_approval() != 36921) {
2032
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_mcp_tool() != 10295) {
2001
2033
  return InitializationResult.apiChecksumMismatch
2002
2034
  }
2003
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_restart_mcp() != 44980) {
2035
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_restart_mcp() != 8963) {
2004
2036
  return InitializationResult.apiChecksumMismatch
2005
2037
  }
2006
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_resume_session() != 9992) {
2038
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_resume_session() != 34699) {
2007
2039
  return InitializationResult.apiChecksumMismatch
2008
2040
  }
2009
2041
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_run_cron_job() != 11263) {
@@ -2024,13 +2056,13 @@ private var initializationResult: InitializationResult = {
2024
2056
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_scheduler_config() != 18609) {
2025
2057
  return InitializationResult.apiChecksumMismatch
2026
2058
  }
2027
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_start_mcp() != 5853) {
2059
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_start_mcp() != 53972) {
2028
2060
  return InitializationResult.apiChecksumMismatch
2029
2061
  }
2030
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_start_skill() != 49721) {
2062
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_start_skill() != 7081) {
2031
2063
  return InitializationResult.apiChecksumMismatch
2032
2064
  }
2033
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_steer() != 3715) {
2065
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_steer() != 29790) {
2034
2066
  return InitializationResult.apiChecksumMismatch
2035
2067
  }
2036
2068
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_update_cron_job() != 40127) {
@@ -308,12 +308,12 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_delete_auth(void*_Nonnu
308
308
  #endif
309
309
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_END_SKILL
310
310
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_END_SKILL
311
- void uniffi_native_agent_ffi_fn_method_nativeagenthandle_end_skill(void*_Nonnull ptr, RustBuffer _skill_id, RustCallStatus *_Nonnull out_status
311
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_end_skill(void*_Nonnull ptr, RustBuffer skill_id, RustCallStatus *_Nonnull out_status
312
312
  );
313
313
  #endif
314
314
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_FOLLOW_UP
315
315
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_FOLLOW_UP
316
- void uniffi_native_agent_ffi_fn_method_nativeagenthandle_follow_up(void*_Nonnull ptr, RustBuffer _prompt, RustCallStatus *_Nonnull out_status
316
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_follow_up(void*_Nonnull ptr, RustBuffer prompt, RustCallStatus *_Nonnull out_status
317
317
  );
318
318
  #endif
319
319
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_GET_AUTH_STATUS
@@ -393,22 +393,27 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_remove_skill(void*_Nonn
393
393
  #endif
394
394
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_APPROVAL
395
395
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_APPROVAL
396
- void uniffi_native_agent_ffi_fn_method_nativeagenthandle_respond_to_approval(void*_Nonnull ptr, RustBuffer _tool_call_id, int8_t _approved, RustBuffer _reason, RustCallStatus *_Nonnull out_status
396
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_respond_to_approval(void*_Nonnull ptr, RustBuffer tool_call_id, int8_t approved, RustBuffer reason, RustCallStatus *_Nonnull out_status
397
397
  );
398
398
  #endif
399
399
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_CRON_APPROVAL
400
400
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_CRON_APPROVAL
401
- void uniffi_native_agent_ffi_fn_method_nativeagenthandle_respond_to_cron_approval(void*_Nonnull ptr, RustBuffer _request_id, int8_t _approved, RustCallStatus *_Nonnull out_status
401
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_respond_to_cron_approval(void*_Nonnull ptr, RustBuffer _request_id, int8_t approved, RustCallStatus *_Nonnull out_status
402
+ );
403
+ #endif
404
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_MCP_TOOL
405
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_MCP_TOOL
406
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_respond_to_mcp_tool(void*_Nonnull ptr, RustBuffer tool_call_id, RustBuffer result_json, int8_t is_error, RustCallStatus *_Nonnull out_status
402
407
  );
403
408
  #endif
404
409
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESTART_MCP
405
410
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESTART_MCP
406
- uint32_t uniffi_native_agent_ffi_fn_method_nativeagenthandle_restart_mcp(void*_Nonnull ptr, RustBuffer _tools_json, RustCallStatus *_Nonnull out_status
411
+ uint32_t uniffi_native_agent_ffi_fn_method_nativeagenthandle_restart_mcp(void*_Nonnull ptr, RustBuffer tools_json, RustCallStatus *_Nonnull out_status
407
412
  );
408
413
  #endif
409
414
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESUME_SESSION
410
415
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESUME_SESSION
411
- void uniffi_native_agent_ffi_fn_method_nativeagenthandle_resume_session(void*_Nonnull ptr, RustBuffer _session_key, RustBuffer _agent_id, RustBuffer _messages_json, RustBuffer _provider, RustBuffer _model, RustCallStatus *_Nonnull out_status
416
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_resume_session(void*_Nonnull ptr, RustBuffer session_key, RustBuffer agent_id, RustBuffer messages_json, RustBuffer provider, RustBuffer model, RustCallStatus *_Nonnull out_status
412
417
  );
413
418
  #endif
414
419
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RUN_CRON_JOB
@@ -443,17 +448,17 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_scheduler_config(vo
443
448
  #endif
444
449
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_START_MCP
445
450
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_START_MCP
446
- uint32_t uniffi_native_agent_ffi_fn_method_nativeagenthandle_start_mcp(void*_Nonnull ptr, RustBuffer _tools_json, RustCallStatus *_Nonnull out_status
451
+ uint32_t uniffi_native_agent_ffi_fn_method_nativeagenthandle_start_mcp(void*_Nonnull ptr, RustBuffer tools_json, RustCallStatus *_Nonnull out_status
447
452
  );
448
453
  #endif
449
454
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_START_SKILL
450
455
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_START_SKILL
451
- RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_start_skill(void*_Nonnull ptr, RustBuffer _skill_id, RustBuffer _config_json, RustBuffer _provider, RustCallStatus *_Nonnull out_status
456
+ RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_start_skill(void*_Nonnull ptr, RustBuffer skill_id, RustBuffer config_json, RustBuffer provider, RustCallStatus *_Nonnull out_status
452
457
  );
453
458
  #endif
454
459
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_STEER
455
460
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_STEER
456
- void uniffi_native_agent_ffi_fn_method_nativeagenthandle_steer(void*_Nonnull ptr, RustBuffer _text, RustCallStatus *_Nonnull out_status
461
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_steer(void*_Nonnull ptr, RustBuffer text, RustCallStatus *_Nonnull out_status
457
462
  );
458
463
  #endif
459
464
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_UPDATE_CRON_JOB
@@ -471,6 +476,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_update_skill(void*_Nonn
471
476
  void uniffi_native_agent_ffi_fn_init_callback_vtable_nativeeventcallback(UniffiVTableCallbackInterfaceNativeEventCallback* _Nonnull vtable
472
477
  );
473
478
  #endif
479
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_FUNC_INIT_WORKSPACE
480
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_FUNC_INIT_WORKSPACE
481
+ void uniffi_native_agent_ffi_fn_func_init_workspace(RustBuffer config, RustCallStatus *_Nonnull out_status
482
+ );
483
+ #endif
474
484
  #ifndef UNIFFI_FFIDEF_FFI_NATIVE_AGENT_FFI_RUSTBUFFER_ALLOC
475
485
  #define UNIFFI_FFIDEF_FFI_NATIVE_AGENT_FFI_RUSTBUFFER_ALLOC
476
486
  RustBuffer ffi_native_agent_ffi_rustbuffer_alloc(uint64_t size, RustCallStatus *_Nonnull out_status
@@ -749,6 +759,12 @@ void ffi_native_agent_ffi_rust_future_free_void(uint64_t handle
749
759
  #ifndef UNIFFI_FFIDEF_FFI_NATIVE_AGENT_FFI_RUST_FUTURE_COMPLETE_VOID
750
760
  #define UNIFFI_FFIDEF_FFI_NATIVE_AGENT_FFI_RUST_FUTURE_COMPLETE_VOID
751
761
  void ffi_native_agent_ffi_rust_future_complete_void(uint64_t handle, RustCallStatus *_Nonnull out_status
762
+ );
763
+ #endif
764
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_FUNC_INIT_WORKSPACE
765
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_FUNC_INIT_WORKSPACE
766
+ uint16_t uniffi_native_agent_ffi_checksum_func_init_workspace(void
767
+
752
768
  );
753
769
  #endif
754
770
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_ABORT
@@ -893,6 +909,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_ap
893
909
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_CRON_APPROVAL
894
910
  uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_cron_approval(void
895
911
 
912
+ );
913
+ #endif
914
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_MCP_TOOL
915
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_MCP_TOOL
916
+ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_mcp_tool(void
917
+
896
918
  );
897
919
  #endif
898
920
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESTART_MCP
@@ -621,6 +621,11 @@ public protocol NativeAgentHandleProtocol : AnyObject {
621
621
  */
622
622
  func respondToCronApproval(requestId: String, approved: Bool) throws
623
623
 
624
+ /**
625
+ * Respond to a pending MCP tool call.
626
+ */
627
+ func respondToMcpTool(toolCallId: String, resultJson: String, isError: Bool) throws
628
+
624
629
  /**
625
630
  * Restart MCP server with new tools.
626
631
  */
@@ -1003,6 +1008,18 @@ open func respondToCronApproval(requestId: String, approved: Bool)throws {try r
1003
1008
  FfiConverterBool.lower(approved),$0
1004
1009
  )
1005
1010
  }
1011
+ }
1012
+
1013
+ /**
1014
+ * Respond to a pending MCP tool call.
1015
+ */
1016
+ open func respondToMcpTool(toolCallId: String, resultJson: String, isError: Bool)throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
1017
+ uniffi_native_agent_ffi_fn_method_nativeagenthandle_respond_to_mcp_tool(self.uniffiClonePointer(),
1018
+ FfiConverterString.lower(toolCallId),
1019
+ FfiConverterString.lower(resultJson),
1020
+ FfiConverterBool.lower(isError),$0
1021
+ )
1022
+ }
1006
1023
  }
1007
1024
 
1008
1025
  /**
@@ -1912,6 +1929,15 @@ fileprivate struct FfiConverterOptionString: FfiConverterRustBuffer {
1912
1929
  }
1913
1930
  }
1914
1931
  }
1932
+ /**
1933
+ * Standalone workspace initialization for cold-start paths.
1934
+ */
1935
+ public func initWorkspace(config: InitConfig)throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
1936
+ uniffi_native_agent_ffi_fn_func_init_workspace(
1937
+ FfiConverterTypeInitConfig.lower(config),$0
1938
+ )
1939
+ }
1940
+ }
1915
1941
 
1916
1942
  private enum InitializationResult {
1917
1943
  case ok
@@ -1928,6 +1954,9 @@ private var initializationResult: InitializationResult = {
1928
1954
  if bindings_contract_version != scaffolding_contract_version {
1929
1955
  return InitializationResult.contractVersionMismatch
1930
1956
  }
1957
+ if (uniffi_native_agent_ffi_checksum_func_init_workspace() != 39423) {
1958
+ return InitializationResult.apiChecksumMismatch
1959
+ }
1931
1960
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_abort() != 58908) {
1932
1961
  return InitializationResult.apiChecksumMismatch
1933
1962
  }
@@ -1943,10 +1972,10 @@ private var initializationResult: InitializationResult = {
1943
1972
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_delete_auth() != 2640) {
1944
1973
  return InitializationResult.apiChecksumMismatch
1945
1974
  }
1946
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_end_skill() != 44226) {
1975
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_end_skill() != 49984) {
1947
1976
  return InitializationResult.apiChecksumMismatch
1948
1977
  }
1949
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_follow_up() != 44936) {
1978
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_follow_up() != 816) {
1950
1979
  return InitializationResult.apiChecksumMismatch
1951
1980
  }
1952
1981
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_get_auth_status() != 31550) {
@@ -1994,16 +2023,19 @@ private var initializationResult: InitializationResult = {
1994
2023
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_remove_skill() != 49129) {
1995
2024
  return InitializationResult.apiChecksumMismatch
1996
2025
  }
1997
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_approval() != 64086) {
2026
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_approval() != 3194) {
2027
+ return InitializationResult.apiChecksumMismatch
2028
+ }
2029
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_cron_approval() != 851) {
1998
2030
  return InitializationResult.apiChecksumMismatch
1999
2031
  }
2000
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_cron_approval() != 36921) {
2032
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_mcp_tool() != 10295) {
2001
2033
  return InitializationResult.apiChecksumMismatch
2002
2034
  }
2003
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_restart_mcp() != 44980) {
2035
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_restart_mcp() != 8963) {
2004
2036
  return InitializationResult.apiChecksumMismatch
2005
2037
  }
2006
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_resume_session() != 9992) {
2038
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_resume_session() != 34699) {
2007
2039
  return InitializationResult.apiChecksumMismatch
2008
2040
  }
2009
2041
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_run_cron_job() != 11263) {
@@ -2024,13 +2056,13 @@ private var initializationResult: InitializationResult = {
2024
2056
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_set_scheduler_config() != 18609) {
2025
2057
  return InitializationResult.apiChecksumMismatch
2026
2058
  }
2027
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_start_mcp() != 5853) {
2059
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_start_mcp() != 53972) {
2028
2060
  return InitializationResult.apiChecksumMismatch
2029
2061
  }
2030
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_start_skill() != 49721) {
2062
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_start_skill() != 7081) {
2031
2063
  return InitializationResult.apiChecksumMismatch
2032
2064
  }
2033
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_steer() != 3715) {
2065
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_steer() != 29790) {
2034
2066
  return InitializationResult.apiChecksumMismatch
2035
2067
  }
2036
2068
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_update_cron_job() != 40127) {
@@ -308,12 +308,12 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_delete_auth(void*_Nonnu
308
308
  #endif
309
309
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_END_SKILL
310
310
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_END_SKILL
311
- void uniffi_native_agent_ffi_fn_method_nativeagenthandle_end_skill(void*_Nonnull ptr, RustBuffer _skill_id, RustCallStatus *_Nonnull out_status
311
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_end_skill(void*_Nonnull ptr, RustBuffer skill_id, RustCallStatus *_Nonnull out_status
312
312
  );
313
313
  #endif
314
314
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_FOLLOW_UP
315
315
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_FOLLOW_UP
316
- void uniffi_native_agent_ffi_fn_method_nativeagenthandle_follow_up(void*_Nonnull ptr, RustBuffer _prompt, RustCallStatus *_Nonnull out_status
316
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_follow_up(void*_Nonnull ptr, RustBuffer prompt, RustCallStatus *_Nonnull out_status
317
317
  );
318
318
  #endif
319
319
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_GET_AUTH_STATUS
@@ -393,22 +393,27 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_remove_skill(void*_Nonn
393
393
  #endif
394
394
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_APPROVAL
395
395
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_APPROVAL
396
- void uniffi_native_agent_ffi_fn_method_nativeagenthandle_respond_to_approval(void*_Nonnull ptr, RustBuffer _tool_call_id, int8_t _approved, RustBuffer _reason, RustCallStatus *_Nonnull out_status
396
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_respond_to_approval(void*_Nonnull ptr, RustBuffer tool_call_id, int8_t approved, RustBuffer reason, RustCallStatus *_Nonnull out_status
397
397
  );
398
398
  #endif
399
399
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_CRON_APPROVAL
400
400
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_CRON_APPROVAL
401
- void uniffi_native_agent_ffi_fn_method_nativeagenthandle_respond_to_cron_approval(void*_Nonnull ptr, RustBuffer _request_id, int8_t _approved, RustCallStatus *_Nonnull out_status
401
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_respond_to_cron_approval(void*_Nonnull ptr, RustBuffer _request_id, int8_t approved, RustCallStatus *_Nonnull out_status
402
+ );
403
+ #endif
404
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_MCP_TOOL
405
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_MCP_TOOL
406
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_respond_to_mcp_tool(void*_Nonnull ptr, RustBuffer tool_call_id, RustBuffer result_json, int8_t is_error, RustCallStatus *_Nonnull out_status
402
407
  );
403
408
  #endif
404
409
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESTART_MCP
405
410
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESTART_MCP
406
- uint32_t uniffi_native_agent_ffi_fn_method_nativeagenthandle_restart_mcp(void*_Nonnull ptr, RustBuffer _tools_json, RustCallStatus *_Nonnull out_status
411
+ uint32_t uniffi_native_agent_ffi_fn_method_nativeagenthandle_restart_mcp(void*_Nonnull ptr, RustBuffer tools_json, RustCallStatus *_Nonnull out_status
407
412
  );
408
413
  #endif
409
414
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESUME_SESSION
410
415
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RESUME_SESSION
411
- void uniffi_native_agent_ffi_fn_method_nativeagenthandle_resume_session(void*_Nonnull ptr, RustBuffer _session_key, RustBuffer _agent_id, RustBuffer _messages_json, RustBuffer _provider, RustBuffer _model, RustCallStatus *_Nonnull out_status
416
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_resume_session(void*_Nonnull ptr, RustBuffer session_key, RustBuffer agent_id, RustBuffer messages_json, RustBuffer provider, RustBuffer model, RustCallStatus *_Nonnull out_status
412
417
  );
413
418
  #endif
414
419
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_RUN_CRON_JOB
@@ -443,17 +448,17 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_set_scheduler_config(vo
443
448
  #endif
444
449
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_START_MCP
445
450
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_START_MCP
446
- uint32_t uniffi_native_agent_ffi_fn_method_nativeagenthandle_start_mcp(void*_Nonnull ptr, RustBuffer _tools_json, RustCallStatus *_Nonnull out_status
451
+ uint32_t uniffi_native_agent_ffi_fn_method_nativeagenthandle_start_mcp(void*_Nonnull ptr, RustBuffer tools_json, RustCallStatus *_Nonnull out_status
447
452
  );
448
453
  #endif
449
454
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_START_SKILL
450
455
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_START_SKILL
451
- RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_start_skill(void*_Nonnull ptr, RustBuffer _skill_id, RustBuffer _config_json, RustBuffer _provider, RustCallStatus *_Nonnull out_status
456
+ RustBuffer uniffi_native_agent_ffi_fn_method_nativeagenthandle_start_skill(void*_Nonnull ptr, RustBuffer skill_id, RustBuffer config_json, RustBuffer provider, RustCallStatus *_Nonnull out_status
452
457
  );
453
458
  #endif
454
459
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_STEER
455
460
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_STEER
456
- void uniffi_native_agent_ffi_fn_method_nativeagenthandle_steer(void*_Nonnull ptr, RustBuffer _text, RustCallStatus *_Nonnull out_status
461
+ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_steer(void*_Nonnull ptr, RustBuffer text, RustCallStatus *_Nonnull out_status
457
462
  );
458
463
  #endif
459
464
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_METHOD_NATIVEAGENTHANDLE_UPDATE_CRON_JOB
@@ -471,6 +476,11 @@ void uniffi_native_agent_ffi_fn_method_nativeagenthandle_update_skill(void*_Nonn
471
476
  void uniffi_native_agent_ffi_fn_init_callback_vtable_nativeeventcallback(UniffiVTableCallbackInterfaceNativeEventCallback* _Nonnull vtable
472
477
  );
473
478
  #endif
479
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_FUNC_INIT_WORKSPACE
480
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_FN_FUNC_INIT_WORKSPACE
481
+ void uniffi_native_agent_ffi_fn_func_init_workspace(RustBuffer config, RustCallStatus *_Nonnull out_status
482
+ );
483
+ #endif
474
484
  #ifndef UNIFFI_FFIDEF_FFI_NATIVE_AGENT_FFI_RUSTBUFFER_ALLOC
475
485
  #define UNIFFI_FFIDEF_FFI_NATIVE_AGENT_FFI_RUSTBUFFER_ALLOC
476
486
  RustBuffer ffi_native_agent_ffi_rustbuffer_alloc(uint64_t size, RustCallStatus *_Nonnull out_status
@@ -749,6 +759,12 @@ void ffi_native_agent_ffi_rust_future_free_void(uint64_t handle
749
759
  #ifndef UNIFFI_FFIDEF_FFI_NATIVE_AGENT_FFI_RUST_FUTURE_COMPLETE_VOID
750
760
  #define UNIFFI_FFIDEF_FFI_NATIVE_AGENT_FFI_RUST_FUTURE_COMPLETE_VOID
751
761
  void ffi_native_agent_ffi_rust_future_complete_void(uint64_t handle, RustCallStatus *_Nonnull out_status
762
+ );
763
+ #endif
764
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_FUNC_INIT_WORKSPACE
765
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_FUNC_INIT_WORKSPACE
766
+ uint16_t uniffi_native_agent_ffi_checksum_func_init_workspace(void
767
+
752
768
  );
753
769
  #endif
754
770
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_ABORT
@@ -893,6 +909,12 @@ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_ap
893
909
  #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_CRON_APPROVAL
894
910
  uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_cron_approval(void
895
911
 
912
+ );
913
+ #endif
914
+ #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_MCP_TOOL
915
+ #define UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESPOND_TO_MCP_TOOL
916
+ uint16_t uniffi_native_agent_ffi_checksum_method_nativeagenthandle_respond_to_mcp_tool(void
917
+
896
918
  );
897
919
  #endif
898
920
  #ifndef UNIFFI_FFIDEF_UNIFFI_NATIVE_AGENT_FFI_CHECKSUM_METHOD_NATIVEAGENTHANDLE_RESTART_MCP
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-native-agent",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Native AI agent loop for Capacitor — runs LLM completions, tool execution, and cron jobs in native Rust, enabling background execution.",
5
5
  "main": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",