Skip to content

fix: address review threads on the legacy-removal PRs - #850

Merged
ScriptedAlchemy merged 6 commits into
mainfrom
legacy/followups
Sep 25, 2026
Merged

ScriptedAlchemy merged 6 commits into
mainfrom
legacy/followups

Conversation

@ScriptedAlchemy

@ScriptedAlchemy ScriptedAlchemy commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

Address the Codex review threads left on the merged legacy-removal PRs #837, #838, #839, and #840.

Verification

On this branch merged with origin/main (7b99b1f2a5, after the Effect RC re-pin):

  • pnpm build: pass
  • pnpm typecheck: pass
  • pnpm lint: pass
  • pnpm test:unit: pass (309 files, 4,446 tests)
  • pnpm exec rstest --config rstest.integration.config.ts mcp state-sqlite state-packaging package-conventions: pass (15 files, 134 tests), including the new "accepts a CommonJS stdio entry whose server factory is module.exports, and runs it", which builds the entry and lists its tools over real stdio
  • pnpm docs:site:build: pass

Review

Independent review (GPT-5.6, change-risk pass) and the Codex bot both found the same issue in the first commit.

  • Medium, fixed. Counting module.exports = inside the shared scanEntryExportsSource also changed bin, script, and rendered-script judgments, and misread a file with its own module binding. The shared scanner is unchanged now. A separate assignsModuleExportsSource is consulted only by AB4730, and it returns false when the file declares or imports module. Tests cover .mts and import bindings.
  • Low, fixed. The testing pages said fixtures must be "exactly" { kind: 'resource' }. The contract checks kind only, so they now say the fixture must set kind: 'resource'.

…llability

`scanEntryExportsSource` now counts a top-level `module.exports = <expr>` as a
default export, so AB4730 no longer rejects a `.cjs` stdio MCP entry that the
generated lifecycle shell can run: the shell imports the entry namespace and
the bundler exposes `module.exports` as its `default`. `exports.foo` and
`module.exports.foo` stay named.

The SQLite state driver's generic table check now compares each column's
NOT NULL flag from `PRAGMA table_info` against the CREATE TABLE statements, so
a journal whose `result_state` is nullable fails at open with the existing
typed `corrupt` error instead of on the first NULL row.

Docs record both, plus the resource/app contract fixture shape, in en and zh.
@changeset-bot

changeset-bot Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0947fef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
agent-bundle Patch
@agent-bundle/runtime Patch
create-agent-bundle Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-25T03:34:08.691122Z 9fddcf9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9fddcf9d26

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/agent-bundle/src/build/entry-exports.ts
@pkg-pr-new

pkg-pr-new Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle@850
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle/create-agent-bundle@850
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle/rsc-markdown-stream@850
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle/@agent-bundle/runtime@850

commit: 0947fef

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