Commit 3c418c4
Both TSDoc examples in packages/spec/src/ai/skill.zod.ts passed
`triggerPhrases`, removed in @objectstack/spec 17.0.0 (#3896 audit
close-out) and carried as a retiredKey() tombstone ~120 lines below the
first of them. defineSkill calls SkillSchema.parse(), so both documented
blocks threw when run: invalid_type at path triggerPhrases, expected
never. Measured against the built dist before the repair: 2 of 2 blocks
threw; after it, 2 of 2 parse.
The blocks now demonstrate the tombstone's own prescription instead of
contradicting it. That prescription is a SPLIT, not a rename: routing
intent to triggerConditions, natural-language intent to
description/instructions. The defineSkill block shows both halves with
each named. `tools` is required with no default, so both blocks carry it,
and each block opens with its own import so it is self-contained the way
a consumer resolves it.
The retiredKey() tombstone and every line of its guidance prose are
unchanged, verbatim.
Claude-Session: https://claude.ai/code/session_01T9cDbY2NBiVJWYx3BpWfH2
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6dd8d27 commit 3c418c4
2 files changed
Lines changed: 32 additions & 4 deletions
File tree
- .changeset
- packages/spec/src/ai
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
250 | 252 | | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
254 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
255 | 261 | | |
256 | | - | |
257 | 262 | | |
258 | 263 | | |
259 | 264 | | |
| |||
432 | 437 | | |
433 | 438 | | |
434 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
435 | 444 | | |
| 445 | + | |
| 446 | + | |
436 | 447 | | |
437 | 448 | | |
438 | 449 | | |
439 | 450 | | |
440 | | - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
441 | 455 | | |
442 | | - | |
| 456 | + | |
| 457 | + | |
443 | 458 | | |
444 | 459 | | |
445 | 460 | | |
| |||
0 commit comments