begin jules support, derive inputs

This commit is contained in:
David Blass
2025-11-14 14:27:00 -05:00
parent d4a4dd59bb
commit 6f2ccedbf8
4 changed files with 201 additions and 4 deletions
+3 -2
View File
@@ -5,6 +5,8 @@
*/
import * as core from "@actions/core";
import { flatMorph } from "@ark/util";
import { agents } from "./agents/index.ts";
import { AgentName, type Inputs, main } from "./main.ts";
import { log } from "./utils/cli.ts";
@@ -20,9 +22,8 @@ async function run(): Promise<void> {
try {
const inputs: Required<Inputs> = {
prompt: core.getInput("prompt", { required: true }),
anthropic_api_key: core.getInput("anthropic_api_key"),
openai_api_key: core.getInput("openai_api_key"),
agent: core.getInput("agent") ? AgentName.assert(core.getInput("agent")) : undefined,
...flatMorph(agents, (_, agent) => [agent.inputKey, core.getInput(agent.inputKey)]),
};
const result = await main(inputs);