inputKeys array, missing key error message
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user