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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@elevenlabs/cli",
"version": "0.1.0",
"version": "0.1.1",
"description": "CLI tool to manage ElevenLabs agents",
"type": "module",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/agents/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function createAgentsCommand(): Command {
agents.option('-h, --help', 'Display help information');

// Custom action when agents command is run without subcommands
agents.action(async (options) => {
agents.action(async () => {
const { waitUntilExit } = render(
React.createElement(AgentsHelpView)
);
Expand Down
2 changes: 1 addition & 1 deletion src/agents/commands/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function getAgentName(configPath: string): Promise<string> {
return config.name || 'Unnamed Agent';
}
return 'Unknown Agent';
} catch (error) {
} catch {
return 'Unknown Agent';
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/auth/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function createAuthCommand(): Command {
auth.option('-h, --help', 'Display help information');

// Custom action when auth command is run without subcommands
auth.action(async (options) => {
auth.action(async () => {
const { waitUntilExit } = render(
React.createElement(AuthHelpView)
);
Expand Down
1 change: 1 addition & 0 deletions src/components/commands/add.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Command } from 'commander';
import { spawnSync } from 'child_process';
import { URL } from 'url';

export function createAddCommand(): Command {
return new Command('add')
Expand Down
2 changes: 1 addition & 1 deletion src/components/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function createComponentsCommand(): Command {
components.option('-h, --help', 'Display help information');

// Custom action when components command is run without subcommands
components.action(async (options) => {
components.action(async () => {
const { waitUntilExit } = render(
React.createElement(ComponentsHelpView)
);
Expand Down
10 changes: 5 additions & 5 deletions src/shared/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async function migrateLegacyApiKey(): Promise<void> {

// Remove legacy file
await fs.remove(legacyFile);
} catch (error) {
} catch {
// If migration fails, silently continue
}
}
Expand All @@ -97,7 +97,7 @@ async function loadApiKeys(): Promise<ApiKeysStorage> {
const content = await fs.readFile(keysFile, 'utf-8');
return JSON.parse(content) as ApiKeysStorage;
}
} catch (error) {
} catch {
// If file is corrupted, start fresh
}

Expand Down Expand Up @@ -142,7 +142,7 @@ export async function retrieveApiKey(environment: string = 'prod'): Promise<stri
try {
const storage = await loadApiKeys();
return storage[environment];
} catch (error) {
} catch {
// File not readable
}

Expand All @@ -166,7 +166,7 @@ export async function removeApiKey(environment: string = 'prod'): Promise<void>
} else {
await saveApiKeys(storage);
}
} catch (error) {
} catch {
// Ignore errors
}
}
Expand All @@ -186,7 +186,7 @@ export async function listEnvironments(): Promise<string[]> {
try {
const storage = await loadApiKeys();
return Object.keys(storage);
} catch (error) {
} catch {
return [];
}
}
2 changes: 1 addition & 1 deletion src/shared/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function loadConfig(): Promise<CliConfig> {
const configContent = await fs.readFile(configPath, 'utf-8');
return JSON.parse(configContent);
}
} catch (error) {
} catch {
// If config file is corrupted or unreadable, start fresh
console.warn('Warning: Config file corrupted, starting fresh');
}
Expand Down
4 changes: 2 additions & 2 deletions src/tests/commands/impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function addTest(name: string, templateType: string = "basic-llm", environ

try {
testsConfig = await readConfig<TestsConfig>(testsConfigPath);
} catch (error) {
} catch {
// Initialize tests.json if it doesn't exist
testsConfig = { tests: [] };
await writeConfig(testsConfigPath, testsConfig);
Expand Down Expand Up @@ -242,7 +242,7 @@ async function pullTestsFromEnvironment(options: { test?: string; outputDir: str

try {
testsConfig = await readConfig<TestsConfig>(testsConfigPath);
} catch (error) {
} catch {
testsConfig = { tests: [] };
await writeConfig(testsConfigPath, testsConfig);
console.log(`Created ${TESTS_CONFIG_FILE}`);
Expand Down
2 changes: 1 addition & 1 deletion src/tests/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function createTestsCommand(): Command {
tests.option('-h, --help', 'Display help information');

// Custom action when tests command is run without subcommands
tests.action(async (options) => {
tests.action(async () => {
const { waitUntilExit } = render(
React.createElement(TestsHelpView)
);
Expand Down
2 changes: 1 addition & 1 deletion src/tools/commands/impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function addTool(name: string, type: 'webhook' | 'client', configPath?: st

try {
toolsConfig = await readToolsConfig(toolsConfigPath);
} catch (error) {
} catch {
// Initialize tools.json if it doesn't exist
toolsConfig = { tools: [] };
await writeToolsConfig(toolsConfigPath, toolsConfig);
Expand Down
2 changes: 1 addition & 1 deletion src/tools/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function createToolsCommand(): Command {
tools.option('-h, --help', 'Display help information');

// Custom action when tools command is run without subcommands
tools.action(async (options) => {
tools.action(async () => {
const { waitUntilExit } = render(
React.createElement(ToolsHelpView)
);
Expand Down
Loading