Update agent SDKs and add gated Codex goals support (#114)
* add gated codex goals support * sync README SDK versions * bump claude agent sdk * add codex goals settings toggle
This commit is contained in:
@@ -52,6 +52,7 @@ interface RunnerInput {
|
||||
isScheduledTask?: boolean;
|
||||
assistantName?: string;
|
||||
agentType?: string;
|
||||
codexGoals?: boolean;
|
||||
roomRoleContext?: RoomRoleContext;
|
||||
}
|
||||
|
||||
@@ -95,6 +96,10 @@ function log(message: string): void {
|
||||
console.error(`[codex-runner] ${message}`);
|
||||
}
|
||||
|
||||
function isCodexGoalsEnabled(runnerInput: RunnerInput): boolean {
|
||||
return runnerInput.codexGoals === true || process.env.CODEX_GOALS === 'true';
|
||||
}
|
||||
|
||||
async function readStdin(): Promise<string> {
|
||||
return new Promise((resolve, reject) => {
|
||||
let data = '';
|
||||
@@ -343,6 +348,7 @@ async function runAppServerSession(
|
||||
cwd: EFFECTIVE_CWD,
|
||||
env: clientEnv,
|
||||
log,
|
||||
enableGoals: isCodexGoalsEnabled(runnerInput),
|
||||
});
|
||||
|
||||
await client.start();
|
||||
|
||||
Reference in New Issue
Block a user