Skip to content

feat(pitot): restructure public distribution as a polyglot SDK - #83

Merged
bigboateng merged 6 commits into
mainfrom
feat/pitot-sdk-restructure
Jul 21, 2026
Merged

feat(pitot): restructure public distribution as a polyglot SDK#83
bigboateng merged 6 commits into
mainfrom
feat/pitot-sdk-restructure

Conversation

@bigboateng

Copy link
Copy Markdown
Contributor

This PR reorganizes the Pitot projection surface to cleanly support multiple languages without cluttering the Go module root.

Changes:

  • TypeScript: Moves the generated pitot.ts, package.json, and tsconfig.json into sdk/typescript/.
  • Python: Introduces a new quicktype generation pipeline for Python, emitting types and a minimal pyproject.toml into sdk/python/.
  • Projection Engine: Updates build_pitot.py to recursively project the sdk/ directory while safely ignoring local Python compile caches (__pycache__, .pyc).
  • CI: Verifies the syntactic validity of the generated Python types using py_compile.

This ensures that downstream users can simply pull from the sdk/typescript or sdk/python folders for perfectly synced, native protocol primitives, while the root repository strictly follows Go conventions.

Generates strongly-typed TS interfaces from Pitot Go structs using reflection and quicktype. Automates this inside CI and tracks it in the UPSTREAM projection manifest.
Adds package.json, tsconfig.json, and an index.ts to the projected surface, completing the value translation of Pitot into a first-class SDK for TypeScript consumers.
- Rewrite opening to focus on user outcome and failure state

- Translate portability table to show retained operational value

- Insert explicit 'How it works' and compounding mechanism sections

- Move technical features and installation instructions below outcomes
Moves TypeScript to sdk/typescript/, introduces Python to sdk/python/, and prevents non-Go artifacts from cluttering the public repository root.
…cture

# Conflicts:
#	.github/workflows/pitot-lab.yml
#	labs/12-product-engineering-loop/boatstack-distribution/README.md
#	labs/15-pitot/scripts/build_pitot.py
#	labs/15-pitot/scripts/generate_types.sh
@bigboateng
bigboateng merged commit 849cdf4 into main Jul 21, 2026
10 checks passed
@bigboateng
bigboateng deleted the feat/pitot-sdk-restructure branch July 21, 2026 13:38
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