Files
user.email a0c3691e97 ci(ai): switch issue automation to Codex and pause auto triggers
- replace the Claude CLI backend with the Codex CLI in scripts/ai/agent.cjs
- default provider is codex; openai-compatible stays classification-only
- install pinned @openai/codex in classify, implement and review-fix jobs
- disable automatic triggers on the three ai workflows, keep workflow_dispatch
2026-09-12 18:01:22 +08:00

21 lines
696 B
JavaScript

#!/usr/bin/env node
'use strict';
const assert = require('node:assert/strict');
const test = require('node:test');
const agent = require('./agent.cjs');
test('Codex is the default agent provider', () => {
const config = agent.resolveProviderConfig({});
assert.equal(config.provider, agent.PROVIDER_CODEX);
assert.equal(config.codexBin, 'codex');
assert.equal(config.model, '');
assert.equal(config.supportsImplement, true);
});
test('openai-compatible remains classification-only', () => {
const config = agent.resolveProviderConfig({ AI_PROVIDER: 'openai-compatible' });
assert.equal(config.provider, agent.PROVIDER_OPENAI);
assert.equal(config.supportsImplement, false);
});