Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0356f7677f | ||
|
|
b7bc855492 | ||
|
|
726b730b84 |
@@ -112,7 +112,15 @@ jobs:
|
|||||||
run: npm run verify:package
|
run: npm run verify:package
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: npm publish --access public
|
shell: bash
|
||||||
|
run: |
|
||||||
|
version="$(node --input-type=module -e 'import packageJson from "./package.json" with { type: "json" }; process.stdout.write(packageJson.version)')"
|
||||||
|
published_version="$(npm view "rea-agents@${version}" version --json 2>/dev/null || true)"
|
||||||
|
if [ "${published_version}" = "\"${version}\"" ]; then
|
||||||
|
echo "rea-agents@${version} is already published; verifying the existing package."
|
||||||
|
else
|
||||||
|
npm publish --access public
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Verify published CLI from npm
|
- name: Verify published CLI from npm
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -121,16 +129,20 @@ jobs:
|
|||||||
verification_root="$(mktemp -d)"
|
verification_root="$(mktemp -d)"
|
||||||
trap 'rm -rf -- "${verification_root}"' EXIT
|
trap 'rm -rf -- "${verification_root}"' EXIT
|
||||||
cd "${verification_root}"
|
cd "${verification_root}"
|
||||||
for attempt in 1 2 3 4 5 6; do
|
for attempt in $(seq 1 20); do
|
||||||
if npm view "rea-agents@${version}" version --json >/dev/null 2>&1 \
|
published_version="$(npm view "rea-agents@${version}" version --json 2>/dev/null || true)"
|
||||||
&& npm exec --yes --package="rea-agents@${version}" -- rea --help \
|
if [ "${published_version}" = "\"${version}\"" ]; then
|
||||||
&& npm exec --yes --package="rea-agents@${version}" -- rea --llms \
|
if npm exec --yes --package="rea-agents@${version}" -- rea --help \
|
||||||
&& node "${GITHUB_WORKSPACE}/scripts/verify-published-package.mjs" "${version}"; then
|
&& npm exec --yes --package="rea-agents@${version}" -- rea --llms \
|
||||||
exit 0
|
&& node "${GITHUB_WORKSPACE}/scripts/verify-published-package.mjs" "${version}"; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
echo "Published rea-agents@${version} is visible, but CLI verification failed on attempt ${attempt}" >&2
|
||||||
|
else
|
||||||
|
echo "rea-agents@${version} is not visible on npm yet (attempt ${attempt}/20)" >&2
|
||||||
fi
|
fi
|
||||||
if [ "${attempt}" -lt 6 ]; then
|
if [ "${attempt}" -lt 20 ]; then
|
||||||
echo "Published package verification attempt ${attempt} failed; retrying in 10 seconds" >&2
|
sleep 15
|
||||||
sleep 10
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo "Published rea-agents@${version} failed registry and CLI verification" >&2
|
echo "Published rea-agents@${version} failed registry and CLI verification" >&2
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
".": "3.2.0"
|
".": "3.2.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,17 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [3.2.1](https://github.com/morluto/rea/compare/rea-agents-3.2.0...rea-agents-3.2.1) (2026-10-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **release:** tolerate npm registry propagation delay ([726b730](https://github.com/morluto/rea/commit/726b730b84830b208725df50fa0251ece1fa199f))
|
||||||
|
|
||||||
|
|
||||||
|
### Tests
|
||||||
|
|
||||||
|
* **release:** accept guarded npm publishing ([b7bc855](https://github.com/morluto/rea/commit/b7bc8554928c8eca9c29842c77e4021c1e42e054))
|
||||||
|
|
||||||
## [3.2.0](https://github.com/morluto/rea/compare/rea-agents-3.1.0...rea-agents-3.2.0) (2026-10-03)
|
## [3.2.0](https://github.com/morluto/rea/compare/rea-agents-3.1.0...rea-agents-3.2.0) (2026-10-03)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -515,7 +515,7 @@ Setup detects Claude Code, Claude Desktop, Codex, Cursor, Gemini CLI, Windsurf,
|
|||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"rea": {
|
"rea": {
|
||||||
"command": "npx",
|
"command": "npx",
|
||||||
"args": ["-y", "rea-agents@3.2.0", "mcp"]
|
"args": ["-y", "rea-agents@3.2.1", "mcp"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -183,7 +183,7 @@ rea uninstall --purge-data
|
|||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"rea": {
|
"rea": {
|
||||||
"command": "npx",
|
"command": "npx",
|
||||||
"args": ["-y", "rea-agents@3.2.0", "mcp"]
|
"args": ["-y", "rea-agents@3.2.1", "mcp"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -173,7 +173,7 @@ Setup は Claude Code、Claude Desktop、Codex、Cursor、Gemini CLI、Windsurf
|
|||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"rea": {
|
"rea": {
|
||||||
"command": "npx",
|
"command": "npx",
|
||||||
"args": ["-y", "rea-agents@3.2.0", "mcp"]
|
"args": ["-y", "rea-agents@3.2.1", "mcp"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -173,7 +173,7 @@ Setup은 Claude Code, Claude Desktop, Codex, Cursor, Gemini CLI, Windsurf, Devin
|
|||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"rea": {
|
"rea": {
|
||||||
"command": "npx",
|
"command": "npx",
|
||||||
"args": ["-y", "rea-agents@3.2.0", "mcp"]
|
"args": ["-y", "rea-agents@3.2.1", "mcp"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -173,7 +173,7 @@ Setup 会检测 Claude Code、Claude Desktop、Codex、Cursor、Gemini CLI、Win
|
|||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"rea": {
|
"rea": {
|
||||||
"command": "npx",
|
"command": "npx",
|
||||||
"args": ["-y", "rea-agents@3.2.0", "mcp"]
|
"args": ["-y", "rea-agents@3.2.1", "mcp"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"package": {
|
"package": {
|
||||||
"name": "rea-agents",
|
"name": "rea-agents",
|
||||||
"version": "3.2.0",
|
"version": "3.2.1",
|
||||||
"sdk": {
|
"sdk": {
|
||||||
"server": "2.0.0",
|
"server": "2.0.0",
|
||||||
"client": "2.0.0",
|
"client": "2.0.0",
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "rea-agents",
|
"name": "rea-agents",
|
||||||
"version": "3.2.0",
|
"version": "3.2.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "rea-agents",
|
"name": "rea-agents",
|
||||||
"version": "3.2.0",
|
"version": "3.2.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/parser": "8.0.4",
|
"@babel/parser": "8.0.4",
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "rea-agents",
|
"name": "rea-agents",
|
||||||
"mcpName": "io.github.morluto/rea",
|
"mcpName": "io.github.morluto/rea",
|
||||||
"version": "3.2.0",
|
"version": "3.2.1",
|
||||||
"description": "Reverse engineer anything from your terminal or agent with one CLI and MCP server.",
|
"description": "Reverse engineer anything from your terminal or agent with one CLI and MCP server.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
+2
-2
@@ -8,13 +8,13 @@
|
|||||||
"url": "https://github.com/morluto/rea",
|
"url": "https://github.com/morluto/rea",
|
||||||
"source": "github"
|
"source": "github"
|
||||||
},
|
},
|
||||||
"version": "3.2.0",
|
"version": "3.2.1",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"registryType": "npm",
|
"registryType": "npm",
|
||||||
"registryBaseUrl": "https://registry.npmjs.org",
|
"registryBaseUrl": "https://registry.npmjs.org",
|
||||||
"identifier": "rea-agents",
|
"identifier": "rea-agents",
|
||||||
"version": "3.2.0",
|
"version": "3.2.1",
|
||||||
"runtimeHint": "npx",
|
"runtimeHint": "npx",
|
||||||
"transport": {
|
"transport": {
|
||||||
"type": "stdio"
|
"type": "stdio"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/** Generated from package.json and package-lock.json; do not edit. */
|
/** Generated from package.json and package-lock.json; do not edit. */
|
||||||
export const PACKAGE_METADATA = {
|
export const PACKAGE_METADATA = {
|
||||||
name: "rea-agents",
|
name: "rea-agents",
|
||||||
version: "3.2.0", // x-release-please-version
|
version: "3.2.1", // x-release-please-version
|
||||||
serverSdkVersion: "2.0.0",
|
serverSdkVersion: "2.0.0",
|
||||||
clientSdkVersion: "2.0.0",
|
clientSdkVersion: "2.0.0",
|
||||||
coreSdkVersion: "2.0.0",
|
coreSdkVersion: "2.0.0",
|
||||||
|
|||||||
@@ -106,11 +106,13 @@ describe("package installation workflows", () => {
|
|||||||
({ run }: { readonly run?: unknown }) => run === "npm run verify:package",
|
({ run }: { readonly run?: unknown }) => run === "npm run verify:package",
|
||||||
);
|
);
|
||||||
const npmPublishIndex = publishSteps.findIndex(
|
const npmPublishIndex = publishSteps.findIndex(
|
||||||
({ run }: { readonly run?: unknown }) =>
|
({ name }: { readonly name?: unknown }) => name === "Publish",
|
||||||
run === "npm publish --access public",
|
|
||||||
);
|
);
|
||||||
expect(verifyPackageIndex).toBeGreaterThanOrEqual(0);
|
expect(verifyPackageIndex).toBeGreaterThanOrEqual(0);
|
||||||
expect(npmPublishIndex).toBeGreaterThan(verifyPackageIndex);
|
expect(npmPublishIndex).toBeGreaterThan(verifyPackageIndex);
|
||||||
|
expect(publishSteps[npmPublishIndex]?.run).toContain(
|
||||||
|
"npm publish --access public",
|
||||||
|
);
|
||||||
|
|
||||||
const publishedCanary = publishSteps.find(
|
const publishedCanary = publishSteps.find(
|
||||||
({ name }: { readonly name?: unknown }) =>
|
({ name }: { readonly name?: unknown }) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user