draftify-cli 1.0.0 → 1.0.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.
@@ -11,7 +11,7 @@ const config_1 = require("../utils/config");
11
11
  const ui_1 = require("../utils/ui");
12
12
  const kleur_1 = require("kleur");
13
13
  // Default Draftify URL, can be overridden by env
14
- const DRAFTIFY_WEB_URL = process.env.DRAFTIFY_WEB_URL || "http://localhost:3000";
14
+ const DRAFTIFY_WEB_URL = process.env.DRAFTIFY_WEB_URL || "https://draftify-sable.vercel.app";
15
15
  async function loginCommand() {
16
16
  const code = crypto_1.default.randomBytes(4).toString("hex");
17
17
  const authUrl = `${DRAFTIFY_WEB_URL}/auth/cli?code=${code}`;
@@ -48,7 +48,7 @@ function getToken() {
48
48
  function getApiUrl() {
49
49
  const config = getConfig();
50
50
  // Fallback API URL, overrideable via config or DRAFTIFY_API_URL
51
- return process.env.DRAFTIFY_API_URL || config.apiUrl || "http://localhost:3000/api/cli";
51
+ return process.env.DRAFTIFY_API_URL || config.apiUrl || "https://draftify-sable.vercel.app/api/cli";
52
52
  }
53
53
  function getModel() {
54
54
  const config = getConfig();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "draftify-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Draftify AI CLI tool",
5
5
  "main": "dist/index.js",
6
6
  "bin": {