Commit 6e5e9d4
**#469 — `sql_execute` crash: `getStatementTypes is not a function`**
- Safe-import `@altimateai/altimate-core` with `typeof` guard
- Regex fallback classifier when napi binary unavailable
- Null/undefined input guards on `classify()` and `classifyAndCheck()`
- 42 adversarial tests (fallback parity, ReDoS, bypass attempts)
**#470 — `edit` tool: "Could not find oldString" context drift**
- `buildNotFoundMessage()` finds closest-matching line via Levenshtein
- Error now shows line number + 5-line snippet of actual file content
- Tells model to re-read the file instead of retrying blindly
- 14 adversarial tests (similarity scoring, truncation, edge cases)
**#471 — `webfetch`: 934 daily failures from invalid/broken URLs**
- `URL` constructor validation before fetch (catches malformed URLs)
- Session-level 404/410/451 failure cache with 5-min TTL
- Actionable error messages per HTTP status (404: "Do NOT retry",
429: includes `Retry-After`, 500: "transient — retry once")
- 24 tests (validation, cache TTL, error messages, edge cases)
**#473 — Bump `yaml` 2.8.2 → 2.8.3**
- Stack overflow fix during node composition (security)
Closes #469, Closes #470, Closes #471, Closes #473
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c36d6f2 commit 6e5e9d4
8 files changed
Lines changed: 856 additions & 25 deletions
File tree
- packages/opencode
- src
- altimate/tools
- tool
- test
- altimate/tools
- tool
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 | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
8 | 18 | | |
9 | | - | |
10 | | - | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
16 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
17 | 42 | | |
18 | 43 | | |
19 | 44 | | |
20 | 45 | | |
21 | 46 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
26 | 56 | | |
27 | 57 | | |
28 | 58 | | |
| |||
38 | 68 | | |
39 | 69 | | |
40 | 70 | | |
41 | | - | |
42 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
43 | 76 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
47 | 81 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
52 | 88 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
632 | 693 | | |
633 | 694 | | |
634 | 695 | | |
| |||
661 | 722 | | |
662 | 723 | | |
663 | 724 | | |
664 | | - | |
665 | | - | |
666 | | - | |
| 725 | + | |
667 | 726 | | |
668 | 727 | | |
669 | 728 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 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 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
18 | 63 | | |
19 | 64 | | |
20 | 65 | | |
| |||
26 | 71 | | |
27 | 72 | | |
28 | 73 | | |
29 | | - | |
| 74 | + | |
| 75 | + | |
30 | 76 | | |
31 | 77 | | |
32 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
33 | 91 | | |
34 | 92 | | |
35 | 93 | | |
| |||
83 | 141 | | |
84 | 142 | | |
85 | 143 | | |
| 144 | + | |
86 | 145 | | |
87 | | - | |
| 146 | + | |
| 147 | + | |
88 | 148 | | |
| 149 | + | |
89 | 150 | | |
90 | 151 | | |
91 | 152 | | |
| |||
0 commit comments