capacitor-native-agent 0.1.3 → 0.1.5
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.
|
@@ -20,6 +20,9 @@ Pod::Spec.new do |s|
|
|
|
20
20
|
# Prebuilt Rust xcframework (static library)
|
|
21
21
|
s.vendored_frameworks = 'ios/Frameworks/NativeAgentFFI.xcframework'
|
|
22
22
|
|
|
23
|
+
# libgit2 (bundled in Rust FFI) requires libiconv on iOS
|
|
24
|
+
s.libraries = 'iconv'
|
|
25
|
+
|
|
23
26
|
# Expose the xcframework's C headers so the Swift compiler can `canImport(native_agent_ffiFFI)`
|
|
24
27
|
s.pod_target_xcconfig = {
|
|
25
28
|
'OTHER_SWIFT_FLAGS[sdk=iphoneos*]' => '$(inherited) -Xcc -fmodule-map-file=${PODS_TARGET_SRCROOT}/ios/Frameworks/NativeAgentFFI.xcframework/ios-arm64/Headers/native_agent_ffiFFI.modulemap',
|
package/Package.swift
CHANGED
|
@@ -110,7 +110,7 @@ public class NativeAgentPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
110
110
|
authProfilesPath: resolvePath(authProfilesPath)
|
|
111
111
|
)
|
|
112
112
|
let h = try NativeAgentHandle(config: config)
|
|
113
|
-
h.setEventCallback(callback: NativeAgentEventBridge(plugin: self))
|
|
113
|
+
try h.setEventCallback(callback: NativeAgentEventBridge(plugin: self))
|
|
114
114
|
self.handle = h
|
|
115
115
|
call.resolve()
|
|
116
116
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-native-agent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
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",
|