@inkeep/agents-cli 0.1.1 → 0.1.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.
@@ -16,7 +16,7 @@ describe('Configuration Validation', () => {
16
16
  vi.clearAllMocks();
17
17
  process.env = { ...originalEnv };
18
18
  delete process.env.INKEEP_API_URL;
19
- delete process.env.INKEEP_MANAGEMENT_API_URL;
19
+ delete process.env.INKEEP_AGENTS_MANAGE_API_URL;
20
20
  delete process.env.INKEEP_EXECUTION_API_URL;
21
21
  });
22
22
  afterEach(() => {
@@ -35,17 +35,17 @@ describe('Configuration Validation', () => {
35
35
  expect(config.sources.executionApiUrl).toBe('command-line flag (--execution-api-url)');
36
36
  });
37
37
  it('should use environment variables when no flags provided', async () => {
38
- process.env.INKEEP_MANAGEMENT_API_URL = 'http://localhost:9090';
38
+ process.env.INKEEP_AGENTS_MANAGE_API_URL = 'http://localhost:9090';
39
39
  process.env.INKEEP_EXECUTION_API_URL = 'http://localhost:9091';
40
40
  const config = await validateConfiguration(undefined, undefined, undefined, undefined);
41
41
  expect(config.tenantId).toBe('env-tenant');
42
42
  expect(config.managementApiUrl).toBe('http://localhost:9090');
43
43
  expect(config.executionApiUrl).toBe('http://localhost:9091');
44
- expect(config.sources.managementApiUrl).toBe('environment variable (INKEEP_MANAGEMENT_API_URL)');
44
+ expect(config.sources.managementApiUrl).toBe('environment variable (INKEEP_AGENTS_MANAGE_API_URL)');
45
45
  expect(config.sources.executionApiUrl).toBe('environment variable (INKEEP_EXECUTION_API_URL)');
46
46
  });
47
47
  it('should allow command-line flags to override environment variables', async () => {
48
- process.env.INKEEP_MANAGEMENT_API_URL = 'http://localhost:9090';
48
+ process.env.INKEEP_AGENTS_MANAGE_API_URL = 'http://localhost:9090';
49
49
  process.env.INKEEP_EXECUTION_API_URL = 'http://localhost:9091';
50
50
  const config = await validateConfiguration('cli-tenant', 'http://cli-management', 'http://cli-execution', undefined);
51
51
  expect(config.tenantId).toBe('cli-tenant');
@@ -76,14 +76,14 @@ describe('Configuration Validation', () => {
76
76
  expect(config.sources.configFile).toBeUndefined();
77
77
  });
78
78
  it('should correctly identify environment variable sources', async () => {
79
- process.env.INKEEP_MANAGEMENT_API_URL = 'http://env-management';
79
+ process.env.INKEEP_AGENTS_MANAGE_API_URL = 'http://env-management';
80
80
  process.env.INKEEP_EXECUTION_API_URL = 'http://env-execution';
81
81
  const config = await validateConfiguration(undefined, undefined, undefined, undefined);
82
- expect(config.sources.managementApiUrl).toBe('environment variable (INKEEP_MANAGEMENT_API_URL)');
82
+ expect(config.sources.managementApiUrl).toBe('environment variable (INKEEP_AGENTS_MANAGE_API_URL)');
83
83
  expect(config.sources.executionApiUrl).toBe('environment variable (INKEEP_EXECUTION_API_URL)');
84
84
  });
85
85
  it('should correctly identify mixed sources with env and flag', async () => {
86
- process.env.INKEEP_MANAGEMENT_API_URL = 'http://env-management';
86
+ process.env.INKEEP_AGENTS_MANAGE_API_URL = 'http://env-management';
87
87
  process.env.INKEEP_EXECUTION_API_URL = 'http://env-execution';
88
88
  // Override only the management API URL with a flag
89
89
  const config = await validateConfiguration(undefined, 'http://override-management', undefined, undefined);