Add 7 new actions, workflow orchestration, and shell escaping fixes

- New actions: open_url, switch_app, notifications, pull_file, push_file, keyevent, open_settings
- Workflow system: runWorkflow() for multi-app sub-goal sequences with --workflow CLI flag
- Export runAgent() with {success, stepsUsed} return for workflow integration
- Fix clipboard_set shell escaping (single-quote wrapping matching skills.ts)
- Improve type action escaping for backticks, $, !, ?, brackets, braces
- Move parseJsonResponse to llm-providers.ts and export it
- Update SYSTEM_PROMPT and Zod schema for 22 total actions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sanju Sivalingam
2026-02-07 18:33:24 +05:30
parent 5c471ec19a
commit 8bad65cd96
5 changed files with 371 additions and 56 deletions

View File

@@ -0,0 +1,21 @@
{
"name": "Logistics Agent v2.1",
"steps": [
{
"app": "com.whatsapp",
"goal": "Find the latest Bill of Lading image and save it"
},
{
"app": "com.intsig.camscanner",
"goal": "Crop and enhance the latest image"
},
{
"app": "com.rtspro.factoring",
"goal": "Fill out the invoice submission form",
"formData": {
"Invoice": "#9921",
"Amount": "$4,200.00"
}
}
]
}