emailr-cli 1.3.1 → 1.3.3

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -993,7 +993,14 @@ Template: ${template.name}`);
993
993
  process.exit(1);
994
994
  }
995
995
  });
996
- cmd.command("edit <id>").description("Edit a template with live preview - saves HTML to a local file for editing").option("--file <path>", "Path to save the HTML file", "./template.html").option("--no-open", "Do not automatically open browser").action(async (id, options) => {
996
+ cmd.command("edit <id>").description(`Start a live editing session for a template.
997
+
998
+ AGENTIC WORKFLOW:
999
+ 1. Run: emailr templates edit <id> --file ./template.html
1000
+ 2. Edit the file at ./template.html - browser auto-refreshes on save
1001
+ 3. When done: emailr templates update <id> --html-file ./template.html
1002
+
1003
+ This command fetches the template HTML, saves it locally, and starts a live preview server with hot-reload. Any changes to the file are instantly reflected in the browser.`).option("--file <path>", "Path to save the HTML file for editing", "./template.html").option("--no-open", "Do not automatically open browser").action(async (id, options) => {
997
1004
  try {
998
1005
  const config = loadConfig();
999
1006
  const client = new Emailr3({
@@ -2118,7 +2125,7 @@ function openBrowser(url) {
2118
2125
 
2119
2126
  // src/commands/login.ts
2120
2127
  var DEFAULT_TIMEOUT_SECONDS = 120;
2121
- var WEB_APP_BASE_URL = process.env.EMAILR_WEB_URL || "https://emailr.dev";
2128
+ var WEB_APP_BASE_URL = process.env.EMAILR_WEB_URL || "https://api.emailr.dev";
2122
2129
  function buildAuthorizationUrl(state, callbackPort) {
2123
2130
  const callbackUrl = `http://127.0.0.1:${callbackPort}/callback`;
2124
2131
  const params = new URLSearchParams({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emailr-cli",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "Command-line interface for the Emailr email API",
5
5
  "type": "module",
6
6
  "bin": {