Skip to content

Conversation

imalsogreg
Copy link
Contributor

@imalsogreg imalsogreg commented Aug 21, 2025

A new language client based on the CFFI runtime. Because it relies on the baml runtime dynamic library, it doesn't need to use PyO3 or maturin. Pure Python code.

Phase 4/5 implemented.

@imalsogreg imalsogreg temporarily deployed to boundary-tools-dev August 21, 2025 05:24 — with GitHub Actions Inactive
@imalsogreg imalsogreg temporarily deployed to boundary-tools-dev August 21, 2025 05:24 — with GitHub Actions Inactive
@imalsogreg imalsogreg temporarily deployed to boundary-tools-dev August 21, 2025 05:24 — with GitHub Actions Inactive
Copy link

vercel bot commented Aug 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
promptfiddle Skipped Skipped Aug 25, 2025 3:28pm

Copy link

Copy link

Copy link

codecov bot commented Aug 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

sxlijin and others added 5 commits August 21, 2025 13:53
Implement serialization/deserialization for Python CFFI client:
- Phase 4.1: Core serde infrastructure for primitives
  - Created serde directory structure
  - Implemented type_map.py with TypeMap foundation
  - Added protobuf dependency and generated cffi_pb2.py
  - Implemented primitive encoding/decoding (string, int, float, bool, None)
  - All primitive round-trip tests pass

- Phase 4.2: Collections support
  - Added list encoding/decoding with recursive value support
  - Added map encoding/decoding with string keys
  - Support for nested collections (lists of maps, maps of lists, etc.)
  - All collection round-trip tests pass

Success criteria met:
✅ All primitive types encode/decode correctly
✅ Lists and maps with nested structures work
✅ Complex nested collections round-trip successfully

🤖 Generated with Claude Code

Co-Authored-By: Claude <[email protected]>
The test_unsupported_type_raises test was checking that lists and maps
raise errors, but we implemented support for them in phase 4.2.

Updated tests:
- Added test_lists_and_maps_are_supported to verify collections work
- Updated test_unsupported_type_raises to test actually unsupported types:
  - Custom objects
  - Sets
  - Tuples (not yet implemented)
  - Custom classes (without type map)

🤖 Generated with Claude Code

Co-Authored-By: Claude <[email protected]>
@sxlijin sxlijin temporarily deployed to boundary-tools-dev August 21, 2025 22:58 — with GitHub Actions Inactive
@sxlijin sxlijin temporarily deployed to boundary-tools-dev August 21, 2025 22:58 — with GitHub Actions Inactive
@sxlijin sxlijin temporarily deployed to boundary-tools-dev August 21, 2025 22:58 — with GitHub Actions Inactive
Copy link

Copy link

Copy link

Copy link

…sensitive information

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Copy link

Copy link

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.

3 participants