Commit 21876ec
committed
feat(sdk): expose ConfirmationInheritance in Python and Node SDKs
Adds confirmation_inheritance field to WorkerAgentSpec and AgentDefinition
in both Python (PyO3) and Node (napi-rs) SDKs, mirroring the Rust core API.
Values: "auto_approve" (default), "deny_on_ask", "inherit_parent"
Changes:
- core/src/lib.rs: export ConfirmationInheritance from subagent module
- sdk/node: add confirmationInheritance to WorkerAgentSpec/AgentDefinition
- sdk/node: add parse/convert helpers for the enum
- sdk/node: regenerate index.d.ts with napi build
- sdk/python: add confirmation_inheritance to PyWorkerAgentSpec/PyAgentDefinition
- sdk/python: add parse/convert helpers for the enum
Both SDKs now expose the full capability inheritance contract introduced
in commit 2535474.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5f1d479 commit 21876ec
4 files changed
Lines changed: 81 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
| 133 | + | |
| 134 | + | |
135 | 135 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
| |||
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
| 240 | + | |
| 241 | + | |
238 | 242 | | |
239 | 243 | | |
240 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1494 | 1494 | | |
1495 | 1495 | | |
1496 | 1496 | | |
| 1497 | + | |
| 1498 | + | |
1497 | 1499 | | |
1498 | 1500 | | |
1499 | 1501 | | |
| |||
1505 | 1507 | | |
1506 | 1508 | | |
1507 | 1509 | | |
| 1510 | + | |
| 1511 | + | |
1508 | 1512 | | |
1509 | 1513 | | |
1510 | 1514 | | |
| |||
2229 | 2233 | | |
2230 | 2234 | | |
2231 | 2235 | | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
2232 | 2239 | | |
2233 | 2240 | | |
2234 | 2241 | | |
| |||
2238 | 2245 | | |
2239 | 2246 | | |
2240 | 2247 | | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
2241 | 2274 | | |
2242 | 2275 | | |
2243 | 2276 | | |
| |||
2247 | 2280 | | |
2248 | 2281 | | |
2249 | 2282 | | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
2250 | 2287 | | |
2251 | 2288 | | |
2252 | 2289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3330 | 3330 | | |
3331 | 3331 | | |
3332 | 3332 | | |
| 3333 | + | |
| 3334 | + | |
3333 | 3335 | | |
3334 | 3336 | | |
3335 | 3337 | | |
| |||
3346 | 3348 | | |
3347 | 3349 | | |
3348 | 3350 | | |
| 3351 | + | |
3349 | 3352 | | |
3350 | 3353 | | |
3351 | 3354 | | |
| |||
3405 | 3408 | | |
3406 | 3409 | | |
3407 | 3410 | | |
| 3411 | + | |
| 3412 | + | |
3408 | 3413 | | |
3409 | 3414 | | |
3410 | 3415 | | |
| |||
3450 | 3455 | | |
3451 | 3456 | | |
3452 | 3457 | | |
| 3458 | + | |
| 3459 | + | |
| 3460 | + | |
3453 | 3461 | | |
3454 | 3462 | | |
3455 | 3463 | | |
| 3464 | + | |
| 3465 | + | |
| 3466 | + | |
| 3467 | + | |
| 3468 | + | |
| 3469 | + | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
| 3473 | + | |
| 3474 | + | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
| 3480 | + | |
| 3481 | + | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
3456 | 3490 | | |
3457 | 3491 | | |
3458 | 3492 | | |
| |||
3462 | 3496 | | |
3463 | 3497 | | |
3464 | 3498 | | |
| 3499 | + | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
3465 | 3503 | | |
3466 | 3504 | | |
3467 | 3505 | | |
| |||
0 commit comments