From dd4687a9e5a6f06ee8b6ee6a87a933b7dffa870b Mon Sep 17 00:00:00 2001 From: Steven Coaila Date: Thu, 28 May 2026 09:37:02 -0500 Subject: [PATCH] chore(cli): remove legacy api url alias --- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/lib/config.ts | 7 +------ src/lib/version.ts | 2 +- tests/lib/config.test.ts | 7 ++----- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4838e1..6229c1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +## [0.6.8] - 2026-05-28 + +### Changed + +- Removed the final legacy LucasApp production API URL alias from CLI config + resolution. Stored credentials should point directly to + `https://api.lucasapp.app`. + ## [0.6.7] - 2026-05-28 ### Added diff --git a/package.json b/package.json index 77440b6..d2caf88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lucasapp-cli", - "version": "0.6.7", + "version": "0.6.8", "description": "LucasApp CLI - Financial data management for AI agents", "author": "StevenACZ", "license": "MIT", diff --git a/src/lib/config.ts b/src/lib/config.ts index ef10166..d3ad20b 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -20,14 +20,9 @@ export interface Credentials { export const CONFIG_DIR = join(homedir(), ".config", "lucas"); const CREDENTIALS_FILE = join(CONFIG_DIR, "credentials.json"); const DEFAULT_API_URL = "https://api.lucasapp.app"; -const LEGACY_PRODUCTION_API_URLS = new Set(["https://lucas.stevenacz.com"]); export function normalizeApiUrl(apiUrl: string): string { - const normalized = apiUrl.trim().replace(/\/+$/, ""); - if (LEGACY_PRODUCTION_API_URLS.has(normalized)) { - return DEFAULT_API_URL; - } - return normalized; + return apiUrl.trim().replace(/\/+$/, ""); } export function getApiUrl(creds?: Pick | null): string { diff --git a/src/lib/version.ts b/src/lib/version.ts index c6e3d0e..3fb2edb 100644 --- a/src/lib/version.ts +++ b/src/lib/version.ts @@ -1 +1 @@ -export const CLI_VERSION = "0.6.7"; +export const CLI_VERSION = "0.6.8"; diff --git a/tests/lib/config.test.ts b/tests/lib/config.test.ts index 977fb3d..3e1c116 100644 --- a/tests/lib/config.test.ts +++ b/tests/lib/config.test.ts @@ -49,13 +49,10 @@ describe("config credential storage", () => { expect(fileMode).toBe(0o600); }); - it("normalizes legacy production API URLs from stored credentials", async () => { + it("normalizes stored credential API URLs", async () => { const { getApiUrl } = await import("../../src/lib/config.js"); - expect(getApiUrl({ apiUrl: "https://lucas.stevenacz.com" })).toBe( - "https://api.lucasapp.app", - ); - expect(getApiUrl({ apiUrl: "https://lucas.stevenacz.com/" })).toBe( + expect(getApiUrl({ apiUrl: " https://api.lucasapp.app/ " })).toBe( "https://api.lucasapp.app", ); });