Commit b079ec3
Hide internal RPC methods from generated public API surface
The schema can now flag methods and types as internal. The codegen splits
internal RPC methods into parallel structures so they don't appear on the
public client API:
- TypeScript: createInternalServerRpc / createInternalSessionRpc factories
alongside the existing public ones; client.ts wires connect() through a
private internalRpc getter.
- C#: ConnectAsync and ConnectResult are emitted with the internal access
modifier (real assembly-boundary access control).
- Python: parallel InternalServerRpc / InternalSessionRpc classes with
':meta private:' docstrings.
- Go: parallel InternalServerRpc / InternalSessionRpc types with their own
unexported backing struct and NewInternalServerRpc constructor.
- Internal type definitions get a per-language doc-comment marker.
- New filterNodeByVisibility() helper in scripts/codegen/utils.ts.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 0961bfa commit b079ec3
10 files changed
Lines changed: 281 additions & 46 deletions
File tree
- dotnet/src/Generated
- go/rpc
- nodejs/src
- generated
- python/copilot/generated
- scripts/codegen
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.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| |||
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
268 | 283 | | |
269 | 284 | | |
270 | 285 | | |
| |||
1099 | 1114 | | |
1100 | 1115 | | |
1101 | 1116 | | |
1102 | | - | |
| 1117 | + | |
1103 | 1118 | | |
1104 | 1119 | | |
1105 | 1120 | | |
| |||
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.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
980 | 990 | | |
981 | 991 | | |
982 | 992 | | |
| |||
1163 | 1173 | | |
1164 | 1174 | | |
1165 | 1175 | | |
| 1176 | + | |
| 1177 | + | |
1166 | 1178 | | |
1167 | 1179 | | |
1168 | 1180 | | |
1169 | 1181 | | |
1170 | 1182 | | |
1171 | 1183 | | |
1172 | | - | |
| 1184 | + | |
1173 | 1185 | | |
1174 | 1186 | | |
1175 | 1187 | | |
| |||
1221 | 1233 | | |
1222 | 1234 | | |
1223 | 1235 | | |
1224 | | - | |
| 1236 | + | |
1225 | 1237 | | |
1226 | 1238 | | |
1227 | 1239 | | |
| |||
1269 | 1281 | | |
1270 | 1282 | | |
1271 | 1283 | | |
| 1284 | + | |
| 1285 | + | |
1272 | 1286 | | |
1273 | 1287 | | |
1274 | 1288 | | |
1275 | 1289 | | |
1276 | 1290 | | |
1277 | 1291 | | |
1278 | | - | |
| 1292 | + | |
1279 | 1293 | | |
1280 | 1294 | | |
1281 | 1295 | | |
| |||
1321 | 1335 | | |
1322 | 1336 | | |
1323 | 1337 | | |
1324 | | - | |
| 1338 | + | |
1325 | 1339 | | |
1326 | 1340 | | |
1327 | 1341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
1161 | 1162 | | |
1162 | 1163 | | |
1163 | 1164 | | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
1164 | 1180 | | |
1165 | 1181 | | |
1166 | 1182 | | |
| |||
1196 | 1212 | | |
1197 | 1213 | | |
1198 | 1214 | | |
1199 | | - | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
1200 | 1219 | | |
1201 | 1220 | | |
1202 | 1221 | | |
1203 | 1222 | | |
1204 | | - | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
1205 | 1227 | | |
1206 | 1228 | | |
1207 | 1229 | | |
| |||
1257 | 1279 | | |
1258 | 1280 | | |
1259 | 1281 | | |
1260 | | - | |
| 1282 | + | |
1261 | 1283 | | |
1262 | 1284 | | |
1263 | 1285 | | |
1264 | | - | |
| 1286 | + | |
1265 | 1287 | | |
1266 | | - | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
1267 | 1293 | | |
1268 | 1294 | | |
1269 | 1295 | | |
| |||
1274 | 1300 | | |
1275 | 1301 | | |
1276 | 1302 | | |
1277 | | - | |
| 1303 | + | |
1278 | 1304 | | |
1279 | 1305 | | |
1280 | 1306 | | |
| |||
1288 | 1314 | | |
1289 | 1315 | | |
1290 | 1316 | | |
1291 | | - | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
1292 | 1320 | | |
1293 | 1321 | | |
1294 | 1322 | | |
1295 | 1323 | | |
1296 | | - | |
| 1324 | + | |
1297 | 1325 | | |
1298 | 1326 | | |
1299 | 1327 | | |
| |||
1315 | 1343 | | |
1316 | 1344 | | |
1317 | 1345 | | |
1318 | | - | |
| 1346 | + | |
1319 | 1347 | | |
1320 | 1348 | | |
1321 | 1349 | | |
| |||
1348 | 1376 | | |
1349 | 1377 | | |
1350 | 1378 | | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
1351 | 1382 | | |
1352 | 1383 | | |
1353 | 1384 | | |
| |||
0 commit comments