Skip to content

feat(runner): align top-level input schema with inner (initPreset enum + drop preAuthenticate section caption) - #15

Merged
DaveHanns merged 1 commit into
mainfrom
align-top-level-schema-with-inner
Jun 17, 2026
Merged

feat(runner): align top-level input schema with inner (initPreset enum + drop preAuthenticate section caption)#15
DaveHanns merged 1 commit into
mainfrom
align-top-level-schema-with-inner

Conversation

@DaveHanns

Copy link
Copy Markdown
Collaborator

Summary

Two-line follow-up to #12 that closes the remaining top-level / inner schema drift visible in the Apify Console form:

  1. Drops preAuthenticate.sectionCaption: "Authentication" — the Console was rendering preAuthenticate under its own collapsible section header rather than inline with the other fields. Maintainer asked to keep it inline.
  2. Expands initPreset.enum from 4 → 8 values + adds matching enumTitles + rewrites description — the surface-aware presets shipped in Surface-aware preset overhaul: api_native, *_only variants, enhanced none #6 (api_native, mcp_only, cli_only, api_only) were live in the inner actors/runner/.actor/input_schema.json but not in the canonical top-level .actor/input_schema.json. The Console preset dropdown showed only 4 options.

Both fields were copied verbatim from actors/runner/.actor/input_schema.json on current main.

Why

Same pattern as #12 — drift between the two .actor/ directories means Console form changes silently lag the inner schema's progress. #13 (full consolidation + inner deletion) will fix this comprehensively, but in the meantime users of the deployed Actor need the dropdowns and field layout to match what the runner code actually supports.

Diff scope

Single file: .actor/input_schema.json. ~10-15 lines changed in two adjacent blocks. No code changes, no other files touched.

Test plan

  • jq . .actor/input_schema.json exits 0.
  • After merge + Actor rebuild, the Console form shows the preAuthenticate checkbox inline with maxTurns/maxRetries (no separate Authentication section header).
  • The Tool Setup Preset dropdown lists all 8 options with full enumTitles.

Relationship to #13

#13 (refactor(runner): consolidate to a single Actor) already includes both these changes as part of the full inner→top-level merge. If #13 lands first, this PR becomes a no-op auto-resolve during rebase. If this PR lands first, #13 still applies cleanly (same final state).

🤖 Generated with Claude Code

…m + drop preAuthenticate section caption)

Follow-up to #12. That PR copied the preAuthenticate property block from
the inner schema but left two other top-level / inner drifts unaddressed:

1. preAuthenticate had `sectionCaption: "Authentication"` which forces a
   separate section header in the Console form. The maintainer asked to keep
   the field inline with the others — dropping the section caption.

2. The initPreset enum on the top-level schema still has only 4 values
   (none, mcp_native, cli_native, mcpc) — the inner schema added 4 more in
   PR #6 (api_native, mcp_only, cli_only, api_only) plus a rewritten
   description distinguishing _native vs _only semantics and matching
   enumTitles. The Console preset dropdown was missing the 4 new options.

This PR copies both fields (initPreset.description, initPreset.enum,
initPreset.enumTitles) from the inner schema verbatim and removes the
sectionCaption from preAuthenticate. Together with #12 this brings the
top-level schema in line with the inner copy for the two fields users
actually interact with in the Console.

Out of scope: the full inner→top-level merge + inner deletion (that's #13,
still in review). Once #13 lands this PR's changes become redundant but
harmless.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@DaveHanns
DaveHanns merged commit 80225f6 into main Jun 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant