Skip to content

Carry the typed_columns opt-in flag through the SDK and CLI - #31

Merged
yudelevi merged 3 commits into
feat/discogen-typed-columnsfrom
feat/typed-columns-flag
Sep 22, 2026
Merged

yudelevi merged 3 commits into
feat/discogen-typed-columnsfrom
feat/typed-columns-flag

Conversation

@yudelevi

@yudelevi yudelevi commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds the typed_columns opt-in flag to the SDK and CLI, mirroring the API's DiscoGen request shape
  • api-dev already serves typed_columns; the OpenAPI spec requires the field and the SDK was missing it, so this is what makes the contract check pass

Stacked on #30 — should merge first.

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with the new flag consistently represented and forwarded across the SDK and CLI.

Summary

This PR carries the typed_columns opt-in through both DiscoGen request models and both CLI commands, and documents the new capability.

  • Adds typed_columns to domain-based and persona-based SDK request models.
  • Adds paired --typed-columns and --no-typed-columns CLI options.
  • Verifies positive flag serialization for both CLI paths and the SDK process path.
  • No correctness, security, or repository-rule violations were identified.

Reviews (1) · Last reviewed commit: "Carry the typed_columns opt-in flag thro..."

DiscoGen's typed-column detector (which columns run through TypeSafe
judgment instead of generated prose) is picked server-side from the
query text; the client only opts in with a bool, same shape as
include_confidence which already made the trip last commit. Hand-added
to _generated/requests.py rather than regenerated, since api-dev does
not serve this field yet (same ordering constraint as include_confidence).
A PR stacked on a feature branch is as far ahead of prod as the branch it
targets, but base_ref only matched "development" literally, so the stack
fell through to the prod spec and reported every unreleased field as a
missing one. Fork PRs still get the prod spec, since they never receive
DEV_SPEC_URL.
# Conflicts:
#	CHANGELOG.md
#	packages/discolike-cli/tests/test_discogen_cli.py
@yudelevi
yudelevi merged commit c560879 into feat/discogen-typed-columns Sep 22, 2026
7 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