Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Nov 13, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

seefeldb and others added 4 commits November 12, 2025 13:48
* docs: update API to use computed(), Cell.of(), and inline handlers

Updated all documentation in docs/common/ to reflect recent API changes:

API Changes:
- Replace cell() with Cell.of() for creating reactive state
- Replace derive() with computed() for reactive transformations
- Add Cell.equals(a, b) for convenient cell comparison
- Add Cell.for(cause) for explicit cell creation in lift contexts
- Support inline handlers without handler() wrapper

Key Updates:
- Inline handlers preferred for simple cases: onClick={() => count.set(count.get() + 1)}
- handler() now optional, only for complex/reusable logic
- Emphasized: declare cells as Cell<T> in recipe inputs for inline handlers
- computed() closes over variables, not needed in JSX (automatic reactivity)
- Updated all code examples to use new API

Decision Hierarchy:
1. Bidirectional binding ($checked, $value) for simple UI ↔ data sync
2. Inline handlers for simple operations with custom logic
3. handler() function only for complex or reusable logic

Files updated:
- docs/common/RECIPES.md: Core concepts, handlers, computed(), examples
- docs/common/HANDLERS.md: Inline handler guide, decision matrix
- docs/common/PATTERNS.md: Level 1-3 examples, pitfalls, performance
- docs/common/COMPONENTS.md: ct-button, ct-input examples

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* updated core patterns to new syntax
* Add support for `tools` to `generateText`

* Fix cache behaviour for tool-call-only response

* Fix lint

* Format

* Format
* Fix model picker display in `ct-prompt-input`

* Format

* Fix `generateObject` 400 error

* Handle `undefined` case
* fix ct-1035 by correctly transforming map inside ifelse
@pull pull bot locked and limited conversation to collaborators Nov 13, 2025
@pull pull bot added the ⤵️ pull label Nov 13, 2025
@pull pull bot merged commit a584418 into ExaDev:main Nov 13, 2025
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants