inputKeys array, missing key error message

This commit is contained in:
David Blass
2025-11-14 16:12:32 -05:00
parent 7c724d931b
commit 1b55da51a1
8 changed files with 74 additions and 19 deletions
+4 -5
View File
@@ -24,11 +24,10 @@ export async function run(
const inputs: Required<Inputs> = {
prompt,
agent: "jules",
...flatMorph(agents, (_, agent) => [
agent.inputKey,
process.env[agent.inputKey.toUpperCase()],
]),
agent: "claude",
...flatMorph(agents, (_, agent) =>
agent.inputKeys.map((inputKey) => [inputKey, process.env[inputKey.toUpperCase()]])
),
};
const result = await main(inputs);