refactor(rebrand): rename & rebrand CI → CIAgent across all source and test files
- Type renames: CIConfig → CIAgentConfig, DEFAULT_CI_CONFIG → DEFAULT_CIAGENT_CONFIG - Type renames: CiMetadata → CIAgentMetadata, ParsedCiCommit → ParsedCIAgentCommit - Function renames: initCI → initCIAgent, isCIInitialized → isCIAgentInitialized - Function renames: extractCiBlock → extractCIAgentBlock, parseCiBlock → parseCIAgentBlock - Class renames: CiFiles → CIAgentFiles - Import paths: ci-files.js → ciagent-files.js - Directory paths: .ci/ → .ciagent/ across all source and test files - Check names: ".ci directory exists" → ".ciagent directory exists" - Check names: "CI config valid" → "CIAgent config valid" - Temp dir names: ci-*-test- → ciagent-*-test- - CLI examples: "ci init" → "ciagent init" - Fix deepMerge infinite recursion bug in config.ts - ---ci---/---/ci--- block markers preserved unchanged - All 31 test suites, 370 tests passing ---ci--- phase: 1 milestone: v0.5 plan: 07 task: 07-01-01 status: execute ---/ci---
This commit is contained in:
@@ -2,17 +2,17 @@ import * as fs from "node:fs";
|
||||
import * as path from "node:path";
|
||||
import * as os from "node:os";
|
||||
import { EscalationProtocol, EscalationInput } from "../core/escalation.js";
|
||||
import { DEFAULT_CI_CONFIG } from "../types/config.js";
|
||||
import { DEFAULT_CIAGENT_CONFIG } from "../types/config.js";
|
||||
|
||||
describe("EscalationProtocol", () => {
|
||||
let tempDir: string;
|
||||
let protocol: EscalationProtocol;
|
||||
|
||||
beforeEach(() => {
|
||||
tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "ci-escalation-test-"));
|
||||
tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "ciagent-escalation-test-"));
|
||||
const noAutoCommitConfig = {
|
||||
...DEFAULT_CI_CONFIG,
|
||||
git: { ...DEFAULT_CI_CONFIG.git, auto_commit: false },
|
||||
...DEFAULT_CIAGENT_CONFIG,
|
||||
git: { ...DEFAULT_CIAGENT_CONFIG.git, auto_commit: false },
|
||||
};
|
||||
protocol = new EscalationProtocol(noAutoCommitConfig, tempDir);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user