[verified] refactor: remove codex-pool references
This commit is contained in:
@@ -570,7 +570,7 @@ export class CodexService {
|
||||
const headers: Record<string, string> = {
|
||||
accept: 'application/json',
|
||||
authorization: `Bearer ${session.accessToken}`,
|
||||
'user-agent': 'CodexDash/0.2 (+https://github.com/darvell/codex-pool)',
|
||||
'user-agent': 'CodexDash/0.2',
|
||||
originator: 'codex_cli_rs',
|
||||
};
|
||||
|
||||
|
||||
17
apps/api/src/codex/legacy-upstream-copy.spec.ts
Normal file
17
apps/api/src/codex/legacy-upstream-copy.spec.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { join } from 'node:path';
|
||||
|
||||
const legacyProjectName = ['codex', 'pool'].join('-');
|
||||
const legacyRepoPath = ['darvell', legacyProjectName].join('/');
|
||||
|
||||
describe('CodexService source copy', () => {
|
||||
it('does not reference the legacy upstream project in usage headers', () => {
|
||||
const serviceSource = readFileSync(
|
||||
join(__dirname, 'codex.service.ts'),
|
||||
'utf8',
|
||||
);
|
||||
|
||||
expect(serviceSource).not.toContain(legacyRepoPath);
|
||||
expect(serviceSource).not.toContain(legacyProjectName);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user