Commit dbb5044
authored
Add unstable ACP schema support + $/cancel_request (#17)
* Make version fetch unstable schema artifacts
Change-Id: Id1d0dff677c5a0ec7506a423f278c8a2ded27966
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Add $/cancel_request support to Connection
Change-Id: I91e09574e4a46d5d6645f0844e3e4f2b3040cf2b
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* cmd/generate: support unstable schema merge
Add optional loading for meta/schema.unstable.json and merge unstable-only methods into the IR without changing stable defs.
Also adjust union UnmarshalJSON generation to tolerate primitive JSON by only peeking at object maps when that unmarshal succeeds.
Change-Id: I81dbcd9f72e9106c95c6aafb07f895b7758e7f5e
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* regen: update union UnmarshalJSON output
Regenerate types_gen.go so union UnmarshalJSON methods no longer error on primitive JSON variants.
Change-Id: Ie20a7e301e4808e8a66a339456029d1f08ecad7d
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Add tests for unstable schema merge
Change-Id: Iee25c62931dea5b76748fe8ece4700d73e32211c
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Update agents for unstable AgentExperimental methods
Change-Id: If59c040a3faa7a21ca59dce5f86d4bd26252c020
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Fix cancel_request race with inflight registration
Change-Id: I1110d20acf558e42a8b2b95d30e285f446e3a7e7
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Temporarily force GitHub-hosted CI runner
Change-Id: I9c10393f4d6ce1ccac4df0eb83e11795c4ad2867
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Address Codex review findings for cancel + unions + fetch
Change-Id: I30839ab01619439e1a3178f319abe3312d63a7b3
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Fix latest Codex review issues
Change-Id: I24665f26981bcaf92e98cd2e616071fc84d04c93
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Handle non-object unstable union variants correctly
Change-Id: I98d174fac0f30681f36c6735a0c71a71d1fc55fe
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Bound cancel notification sender goroutine usage
Change-Id: I381d40fbf2040fe4c2bcc511e0c3bf3b91816796
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Address latest Codex feedback on cancel and merge
Change-Id: I0a5cc811d92a23987bf47a57ad16c77f2b41bf4e
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Disambiguate unstable grouped select options decoding
Change-Id: I37676ffb056b5867b5bbb2e2cff121145c9b5c65
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Canonicalize JSON-RPC IDs for cancellation lookup
Change-Id: I764e173988645075bc56b04c2dc4532e5678ec46
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Fix JSON-RPC ID canonicalization precision
Change-Id: I77b298bd622531069b6e15d5cec9d9f61d2b9d11
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Map only explicit cancellations to -32800
Change-Id: I0669b997c35ef24cee1c03d0910b3c26ab7d7331
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Fix unstable meta fallback version handling
Change-Id: I290bd2e5bdfe69795621a966ae8e0e1a81414f3d
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Prefer disconnect error over derived request cancel
Change-Id: I690ec1462659be0d1f068dbf786f0a96a10ed611
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Assert unstable dispatch capabilities per method
Change-Id: I0bab8ffb5e201d1c82d5fd9aba087fa45f995787
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Canonicalize numeric JSON-RPC IDs by value
Change-Id: I163e43ba12da91083562f08aec8646eab81d96e6
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Keep timeout errors distinct from cancellations
Change-Id: Ib8b24f1cd85b13ca47fc59fa2b3e3f4af1a7ad3e
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Bound JSON-RPC numeric ID canonicalization work
Change-Id: I3b3a79ee49f2c069abd5dd24db0e8a22e8627ae3
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Bound pending cancel notification queue
Change-Id: I1e6195bae6969b5e07b532c5f042244530eb9a9e
Signed-off-by: Thomas Kosiewski <tk@coder.com>
* Format connection constructor indentation
Change-Id: Ic0c7b1edb993c1f5d30b267d6c70cf711a3c16ef
Signed-off-by: Thomas Kosiewski <tk@coder.com>
---------
Signed-off-by: Thomas Kosiewski <tk@coder.com>1 parent 38d6de7 commit dbb5044
File tree
25 files changed
+7897
-829
lines changed- .github/workflows
- cmd/generate
- internal
- emit
- ir
- load
- example/agent
- schema
25 files changed
+7897
-829
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
19 | 51 | | |
20 | 52 | | |
21 | 53 | | |
| |||
40 | 72 | | |
41 | 73 | | |
42 | 74 | | |
43 | | - | |
| 75 | + | |
44 | 76 | | |
45 | 77 | | |
46 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
120 | 126 | | |
121 | 127 | | |
122 | 128 | | |
| |||
178 | 184 | | |
179 | 185 | | |
180 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
181 | 227 | | |
182 | 228 | | |
183 | 229 | | |
184 | 230 | | |
185 | 231 | | |
186 | 232 | | |
187 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
188 | 296 | | |
189 | 297 | | |
190 | 298 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments