capacitor-native-agent 0.2.9 → 0.3.0

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.
@@ -1144,7 +1144,7 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
1144
1144
  if (lib.uniffi_native_agent_ffi_checksum_method_nativeagenthandle_add_skill() != 46434.toShort()) {
1145
1145
  throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
1146
1146
  }
1147
- if (lib.uniffi_native_agent_ffi_checksum_method_nativeagenthandle_clear_session() != 43185.toShort()) {
1147
+ if (lib.uniffi_native_agent_ffi_checksum_method_nativeagenthandle_clear_session() != 28186.toShort()) {
1148
1148
  throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
1149
1149
  }
1150
1150
  if (lib.uniffi_native_agent_ffi_checksum_method_nativeagenthandle_delete_auth() != 2640.toShort()) {
@@ -1611,7 +1611,9 @@ public interface NativeAgentHandleInterface {
1611
1611
  fun `addSkill`(`inputJson`: kotlin.String): kotlin.String
1612
1612
 
1613
1613
  /**
1614
- * Clear the current session.
1614
+ * Clear the current in-memory session state so the next sendMessage
1615
+ * starts a fresh conversation. The session row in SQLite is preserved
1616
+ * so it remains in the session index for later resume/switch.
1615
1617
  */
1616
1618
  fun `clearSession`()
1617
1619
 
@@ -1931,7 +1933,9 @@ open class NativeAgentHandle: Disposable, AutoCloseable, NativeAgentHandleInterf
1931
1933
 
1932
1934
 
1933
1935
  /**
1934
- * Clear the current session.
1936
+ * Clear the current in-memory session state so the next sendMessage
1937
+ * starts a fresh conversation. The session row in SQLite is preserved
1938
+ * so it remains in the session index for later resume/switch.
1935
1939
  */
1936
1940
  @Throws(NativeAgentException::class)override fun `clearSession`()
1937
1941
  =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-native-agent",
3
- "version": "0.2.9",
3
+ "version": "0.3.0",
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",