@heylemon/lemonade 0.3.6 → 0.3.8

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.
@@ -171,7 +171,7 @@ export function buildAgentSystemPrompt(params) {
171
171
  grep: "Search file contents for patterns",
172
172
  find: "Find files by glob pattern",
173
173
  ls: "List directory contents",
174
- exec: "Run shell commands (pty available for TTY-required CLIs)",
174
+ exec: "Run shell commands (use lemon-* CLIs for integrations; for third-party apps like Trello/Jira/Asana use ONLY lemon-composio, never bare commands)",
175
175
  process: "Manage background exec sessions",
176
176
  web_search: "Search the web (Brave API)",
177
177
  web_fetch: "Fetch and extract readable content from a URL",
@@ -342,22 +342,25 @@ export function buildAgentSystemPrompt(params) {
342
342
  "For screenshots of native macOS windows: use Peekaboo (`peekaboo image`) via exec if the skill is available.",
343
343
  "",
344
344
  "## Third-Party App Requests (Trello, Jira, LinkedIn, Asana, HubSpot, Salesforce, Todoist, etc.)",
345
- "The ONLY dedicated `lemon-*` CLIs are: lemon-gmail, lemon-calendar, lemon-drive, lemon-docs, lemon-sheets, lemon-slides, lemon-notion, lemon-slack, lemon-youtube, lemon-twitter.",
346
- "For ALL other services, there is ONE universal tool: `lemon-composio`. Do NOT look for or try to use `lemon-trello`, `lemon-jira`, `lemon-asana`, `trello`, `jira`, or any other CLI. They do not exist. Do NOT search the web for how to set up these tools. Do NOT ask the user for API keys.",
347
345
  "",
348
- "When the user mentions ANY service not in the list above, follow this EXACT sequence:",
349
- '1. Run `lemon-composio search "<what the user wants>"` — this is your FIRST action. No web search. No browser. No questions.',
346
+ "⚠️ CRITICAL RULE: For ANY service not in the dedicated CLI list below, your ONLY option is `lemon-composio`. There are NO other CLIs. Running `trello`, `jira`, `composio`, `asana`, `hubspot`, or any bare command will FAIL. The ONLY command that works is `lemon-composio search` and `lemon-composio execute`. Do NOT run `which trello`, `trello --help`, `composio`, or try to discover CLIs. They do not exist.",
347
+ "",
348
+ "Dedicated `lemon-*` CLIs (the COMPLETE list): lemon-gmail, lemon-calendar, lemon-drive, lemon-docs, lemon-sheets, lemon-slides, lemon-notion, lemon-slack, lemon-youtube, lemon-twitter, lemon-composio.",
349
+ "ANYTHING not in this list → use `lemon-composio search`.",
350
+ "",
351
+ "When the user mentions ANY service not in the dedicated CLI list, follow this EXACT sequence:",
352
+ '1. Run `lemon-composio search "<what the user wants>"` — this is your FIRST and ONLY action. No web search. No browser. No `which`. No `--help`. No questions.',
350
353
  "2. If result shows `connected: true` → execute the tool immediately with `lemon-composio execute`.",
351
354
  '3. If result shows `connected: false` → say "Please connect [service name] so I can do this for you" and include the `connectUrl` from the search result. Then STOP and wait.',
352
355
  "4. Once the user confirms they connected → execute the tool.",
353
356
  "",
354
- "BANNED RESPONSES — never say any of these:",
355
- '- "I don\'t have [X] integration/connected"',
356
- '- "I can help you create tasks in other tools instead"',
357
- '- "Would you like to use [alternative] instead?"',
358
- "- Any numbered list of alternative tools",
359
- "- Instructions to get API keys, tokens, or set up CLI auth for third-party services",
360
- "- Opening a browser to look up how to use a third-party service",
357
+ "BANNED ACTIONS — never do any of these for third-party services:",
358
+ "- Running `which <service>`, `<service> --help`, `<service> auth:*`, or any bare CLI command",
359
+ "- Running `composio` (wrong command use `lemon-composio`)",
360
+ "- Asking the user for API keys, tokens, or manual CLI auth setup",
361
+ "- Searching the web for how to set up a service",
362
+ "- Opening a browser to configure a service",
363
+ '- Suggesting alternative tools ("Would you like to use X instead?")',
361
364
  "If the user says Trello, they want Trello. Not Reminders. Not Things. Not Notion. Run `lemon-composio search` and make it happen.",
362
365
  "",
363
366
  "## URLs & Quick Open",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.6",
3
- "commit": "738e46078b5f60480e95496a5c215a65c8959ae7",
4
- "builtAt": "2026-02-23T07:24:35.885Z"
2
+ "version": "0.3.8",
3
+ "commit": "0a096d81b9c1db05d35b36a7bfc268b9ce8b7420",
4
+ "builtAt": "2026-02-24T05:49:04.638Z"
5
5
  }
@@ -1 +1 @@
1
- f5fd85425915f9fe3e2ad069eeba44dc7af92e8c21a42cce556496a849bc644c
1
+ c684050231d4a94e46f69c43b39c26d0cf49e6dea297b89aaf5da9baec6086b1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heylemon/lemonade",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "AI gateway CLI for Lemon - local AI assistant with integrations",
5
5
  "publishConfig": {
6
6
  "access": "restricted"
@@ -28,7 +28,8 @@ Before using browser for any of these services, **use the `lemon-*` CLI tool ins
28
28
  **Spotify:** Use AppleScript ONLY (see spotify skill). Never use a CLI, never use browser. The native Spotify macOS app is controlled via AppleScript.
29
29
 
30
30
  **When browser fallback is allowed:**
31
- - ONLY if the CLI binary itself is missing ("command not found") or the service is genuinely not connected.
31
+ - If the CLI binary itself is missing ("command not found") or the service is genuinely not connected.
32
+ - If `lemon://connect` fails or OAuth is unavailable for a service (e.g. Jira, Trello, Asana, Figma). In this case, open the service website in the Lemonade browser, ask the user to log in if needed, then use browser tools to complete the task.
32
33
  - NEVER because a search returned no results, a user wasn't found, a name didn't match, etc. Those are normal — retry with different input or ask the user.
33
34
 
34
35
  ## When to Use Browser
@@ -19,3 +19,23 @@ The generated skills are placed in `~/.lemonade/skills/` and include:
19
19
  - Proper authentication tokens
20
20
 
21
21
  If integrations aren't working, restart the Lemon app to regenerate them.
22
+
23
+ ## Browser Fallback for Unsupported Integrations
24
+
25
+ Some services (e.g. Jira, Trello, Asana, Figma, ClickUp, Monday.com, Zendesk, Intercom, Shopify, Stripe, Airtable, HubSpot) may not have OAuth configured. When connecting fails or a CLI tool is unavailable for a service:
26
+
27
+ 1. **Use the browser to complete the task directly.** Open the service website in the Lemonade browser, ask the user to log in if needed, then use browser tools (navigate, click, type, snapshot) to perform the requested action.
28
+ 2. **Don't give up.** If `lemon://connect` fails or the user says it didn't work, immediately switch to browser-based execution instead of telling the user to try again later.
29
+ 3. **Common fallback URLs:**
30
+ - Jira: `https://id.atlassian.com` (login), then the user's Jira instance
31
+ - Trello: `https://trello.com`
32
+ - Asana: `https://app.asana.com`
33
+ - Figma: `https://figma.com`
34
+ - ClickUp: `https://app.clickup.com`
35
+ - Monday.com: `https://monday.com`
36
+ - HubSpot: `https://app.hubspot.com`
37
+ - Airtable: `https://airtable.com`
38
+ - Todoist: `https://app.todoist.com`
39
+ - Shopify: `https://admin.shopify.com`
40
+
41
+ **Flow:** Try CLI tool first → if unavailable, offer `lemon://connect` → if connect fails, use browser to do the task.