export function collectActionInputsPresence(): string { const inputDefaults: Record = { trigger_phrase: "@claude", assignee_trigger: "", label_trigger: "claude", base_branch: "", branch_prefix: "claude/", allowed_bots: "", mode: "tag", model: "", anthropic_model: "", fallback_model: "", allowed_tools: "", disallowed_tools: "", custom_instructions: "", direct_prompt: "", override_prompt: "", additional_permissions: "", claude_env: "", settings: "", anthropic_api_key: "", claude_code_oauth_token: "", github_token: "", max_turns: "", use_sticky_comment: "false", use_commit_signing: "false", ssh_signing_key: "", }; const allInputsJson = process.env.ALL_INPUTS; if (!allInputsJson) { console.log("ALL_INPUTS environment variable not found"); return JSON.stringify({}); } let allInputs: Record; try { allInputs = JSON.parse(allInputsJson); } catch (e) { console.error("Failed to parse ALL_INPUTS JSON:", e); return JSON.stringify({}); } const presentInputs: Record = {}; for (const [name, defaultValue] of Object.entries(inputDefaults)) { const actualValue = allInputs[name] || ""; const isSet = actualValue !== defaultValue; presentInputs[name] = isSet; } return JSON.stringify(presentInputs); }