capacitor-native-agent 0.2.6 → 0.2.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.
@@ -10,7 +10,7 @@
10
10
  <key>HeadersPath</key>
11
11
  <string>Headers</string>
12
12
  <key>LibraryIdentifier</key>
13
- <string>ios-arm64</string>
13
+ <string>ios-arm64-simulator</string>
14
14
  <key>LibraryPath</key>
15
15
  <string>libnative_agent_ffi.a</string>
16
16
  <key>SupportedArchitectures</key>
@@ -19,6 +19,8 @@
19
19
  </array>
20
20
  <key>SupportedPlatform</key>
21
21
  <string>ios</string>
22
+ <key>SupportedPlatformVariant</key>
23
+ <string>simulator</string>
22
24
  </dict>
23
25
  <dict>
24
26
  <key>BinaryPath</key>
@@ -26,7 +28,7 @@
26
28
  <key>HeadersPath</key>
27
29
  <string>Headers</string>
28
30
  <key>LibraryIdentifier</key>
29
- <string>ios-arm64-simulator</string>
31
+ <string>ios-arm64</string>
30
32
  <key>LibraryPath</key>
31
33
  <string>libnative_agent_ffi.a</string>
32
34
  <key>SupportedArchitectures</key>
@@ -35,8 +37,6 @@
35
37
  </array>
36
38
  <key>SupportedPlatform</key>
37
39
  <string>ios</string>
38
- <key>SupportedPlatformVariant</key>
39
- <string>simulator</string>
40
40
  </dict>
41
41
  </array>
42
42
  <key>CFBundlePackageType</key>
@@ -517,7 +517,9 @@ public protocol NativeAgentHandleProtocol : AnyObject {
517
517
  func addSkill(inputJson: String) throws -> String
518
518
 
519
519
  /**
520
- * Clear the current session.
520
+ * Clear the current in-memory session state so the next sendMessage
521
+ * starts a fresh conversation. The session row in SQLite is preserved
522
+ * so it remains in the session index for later resume/switch.
521
523
  */
522
524
  func clearSession() throws
523
525
 
@@ -789,7 +791,9 @@ open func addSkill(inputJson: String)throws -> String {
789
791
  }
790
792
 
791
793
  /**
792
- * Clear the current session.
794
+ * Clear the current in-memory session state so the next sendMessage
795
+ * starts a fresh conversation. The session row in SQLite is preserved
796
+ * so it remains in the session index for later resume/switch.
793
797
  */
794
798
  open func clearSession()throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
795
799
  uniffi_native_agent_ffi_fn_method_nativeagenthandle_clear_session(self.uniffiClonePointer(),$0
@@ -1966,7 +1970,7 @@ private var initializationResult: InitializationResult = {
1966
1970
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_add_skill() != 46434) {
1967
1971
  return InitializationResult.apiChecksumMismatch
1968
1972
  }
1969
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_clear_session() != 43185) {
1973
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_clear_session() != 28186) {
1970
1974
  return InitializationResult.apiChecksumMismatch
1971
1975
  }
1972
1976
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_delete_auth() != 2640) {
@@ -517,7 +517,9 @@ public protocol NativeAgentHandleProtocol : AnyObject {
517
517
  func addSkill(inputJson: String) throws -> String
518
518
 
519
519
  /**
520
- * Clear the current session.
520
+ * Clear the current in-memory session state so the next sendMessage
521
+ * starts a fresh conversation. The session row in SQLite is preserved
522
+ * so it remains in the session index for later resume/switch.
521
523
  */
522
524
  func clearSession() throws
523
525
 
@@ -789,7 +791,9 @@ open func addSkill(inputJson: String)throws -> String {
789
791
  }
790
792
 
791
793
  /**
792
- * Clear the current session.
794
+ * Clear the current in-memory session state so the next sendMessage
795
+ * starts a fresh conversation. The session row in SQLite is preserved
796
+ * so it remains in the session index for later resume/switch.
793
797
  */
794
798
  open func clearSession()throws {try rustCallWithError(FfiConverterTypeNativeAgentError.lift) {
795
799
  uniffi_native_agent_ffi_fn_method_nativeagenthandle_clear_session(self.uniffiClonePointer(),$0
@@ -1966,7 +1970,7 @@ private var initializationResult: InitializationResult = {
1966
1970
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_add_skill() != 46434) {
1967
1971
  return InitializationResult.apiChecksumMismatch
1968
1972
  }
1969
- if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_clear_session() != 43185) {
1973
+ if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_clear_session() != 28186) {
1970
1974
  return InitializationResult.apiChecksumMismatch
1971
1975
  }
1972
1976
  if (uniffi_native_agent_ffi_checksum_method_nativeagenthandle_delete_auth() != 2640) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-native-agent",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
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",