Skip to content

Version Packages - #122

Merged
lucasbraum merged 1 commit into
mainfrom
changeset-release/main
Oct 14, 2026
Merged

lucasbraum merged 1 commit into
mainfrom
changeset-release/main

Conversation

@uptide-release

@uptide-release uptide-release Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

[email protected]

Minor Changes

  • #114 ac2755f Thanks @lucasbraum! - Add a verified Next.js 15 to 16 migration pack with source-backed rules, lockstep release-group companions, required consumer builds, scoped config/convention discovery, and transactional middleware-to-proxy edits. Verify against two unchanged public upgrade baselines and document remaining generated-type, deprecation and runtime coverage limits.

Patch Changes

  • #124 01553c7 Thanks @lucasbraum! - Retain accepted agent patches and show migration choices in PR decisions. Merge paired compiler and pack findings, bound repeated test output, and scope Next platform minimum warnings to missing or insufficient versions.

  • #123 079f496 Thanks @lucasbraum! - Allow pnpm peer-suffix and non-resolution lockfile metadata changes during upgrades. Continue checking each unrelated package and importer specifier/resolved version, with named diagnostics for importer changes. npm and Yarn scope checks are unchanged.

  • #123 079f496 Thanks @lucasbraum! - Render applicable behavior notes under “Decisions for you” when a migration pack has no custom decision hook. Next 16 decisions now cite repository configuration, scripts, runtime declarations and missing parallel-route fallbacks instead of generic migration notes.

  • #121 3da4978 Thanks @lucasbraum! - uptide init pins the Uptide Action of v0.11.2

@uptide-release
uptide-release Bot force-pushed the changeset-release/main branch 2 times, most recently from a4accf7 to dece817 Compare October 14, 2026 03:55
@uptide-release
uptide-release Bot force-pushed the changeset-release/main branch from dece817 to 7520b1e Compare October 14, 2026 04:37
@lucasbraum
lucasbraum merged commit a594790 into main Oct 14, 2026
10 checks passed
@lucasbraum
lucasbraum deleted the changeset-release/main branch October 14, 2026 04:46
lucasbraum added a commit that referenced this pull request Oct 15, 2026
## Pack

`openai` `>=4 <5` → `>=7 <8` (queue entry `openai`). **Candidate, not
verified.** Kept as a draft: the gate fails on two engine gaps found
while scoring (below), not on the pack's rules. The queue entry is set
to `blocked` with that reason.

One pack covers 4 → 7, not three. 5.0 carries nearly all API changes
(MIGRATION.md). 6.0's only breaking entry is one type widening; 7.0's
only breaking entry is the Node 22 floor. 5.12.1 (a minor) made tool
calls a function | custom union. Nothing later reverts 5.0, and every
public upgrade found jumps 4.x → 7.x directly. Evidence:
`packages/core/src/packs/openai/RESEARCH.md`, "One pack, not three".

## Sources

Pinned at v7.32.0, read 2026-10-14 (all in `meta.sources`):

- [MIGRATION.md
v7.32.0](https://github.com/openai/openai-node/blob/v7.32.0/MIGRATION.md),
compared with its v5.0.0, v6.0.0 and v7.0.0 copies
- [CHANGELOG.md
v7.32.0](https://github.com/openai/openai-node/blob/v7.32.0/CHANGELOG.md),
every entry from 4.104.0 to 7.32.0
- Release notes for
[5.12.1](https://github.com/openai/openai-node/releases/tag/v5.12.1),
[6.0.0](https://github.com/openai/openai-node/releases/tag/v6.0.0) and
[7.0.0](https://github.com/openai/openai-node/releases/tag/v7.0.0)
- The published `package.json` and `.d.ts` of 4.104.0, 5.0.0, 5.11.0,
5.12.0, 5.12.1, 6.0.0, 6.49.0, 7.0.0 and 7.32.0

Each change is classified as mechanical, assisted, behavior note, or not
compiler-visible in RESEARCH.md.

## Rules and behavior notes

Rules:

- `named-path-params` (M): `runs.retrieve(threadId, runId)` →
`runs.retrieve(runId, { thread_id })` for 28 methods, which includes 3
the guide's list omits (`runs.poll`, `submitToolOutputsAndPoll`,
`submitToolOutputsStream`; taken from the 7.x `.d.ts`). It rewrites only
inert arguments and an unambiguous third argument; anything else goes to
the agent. It also has a syntactic detect, so clients typed `any` are
found.
- `delete-method` (M): `.del()` → `.delete()`. A bare `files.del` /
`models.del` is detected only on a known client binding.
- `beta-chat` (M): `beta.chat.completions.parse|stream|runTools` →
`chat.completions.*`.
- `runner-renames` (M): `functionCall*` events and
`finalFunctionCall*()` → `functionToolCall*`.
- `removed-modules` (M/A): deletes a side-effect `openai/shims/*`
import; moves beta chat types to `openai/resources/chat/completions`
when every imported name exists there; `openai/src` → `openai`.
Everything else (`openai/core`, deeper `src` paths) goes to the agent.
- `core-paths` (M, deprecated):
`openai/error|pagination|resource|streaming|uploads` → `openai/core/*`.
- `request-options` (M): `list({ headers })` → `list({}, { headers })`.
It is detected syntactically because 7.x types those keys `?: never`, so
the compiler message doesn't name them.
- `http-agent` (A): the agent picks one of `undici` ProxyAgent, `undici`
Agent or a custom fetch, and the choice goes to Decisions for you.
- `file-from-path` (A): the agent picks `fs.createReadStream` or
`toFile(…, name)`, and the choice goes to Decisions for you.
- `run-functions`, `page-helpers`, `page-classes`, `removed-exports`,
`tool-call-union` (5.12.1), `function-output-union` (6.0): all assisted
(A).

Behavior notes:

- `error-headers`, `web-response`, `encoded-path-params`: reported as
findings. Each has a syntactic detect for what the compiler can't see
through `any`/`unknown`:
  - `catch (e) { e.headers['retry-after'] }`
  - `res.body.pipe(...)` after `asResponse()`
  - `encodeURIComponent(id)` passed to an SDK method
- `platform-minimums`, `zod-helpers`, `builtin-fetch`, `global-types`,
`client-subclass`: reported as decisions, each shown only with evidence
from the repository (`applies()`). The evidence covers Node/TypeScript
pins, zod below the `^3.25 || ^4` peer, `openai/helpers/zod` importers,
proxy agents and global dispatchers, tsconfig `lib` without DOM, and
`extends OpenAI`.
- `also-review`: a decision pointing to the guide.

Pack settings:

- `requiresBuild: true`: 7.x exports explicit subpaths only, where 4.x
exported `./*`. A deep import that `moduleResolution: node` resolves
from disk can therefore fail in Node or a bundler.
- No release group: openai-node publishes only `openai`, and
`@openai/agents` is on its own 0.x line.

## Ground-truth repositories

All are public, pinned at the parent of a merged upgrade, and installed
with scripts off. They were drafted with `pnpm packs:truth` (with
`--also` for what the upgrade moved because of openai) and assigned by
hand **before scoring**, then left unchanged.

| Repository | Parent | Upgrade | Versions | Expected |
| --- | --- | --- | --- | --- |
| zeikar/charivo | `b9a476d9` |
[`ef509fde`+`67ae240f`](zeikar/charivo@b9a476d...67ae240)
| 4.104.0 → 7.10.0 | 3 `tool-call-union` |
| openai/openai-guardrails-js | `6c13ba08` |
[#122](openai/openai-guardrails-js#122) |
4.104.0 → 7.9.0 (+ `@openai/agents` 0.17.2, zod 4.5.4) | 11 `generic` |
| wardby/wardby | `d46ec64d` |
[#231](wardby/wardby#231) | 4.104.0 → 7.30.0 | 2
`generic` |
| csnyder256/ux-struggle-detector | `b7308489` |
[#11](csnyder256/ux-struggle-detector#11) |
4.104.0 → 7.23.0 | 2 `generic` |
| grantsingleton/batch-ai | `05c7e9f1` |
[#14](grantsingleton/batch-ai#14) | 4.83.0 →
7.4.0 (+ zod 4.4.3) | 2 `generic` |
| digitalchokro/askchokro | `047fc448` |
[#31](digitalchokro/askchokro#31) | 4.104.0 →
7.4.0 | 0 |
| microsoft/prompty (`runtime/typescript`) | `e878b6b7` |
[#527](microsoft/prompty#527) | 4.104.0 → 7.10.0
| 0 |

I found these by web search and by mining the npm registry for packages
whose published manifests moved `openai ^4` → `^7`. The screened-out
candidates and the reason for each are listed in RESEARCH.md.

### Results

| | Precision | Recall | TP | FP | FN |
| --- | ---: | ---: | ---: | ---: | ---: |
| **Breaking** | **42.86%** | **15%** | 3 | 4 | 17 |
| Overall | 5% | 15% | 3 | 56 | 17 |
| `tool-call-union` | 100% | 33% | 1 | 0 | 2 |

The pack's own rules and detectors add **no false positive** in any of
the seven repositories. Every false positive comes from `check`'s
generic findings:

- **4 breaking:** guardrails
`examples/…multiturn_with_prompt_injection_detection.ts:331, 413, 428,
430`. These are real TS2345/TS2769 errors at 7.9.0. But `examples/` is
outside the repository's only tsconfig, so the upgrade didn't touch it
and the tsconfig-scoped truth doesn't list it. They stay false
positives.
- **52 non-breaking:** prompty. Its workspace packages import an unbuilt
`@prompty/core`, so `check` skips the compile and lists type-diff sites
as `unverified`.

Misses:

- charivo `:119`: found, but as `generic`. The compiler message
(`Property 'name' does not exist on type '{}'`) names nothing of openai,
so the rule does not claim it.
- charivo `:135`: a knock-on parameter change with no diagnostic.
- guardrails `client.ts` ×10: a client-subclass rework for
`withOptions()` cloning with no compiler error. The `client-subclass`
decision names this file, but decisions aren't scored.
- wardby ×2, batch-ai ×2: optional type cleanups.
- ux-struggle-detector ×2: a request-parameter change (`max_tokens` →
`max_completion_tokens`), which the pack never makes by design.

### What the engine could not express (why this is a candidate)

1. **Companion planning.** `check/companions.ts` moves packages that
depend or peer on the lead, but never the lead's own peers or a
dependent the upgrade moved. batch-ai keeps zod 3.24.2 even though
openai 7 peers on `zod ^3.25 || ^4.0`. guardrails' `@openai/agents` and
zod are left behind too. Both repos therefore fail `with`.
2. **Compile scope.** `check` compiles importers outside every tsconfig,
while `packs:truth` compiles tsconfigs only. That mismatch is the source
of all 4 breaking false positives above.
3. `applies()` only sees the declared inventory, so the pack declares
source globs to find helper imports and subclasses.
4. With `--no-llm`, an assisted site that wasn't rewritten is labelled
in the PR body by its symbol path rather than its rule. The agent's task
does use the rule.

With 1 and 2 fixed and the same truth, the breaking predictions left
would be the three true positives; `pack test --write` then needs a
rerun.

**CI:** the Packs workflow runs `pack test` and will fail on this PR for
the reasons above. It is a draft until the engine changes land.

## `uptide pack test` output

<details><summary>Full output of <code>pnpm uptide pack test openai
--offline --write</code> (summary inline)</summary>

```
checking openai 4.104.0 → 7.10.0 in zeikar/charivo@b9a476d9acb5
checking openai 4.104.0 → 7.9.0 in openai/openai-guardrails-js@6c13ba08ab02
checking openai 4.104.0 → 7.30.0 in wardby/wardby@d46ec64dc0be
checking openai 4.104.0 → 7.23.0 in csnyder256/ux-struggle-detector@b73084896208
checking openai 4.83.0 → 7.4.0 in grantsingleton/batch-ai@05c7e9f132b3
checking openai 4.104.0 → 7.4.0 in digitalchokro/askchokro@047fc4485538
checking openai 4.104.0 → 7.10.0 in microsoft/prompty@e878b6b7789f
uptide pack test openai · candidate
fixtures      6 cases, 37 sites · pass
ground truth
  zeikar/charivo@b9a476d9acb5                  openai 4.104.0 → 7.10.0  predicted 2, expected 3, false positives 0, false negatives 1
  openai/openai-guardrails-js@6c13ba08ab02     openai 4.104.0 → 7.9.0  predicted 5, expected 11, false positives 4, false negatives 10
    ✗ @openai/agents: the upgrade moved it to 0.17.2, check leaves it
    ✗ zod: the upgrade moved it to 4.5.4, check leaves it
  wardby/wardby@d46ec64dc0be                   openai 4.104.0 → 7.30.0  predicted 0, expected 2, false positives 0, false negatives 2
  csnyder256/ux-struggle-detector@b73084896208 openai 4.104.0 → 7.23.0  predicted 0, expected 2, false positives 0, false negatives 2
  grantsingleton/batch-ai@05c7e9f132b3         openai 4.83.0 → 7.4.0  predicted 0, expected 2, false positives 0, false negatives 2
    ✗ zod: the upgrade moved it to 4.4.3, check leaves it
  digitalchokro/askchokro@047fc4485538         openai 4.104.0 → 7.4.0  predicted 0, expected 0, false positives 0, false negatives 0
  microsoft/prompty@e878b6b7789f               openai 4.104.0 → 7.10.0  predicted 52, expected 0, false positives 52, false negatives 0

  rule                         precision  recall    tp   fp   fn
  generic                             2%      6%     1   57   16
  tool-call-union                   100%     33%     1    0    2
  overall (sites)                     5%     15%     3   56   17
  breaking (sites)                   43%     15%     3    4   17

false positives (56)
  openai/openai-guardrails-js@6c13ba08ab02  examples/basic/multiturn_with_prompt_injection_detection.ts:331  generic (breaking)
  openai/openai-guardrails-js@6c13ba08ab02  examples/basic/multiturn_with_prompt_injection_detection.ts:413  generic (breaking)
  openai/openai-guardrails-js@6c13ba08ab02  examples/basic/multiturn_with_prompt_injection_detection.ts:428  generic (breaking)
  openai/openai-guardrails-js@6c13ba08ab02  examples/basic/multiturn_with_prompt_injection_detection.ts:430  generic (breaking)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-executor.ts:58  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-executor.ts:71  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-executor.ts:73  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-executor.ts:91  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-executor.ts:92  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-executor.ts:103  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-executor.ts:104  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-executor.ts:116  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-executor.ts:117  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-executor.ts:134  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-executor.ts:138  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-executor.ts:142  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-executor.ts:143  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-models.ts:75  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-models.ts:83  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-models.ts:85  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-models.ts:201  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-models.ts:212  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/azure-models.ts:213  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/executor.ts:95  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/executor.ts:108  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/executor.ts:110  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/executor.ts:128  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/executor.ts:129  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/executor.ts:140  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/executor.ts:141  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/executor.ts:153  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/executor.ts:154  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/executor.ts:171  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/executor.ts:176  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/executor.ts:193  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/src/executor.ts:207  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/tests/integration.test.ts:95  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/foundry/tests/integration.test.ts:100  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/src/executor.ts:64  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/src/executor.ts:77  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/src/executor.ts:79  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/src/executor.ts:99  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/src/executor.ts:100  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/src/executor.ts:111  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/src/executor.ts:112  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/src/executor.ts:124  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/src/executor.ts:125  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/src/executor.ts:218  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/src/executor.ts:222  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/src/models.ts:71  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/src/models.ts:100  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/src/models.ts:102  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/tests/integration.test.ts:125  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/tests/integration.test.ts:126  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/tests/integration.test.ts:340  generic (unverified)
  microsoft/prompty@e878b6b7789f  packages/openai/tests/integration.test.ts:341  generic (unverified)

false negatives (17)
  zeikar/charivo@b9a476d9acb5  packages/llm/src/openai-tool-format.ts:135  tool-call-union
  openai/openai-guardrails-js@6c13ba08ab02  src/client.ts:9  generic
  openai/openai-guardrails-js@6c13ba08ab02  src/client.ts:31  generic
  openai/openai-guardrails-js@6c13ba08ab02  src/client.ts:44  generic
  openai/openai-guardrails-js@6c13ba08ab02  src/client.ts:51  generic
  openai/openai-guardrails-js@6c13ba08ab02  src/client.ts:81  generic
  openai/openai-guardrails-js@6c13ba08ab02  src/client.ts:121  generic
  openai/openai-guardrails-js@6c13ba08ab02  src/client.ts:134  generic
  openai/openai-guardrails-js@6c13ba08ab02  src/client.ts:141  generic
  openai/openai-guardrails-js@6c13ba08ab02  src/client.ts:171  generic
  openai/openai-guardrails-js@6c13ba08ab02  src/client.ts:214  generic
  wardby/wardby@d46ec64dc0be  src/providers/llm/openai.ts:107  generic
  wardby/wardby@d46ec64dc0be  src/providers/llm/openai.ts:188  generic
  csnyder256/ux-struggle-detector@b73084896208  src/lib/providers/openai.ts:24  generic
  csnyder256/ux-struggle-detector@b73084896208  src/lib/providers/openai.ts:66  generic
  grantsingleton/batch-ai@05c7e9f132b3  src/index.ts:32  generic
  grantsingleton/batch-ai@05c7e9f132b3  src/index.ts:35  generic

reported under another rule (1)
  zeikar/charivo@b9a476d9acb5  packages/llm/src/openai-tool-format.ts:119  generic, expected tool-call-union

FAIL openai: 4 false positives among breaking findings
```

</details>

## Smoke test (not ground truth)

I ran `uptide fix openai --no-llm --keep-temp` locally on
[uptide-test/alanagoyal](https://github.com/uptide-test/alanagoyal),
upgrading openai 4.104.0 → 7.33.0.

- **The pack was forced active.** Only verified packs are active, so I
edited this pack's `verification.json` locally for the run. The edit was
never committed and was restored right after.
- **No LLM key** was available, so all 5 compiler errors stay manual.
They are the 5.12.1 tool-call union (`tc.function.*`), which
`tool-call-union` claims.
- **Decisions:** Node 24.x and TypeScript ^5 already meet the floor, so
only the general review line appears.
- **Nothing was pushed or published.** The stored PR body:

<details><summary>PR body produced by <code>uptide fix
openai</code></summary>

````markdown
## Upgrade openai 4.104.0 → 7.33.0

**Review required before merging.** The code was migrated to openai 7. New type errors remain.

Assisted fixes disabled (--no-llm).

| | |
|---|---|
| **Verified by** | ✅ the openai migration pack · ❌ type-check · ❌ build · ✅ tests (1 run) |
| **Risk** | High: manual sites left; unverified sites |
| **Changes** | 5 sites · 2 changed files · 0 auto-fixed · 0 fixed by the agent (LLM) · 5 manual |
| **Types** | ❌ the upgrade broke 5 · Uptide left 5 |
| **Behavior** | ⚠️ not checked |
| **Tests** | ✅ 1 workspace passed · the `test` script of the repository |

<details><summary>Moved with the upgraded packages · 37 transitive changes</summary>

Inside the upgraded packages’ own dependency subtrees; every other resolution is unchanged.

- `openai` 4.104.0 → 7.33.0 removed @types/node 18.19.130; removed @types/node 20.11.24; removed @types/node-fetch 2.6.13; removed abort-controller 3.0.0; removed agentkeepalive 4.6.0; removed asynckit 0.4.0; removed call-bind-apply-helpers 1.0.2; removed combined-stream 1.0.8; removed delayed-stream 1.0.0; removed dunder-proto 1.0.1; removed es-define-property 1.0.1; removed es-errors 1.3.0; removed es-object-atoms 1.1.1; removed es-set-tostringtag 2.1.0; removed event-target-shim 5.0.1; removed form-data 4.0.6; removed form-data-encoder 1.7.2; removed formdata-node 4.4.1; removed function-bind 1.1.2; removed get-intrinsic 1.3.0; removed get-proto 1.0.1; removed gopd 1.2.0; removed has-symbols 1.1.0; removed has-tostringtag 1.0.2; removed hasown 2.0.4; removed humanize-ms 1.2.1; removed math-intrinsics 1.1.0; removed mime-db 1.52.0; removed mime-types 2.1.35; removed ms 2.1.3; removed node-domexception 1.0.0; removed node-fetch 2.7.0; removed tr46 0.0.3; removed undici-types 5.26.5; removed web-streams-polyfill 4.0.0-beta.3; removed webidl-conversions 3.0.1; removed whatwg-url 5.0.0.

</details>

### What changed

**1. OpenAI.ChatCompletionMessageToolCall#function** · 5 sites · manual
Manual migration required: no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual.
<details><summary>Diff and reasoning</summary>

Representative diff was not retained in this stored run.

- `app/api/chat/route.ts` (3)
- `evals/chat.eval.ts` (2)

no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual

no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual

no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual

no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual

no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual

</details>

### Worth a look

- Manual: `route.ts:321` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual.
- Manual: `route.ts:318` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual.
- Manual: `route.ts:317` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual.
- Manual: `chat.eval.ts:194` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual.
- Manual: `chat.eval.ts:192` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual.
- Resolve 5 new type errors before merging (see verification details).

### Decisions for you

- Also review the [openai migration guide](https://github.com/openai/openai-node/blob/v7.32.0/MIGRATION.md) for the 5.0 changes the compiler cannot see in this repository (pagination internals, CommonJS resource classes), and the 6.0 and 7.0 changelog entries.

<details><summary>Verification details</summary>

Type errors: baseline 0; target 5; after 5; 5 new. Verification: FAIL.

Build after the bump in `.`: `next build` — failed

| Workspace | Baseline tests | Target tests |
|---|---|---|
| . | passed | passed |

- `.`: the `test` script of the repository — `node --import tsx --test tests/*.test.ts`

**Remaining errors**
- app/api/chat/route.ts:317 TS2339: Property 'function' does not exist on type 'ChatCompletionMessageToolCall'.
  Property 'function' does not exist on type 'ChatCompletionMessageCustomToolCall'.
- app/api/chat/route.ts:318 TS2339: Property 'function' does not exist on type 'ChatCompletionMessageToolCall'.
  Property 'function' does not exist on type 'ChatCompletionMessageCustomToolCall'.
- app/api/chat/route.ts:321 TS2339: Property 'function' does not exist on type 'ChatCompletionMessageToolCall'.
  Property 'function' does not exist on type 'ChatCompletionMessageCustomToolCall'.
- evals/chat.eval.ts:192 TS2339: Property 'function' does not exist on type 'ChatCompletionMessageToolCall'.
  Property 'function' does not exist on type 'ChatCompletionMessageCustomToolCall'.
- evals/chat.eval.ts:194 TS2339: Property 'function' does not exist on type 'ChatCompletionMessageToolCall'.
  Property 'function' does not exist on type 'ChatCompletionMessageCustomToolCall'.

**Tests: .**
```text
TAP version 13
# Subtest: declares the complete mobile support matrix explicitly
ok 1 - declares the complete mobile support matrix explicitly
  --- (repeated 176 times)
  duration_ms: 3.231196
  type: 'test' (repeated 175 times)
  ... (repeated 176 times)
# Subtest: sends every unsupported mobile app to Notes
ok 2 - sends every unsupported mobile app to Notes
  duration_ms: 0.964052
… (test output truncated here; all tests passed)
```

**Run notes**

- `APIError.headers` is a Web `Headers` in openai 5: `error.headers[name]` is undefined; read `error.headers.get(name)`
- `asResponse()`/`withResponse()` return a Web `Response` in openai 5: node-fetch members (`body.pipe`, `headers.raw()`, `buffer()`) are gone
- openai 5 URI-encodes path parameters itself: an id passed through `encodeURIComponent` is encoded twice
- openai-node migration guide, v7.32.0 (read 2026-10-14): https://github.com/openai/openai-node/blob/v7.32.0/MIGRATION.md
- openai-node migration guide as released with 5.0.0: https://github.com/openai/openai-node/blob/v5.0.0/MIGRATION.md
- openai-node changelog, 5.0.0 to 7.32.0 (read 2026-10-14): https://github.com/openai/openai-node/blob/v7.32.0/CHANGELOG.md
- openai 5.12.1: tool calls become a function | custom union: https://github.com/openai/openai-node/releases/tag/v5.12.1
- openai 6.0.0: function call outputs widen: https://github.com/openai/openai-node/releases/tag/v6.0.0
- openai 7.0.0: Node.js 22 required: https://github.com/openai/openai-node/releases/tag/v7.0.0

</details>

<details><summary>Run details</summary>

Uptide 0.12.1 · agent disabled (--no-llm) · 0.0k/0.0k tokens · $0.00 · 4 min

Uptide commit: `40e870b6daebbc2301b17536434fca2b9d5c8af2` (working-tree changes)
Branch: `uptide/openai-7.33.0`
Tier: verified (a migration pack covers this upgrade)
Verified at: 2026-10-14T07:10:06.426Z
Verified commit: `10c85e2210b4bfc6413596223c2068799c694e17`
Verified tree: `68de481fd3864a230da21afaf1bcdf75c9da4617`

</details>
````

(The test log inside is shortened here; "Tier: verified" and "Verified
by ✅ the openai migration pack" reflect the local forced activation
described above.)

</details>

## Checklist

- [x] Every rule and note comes from a source listed in `meta.sources`
- [x] Every rule that rewrites or detects has a fixture case, with a
site it must leave alone (`keep`)
- [x] Ground truth: public repositories at the commit before their
upgrade; expected findings read from their own upgrade commit and the
compiler, never copied from Uptide's output
- [x] At least two public repositories for `verified`; otherwise the
pack ships as a candidate (7 public repositories; candidate because of
the 4 engine false positives and 2 left-behind upgrades)
- [ ] `pnpm uptide pack test <package>` passes and its output is pasted
above; `verification.json` written with `--write`: **it fails** (4
breaking false positives, all from `check`'s generic compile). The
output is pasted above, and `verification.json` records `candidate` via
`--write`.
- [x] `pnpm lint && pnpm typecheck && pnpm test` pass (core 1548 passed
/ 32 skipped, CLI 438 passed; `pnpm lint` reports one pre-existing
warning in `next/platform.test.ts`)
- [x] Changeset added (patch: a candidate pack, the dependency stays
generic)
- [x] No private code, names or paths anywhere: fixtures are synthetic,
ground truth is public

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01FX2nBoNEvDh9v71yDhEzxL

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FX2nBoNEvDh9v71yDhEzxL)_

---------

Signed-off-by: Claude <[email protected]>
Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant