Skip to content

feat(rsc): expose callable argument metadata - #1389

Closed
hi-ogawa wants to merge 8 commits into
mainfrom
fix/issue-1336
Closed

feat(rsc): expose callable argument metadata#1389
hi-ogawa wants to merge 8 commits into
mainfrom
fix/issue-1336

Conversation

@hi-ogawa

@hi-ogawa hi-ogawa commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Framework-owned callable wrappers cannot recover source parameter admission or generated closure capture boundaries from Function.length. This matters when framework-supplied arguments should not affect fixed-signature cache keys while declared arguments and decoded captures should.

This PR exposes { count, hasRest } for statically known source functions and boundArgumentCount for inline directive lowering. The bound count describes the generated call shape, so direct captures occupy their actual number of slots while encoded captures occupy one. The callable cache example consumes this metadata and demonstrates fixed-prefix admission, rest pass-through, and decoded capture identity in development and production.

hi-ogawa and others added 8 commits August 4, 2026 18:07
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
@hi-ogawa

hi-ogawa commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

@hi-ogawa hi-ogawa closed this Aug 5, 2026
@hi-ogawa
hi-ogawa deleted the fix/issue-1336 branch August 5, 2026 03:22
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.

Exclude Undeclared Caller Arguments From "use cache" Cache Keys

1 participant