capacitor-native-agent 0.9.15 → 0.9.16
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.
|
@@ -148,6 +148,9 @@ class NativeAgentPlugin : Plugin() {
|
|
|
148
148
|
maxTurns = call.getInt("maxTurns")?.toUInt(),
|
|
149
149
|
skillAllowedToolsJson = call.getString("skillAllowedToolsJson"),
|
|
150
150
|
priorMessagesJson = call.getString("priorMessagesJson"),
|
|
151
|
+
// Create-only plan-mode seed; null preserves prior behavior (the
|
|
152
|
+
// persisted store value is authoritative on resume).
|
|
153
|
+
planModeInit = if (call.hasOption("planModeInit")) call.getBoolean("planModeInit") else null,
|
|
151
154
|
)
|
|
152
155
|
val runId = h.sendMessage(params)
|
|
153
156
|
android.util.Log.i("TRACE:kt", "sendMessage OK runId=$runId")
|
|
@@ -218,7 +218,10 @@ public class NativeAgentPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
218
218
|
systemPrompt: call.getString("systemPrompt") ?? "",
|
|
219
219
|
maxTurns: call.getInt("maxTurns").map { UInt32($0) },
|
|
220
220
|
skillAllowedToolsJson: call.getString("skillAllowedToolsJson"),
|
|
221
|
-
priorMessagesJson: call.getString("priorMessagesJson")
|
|
221
|
+
priorMessagesJson: call.getString("priorMessagesJson"),
|
|
222
|
+
// Create-only plan-mode seed; nil preserves prior behavior (the
|
|
223
|
+
// persisted store value is authoritative on resume).
|
|
224
|
+
planModeInit: call.getBool("planModeInit")
|
|
222
225
|
)
|
|
223
226
|
let runId = try h.sendMessage(params: params)
|
|
224
227
|
call.resolve(["runId": runId])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-native-agent",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.16",
|
|
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",
|