Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 1 addition & 6 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Credentials, "apiUrl"> | null): string {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const CLI_VERSION = "0.6.7";
export const CLI_VERSION = "0.6.8";
7 changes: 2 additions & 5 deletions tests/lib/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
);
});
Expand Down