[verified] refactor: remove codex-pool references

This commit is contained in:
2026-05-10 08:57:19 +09:00
parent a05d3a4f90
commit 7885824f92
5 changed files with 40 additions and 4 deletions

View File

@@ -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',
};

View 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);
});
});