Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Nov 10, 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 : )

jsantell and others added 3 commits November 10, 2025 10:07
chore: Align creation of sessions across the workspace as a precursor to identity signing.
This change introduces a new method `getArgumentCell()` that provides convenient
access to the argument cell of an instantiated recipe. This is useful when you
need to update the arguments of a running recipe instance and have the changes
automatically propagate through the reactive system.

Changes:
- Add `getArgumentCell()` method to IResolvable interface in packages/api/index.ts
  - Supports both generic type parameter and JSONSchema validation
  - Returns Cell<T> | undefined (undefined if no source cell exists)

- Implement `getArgumentCell()` in CellImpl (packages/runner/src/cell.ts)
  - Retrieves the source cell using existing getSourceCell() method
  - Kicks off sync to ensure latest data is available
  - Returns the "argument" key of the source cell with optional schema validation
  - Added to cellMethods set for proper proxy support

- Add comprehensive test in packages/runner/test/cell.test.ts
  - Tests reactive behavior: instantiates a doubling recipe with an initial argument
  - Updates the argument via getArgumentCell() and verifies output changes
  - Tests multiple updates to ensure continued reactivity

Use case: When working with recipe instances, you can now easily access and modify
their arguments without manually navigating to the source cell's argument field.
The method handles the complexity of retrieving the source cell and extracting
the argument field while ensuring proper synchronization.

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

Co-authored-by: Claude <[email protected]>
@pull pull bot locked and limited conversation to collaborators Nov 10, 2025
@pull pull bot added the ⤵️ pull label Nov 10, 2025
@pull pull bot merged commit 091ec3d into ExaDev:main Nov 10, 2025
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