Skip to content

Activate @heddleagent/run-client - #347

Merged
roackb2 merged 1 commit into
mainfrom
codex/activate-run-client
Aug 14, 2026
Merged

Activate @heddleagent/run-client#347
roackb2 merged 1 commit into
mainfrom
codex/activate-run-client

Conversation

@roackb2

@roackb2 roackb2 commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • publish the existing browser-safe remote-run client as @heddleagent/run-client@6.0.0
  • preserve the current root and /http-sse entrypoints and dependency boundary
  • add the small package build, fresh-consumer smoke, and main-branch publication lane
  • keep @roackb2/heddle-remote@5.13.0 installable for existing consumers

Verification

  • focused package tests: 33 passed
  • yarn run-client:pack:verify
  • yarn typecheck
  • yarn lint
  • yarn build

@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: 109ba49937

ℹ️ 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".

'--cache',
npmCache,
], repositoryRoot);
const packResult = JSON.parse(packed.stdout)[0];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Normalize npm 12's package-keyed pack result

In the inspected publish-packages.yml run-client job, npm is pinned to 12.0.2 before this verifier runs. With npm 12, npm pack --json returns an object keyed by package name rather than the npm 10 array shape; the repository already handles this in scripts/execution-host-client-pack-result.mjs:1-20. Indexing that object with [0] makes packResult undefined, so the following assertions fail and block the initial run-client publication. Parse the result with the existing npm-version-compatible helper.

Useful? React with 👍 / 👎.

Comment on lines +16 to +17
const publishedVersion = JSON.parse(result.stdout);
if (publishedVersion !== packageJson.version) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Unwrap npm 12's registry result before comparing

When @heddleagent/run-client@6.0.0 is already published, the pinned npm 12 release job returns the single npm view --json result in an array, as accounted for by parseNpmViewResult in scripts/execution-host-client-release-state.mjs:74-95. Comparing that array directly with the version string always reports a mismatch, so every later release-workflow run stops at “Select release state” instead of recognizing the existing artifact.

Useful? React with 👍 / 👎.

Comment on lines +110 to +111
if gh release view "${RELEASE_TAG}" >/dev/null 2>&1; then
test "$(gh release view "${RELEASE_TAG}" --json targetCommitish --jq .targetCommitish)" = "${GITHUB_SHA}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Skip verification of releases attached to older commits

After the first release, any later invocation of publish-packages.yml still runs this job, including pushes triggered by another package or yarn.lock. The existing run-client-v6.0.0 release necessarily targets its original commit rather than the new GITHUB_SHA, so this equality test makes the workflow fail on every subsequent relevant push. The inspected gh release view --help confirms targetCommitish is the field being queried; gate finalization on a newly selected release or verify the immutable tag against its original commit, as the other package lanes do.

Useful? React with 👍 / 👎.

@roackb2
roackb2 merged commit 434b50a into main Aug 14, 2026
9 checks passed
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