feat: update codex live automation and plan flows
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { appendClientIdHeader } from '../../app/main/clientIdentity';
|
||||
import { normalizeAutomationTypeId } from '../../app/main/automationTypeAccess';
|
||||
import { getRegisteredAccessToken } from '../../app/main/tokenAccess';
|
||||
import type { BoardAutomationType, BoardDraft, BoardPost } from './types';
|
||||
|
||||
@@ -13,16 +14,7 @@ class BoardApiError extends Error {
|
||||
}
|
||||
|
||||
function normalizeBoardAutomationType(value: unknown): BoardAutomationType {
|
||||
return value === 'plan' ||
|
||||
value === 'command_execution' ||
|
||||
value === 'non_source_work' ||
|
||||
value === 'auto_worker'
|
||||
? value
|
||||
: value === 'plan_registration'
|
||||
? 'plan'
|
||||
: value === 'general_development'
|
||||
? 'auto_worker'
|
||||
: 'none';
|
||||
return normalizeAutomationTypeId(value);
|
||||
}
|
||||
|
||||
function resolveBoardApiBaseUrl() {
|
||||
|
||||
Reference in New Issue
Block a user