mirror of
https://github.com/feigeCode/navop.git
synced 2026-09-21 08:01:22 +00:00
- 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
21 lines
696 B
JavaScript
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);
|
|
});
|