Skip to content

feat: Add python block artifacts to the CLI UI - #762

Merged
ilyabo merged 1 commit into
mainfrom
add-python-block-artifact
Jun 23, 2026
Merged

ilyabo merged 1 commit into
mainfrom
add-python-block-artifact

Conversation

@ilyabo

@ilyabo ilyabo commented Jun 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add python to the CLI artifact type registry and stability map
  • Wire artifact creation and selection to initialize Python blocks
  • Expose a Python artifact creation command alongside the existing types

Testing

  • Not run (not requested)

Summary by CodeRabbit

  • New Features
    • Added Python support to the CLI, allowing users to create, manage, and interact with Python artifacts within the application.

@coderabbitai

coderabbitai Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Adds 'python' as a new experimental artifact type to the CLI UI. The type literal is appended to CLI_ARTIFACT_TYPES, a pythonBlockDefinition is constructed and registered in createCliArtifactTypes() behind the withStability experimental gate, and createDashboardCommands.ts gains create and select command branches that call state.python.ensureBlock.

Changes

Python Artifact Type Registration

Layer / File(s) Summary
Type contract, block definition, and artifact type registration
apps/sqlrooms-cli-ui/src/artifactTypeIds.ts, apps/sqlrooms-cli-ui/src/artifactTypes.tsx
'python' is added to CLI_ARTIFACT_TYPES (expanding the CliArtifactType union), createPythonBlockDefinition is imported, ARTIFACT_STABILITY gains python: 'experimental', pythonBlockDefinition is constructed, and the type is registered in createCliArtifactTypes() via withStability(..., experimentalEnabled).
Dashboard create and select command handlers
apps/sqlrooms-cli-ui/src/createDashboardCommands.ts
createArtifactCommand's execute adds an artifactType === 'python' branch calling state.python.ensureBlock; ARTIFACT_CREATE_COMMANDS gains a 'python' factory entry; artifact.select's execute adds an artifact.type === 'python' branch calling state.python.ensureBlock.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • sqlrooms/sqlrooms#616: Modifies the same createArtifactCommand execute logic in createDashboardCommands.ts, changing the title passed during generic artifact creation.
  • sqlrooms/sqlrooms#747: Overlaps at the artifact create/select command layer in createDashboardCommands.ts, adding artifactTargetChange to create/select responses for chat handoff.

Poem

🐇 A new artifact hops into the nest,
Python joins the CLI quest!
Experimental flag held high,
ensureBlock waves a warm goodbye.
The warren grows, one type more — 🐍

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title accurately and concisely describes the primary change: adding Python block artifact support to the CLI UI across all three modified files.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-python-block-artifact

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ilyabo ilyabo changed the title Add python block artifacts to the CLI UI feat: Add python block artifacts to the CLI UI Jun 23, 2026
@ilyabo
ilyabo merged commit 730effd into main Jun 23, 2026
6 of 8 checks passed
@ilyabo
ilyabo deleted the add-python-block-artifact branch June 23, 2026 06:36
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