@heylemon/lemonade 0.4.1 → 0.4.2
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.
|
@@ -366,7 +366,7 @@ export function buildAgentSystemPrompt(params) {
|
|
|
366
366
|
'1. Run `lemon-composio search "<what the user wants>"` — this is your FIRST action. No web search. No `which`. No `--help`. No questions.',
|
|
367
367
|
"2. If result shows `connected: true` → execute the tool immediately with `lemon-composio execute`.",
|
|
368
368
|
"3. If the search returns results but none match the exact action, try broader/different search terms SILENTLY. Do NOT tell the user you're retrying searches.",
|
|
369
|
-
'4. If the service IS connected but the specific action truly doesn\'t exist, open the browser to do it.
|
|
369
|
+
'4. If the service IS connected but the specific action truly doesn\'t exist, open the browser to do it. Tell the user briefly: "Let me do this in the browser — I\'ll have better control there." Do NOT mention Composio, tools, searches, integrations, or any technical details.',
|
|
370
370
|
'5. If result shows `connected: false` → include the `connectUrl` from the search result as plain text (no backticks, no bold, no brackets) e.g. lemon://connect?provider=jira. The app will automatically open the auth page. Say "Connecting [service name] for you: lemon://connect?provider=X" Then STOP and wait for them to complete the auth.',
|
|
371
371
|
"6. Once the user confirms they connected → execute the tool.",
|
|
372
372
|
"7. If `lemon-composio` has no results OR `lemon://connect` fails → use the browser as fallback. Open the service website, let the user log in, and complete the task via browser tools.",
|
|
@@ -430,9 +430,9 @@ export function buildAgentSystemPrompt(params) {
|
|
|
430
430
|
"",
|
|
431
431
|
"Then based on results:",
|
|
432
432
|
'1. **Tools found + connected** → Execute immediately: `lemon-composio execute <TOOL_SLUG> \'{"param": "value"}\'`. If the first search doesn\'t find the right tool, try different search terms (broader terms, service name only, etc.) before giving up.',
|
|
433
|
-
'2. **No tools found but `serviceConnected: true`** → The user IS connected but this specific action isn\'t available as a tool. Try a broader search first (e.g. just the service name). If still nothing,
|
|
433
|
+
'2. **No tools found but `serviceConnected: true`** → The user IS connected but this specific action isn\'t available as a tool. Try a broader search first (e.g. just the service name). If still nothing, tell the user: "Let me do this in the browser — I\'ll have better control there." Then use the browser. Do NOT try to connect again.',
|
|
434
434
|
"3. **Not connected (`serviceConnected: false`)** → Include the `connectUrl` from the result as plain text: lemon://connect?provider=X. NEVER output a connect URL if `serviceConnected` is true or if the provider appears in `connectedProviders`.",
|
|
435
|
-
"4. **Connect fails or no results at all** →
|
|
435
|
+
"4. **Connect fails or no results at all** → Tell the user: \"Let me do this in the browser — I'll have better control there.\" Then use the browser directly.",
|
|
436
436
|
"",
|
|
437
437
|
"Example flows:",
|
|
438
438
|
'- User: "add a card to my Trello board" → `lemon-composio search "create trello card"` → execute `TRELLO_CREATE_CARD`',
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
fd74cedac602274433c0778e3db58e97b29c2b1bcbac939d00c2524ce98abfab
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ If integrations aren't working, restart the Lemon app to regenerate them.
|
|
|
36
36
|
For services with a dedicated lemon-* CLI (Gmail, Calendar, Drive, Docs, Sheets, Slides, Notion, Slack, YouTube), always use the CLI first. The flow below applies to services without a lemon-* CLI:
|
|
37
37
|
|
|
38
38
|
1. **Try `lemon-composio search` first** — fastest path. If connected, execute immediately.
|
|
39
|
-
2. **If connected but specific action not found** — try different/broader search terms. If truly unavailable,
|
|
39
|
+
2. **If connected but specific action not found** — try different/broader search terms. If truly unavailable, tell the user: "Let me do this in the browser — I'll have better control there." Then use the browser. Do NOT mention technical details or try to re-connect an already connected service.
|
|
40
40
|
3. **If not connected** — include the connect URL in your reply as plain text (no backticks, no bold, no brackets) e.g. lemon://connect?provider=jira. The app will automatically open the auth page. Wait for user to complete the auth. NEVER output a connect URL for an already-connected service.
|
|
41
41
|
4. **If connect fails or service needs a subdomain** — use the browser to discover the user's site, then connect with subdomain.
|
|
42
42
|
5. **If everything fails** — use the browser directly to complete the task.
|