mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 01:53:33 +00:00
docs(codemode): track thenable assimilation
This commit is contained in:
parent
8b53f362e8
commit
0800770b0d
1 changed files with 4 additions and 2 deletions
|
|
@ -149,8 +149,10 @@ the adapter TODO. Delete entries when completed.
|
|||
The supported JavaScript subset should grow when common model-generated code improves tool orchestration. These are
|
||||
current omissions to implement, not intentional product boundaries.
|
||||
|
||||
- [ ] Complete promise-pipeline parity: assimilate supported thenables, propagate cancellation through chained promises,
|
||||
and consider `Promise.any`.
|
||||
- [ ] Decide whether thenable assimilation belongs in the bounded runtime. Promise resolution currently unwraps only
|
||||
`SandboxPromise`; arbitrary `{ then(resolve, reject) }` values remain data. Full assimilation requires internal
|
||||
callable resolver values, first-settlement arbitration, recursive adoption, and cycle detection.
|
||||
- [ ] Propagate cancellation through chained promises, and consider `Promise.any`.
|
||||
- [ ] Support async iteration and `for await...of`. Define behavior first for the runtime's supported promise and
|
||||
collection values, then extend it to bounded host streams when a stream boundary exists.
|
||||
- [ ] Support callback-bearing standard-library variants that models commonly generate: the mapper argument to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue