capacitor-mobile-claw 1.0.5 → 1.0.6
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.
|
@@ -1451,10 +1451,12 @@ async function runSetupSkill(agentId, locale = 'en', injectedConfig = null) {
|
|
|
1451
1451
|
? buildSkillTools(injectedConfig.tools, milestones)
|
|
1452
1452
|
: _legacySetupTools();
|
|
1453
1453
|
|
|
1454
|
-
// Merge setup tools with base file tools + MCP tools
|
|
1454
|
+
// Merge setup tools with base file tools + MCP tools (setup tools win on name conflict)
|
|
1455
1455
|
const baseTools = buildAgentTools();
|
|
1456
1456
|
const mcpTools = await discoverMcpTools();
|
|
1457
|
-
const
|
|
1457
|
+
const setupNames = new Set(setupTools.map(t => t.name));
|
|
1458
|
+
const filteredBase = baseTools.filter(t => !setupNames.has(t.name));
|
|
1459
|
+
const tools = [...setupTools, ...filteredBase, ...mcpTools];
|
|
1458
1460
|
|
|
1459
1461
|
const sessionKey = `setup/${Date.now()}`;
|
|
1460
1462
|
const agent = new Agent({
|
|
@@ -2066,7 +2068,11 @@ channel.addListener('message', async (event) => {
|
|
|
2066
2068
|
}
|
|
2067
2069
|
|
|
2068
2070
|
// Convert to UI message format
|
|
2069
|
-
|
|
2071
|
+
let uiMessages = _convertToUiMessages(rawMessages);
|
|
2072
|
+
// For setup sessions, drop the synthetic kickoff prompt (first user message)
|
|
2073
|
+
if (sessionKey.startsWith('setup/') && uiMessages.length > 0 && uiMessages[0].role === 'user') {
|
|
2074
|
+
uiMessages = uiMessages.slice(1);
|
|
2075
|
+
}
|
|
2070
2076
|
channel.send('message', { type: 'session.load.result', sessionKey, messages: uiMessages });
|
|
2071
2077
|
break;
|
|
2072
2078
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-mobile-claw",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "On-device AI agent engine for Capacitor apps — embedded Node.js worker with LLM, file tools, code execution, git, and extensible MCP server",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/esm/index.d.ts",
|