Merge pull request #4 from morluto/codex/publish-morluto-rea
[codex] Publish REA under the morluto scope
This commit is contained in:
@@ -17,8 +17,8 @@ REA does not bundle Hopper. `rea setup --yes` can install Homebrew when absent,
|
|||||||
After publication:
|
After publication:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npx -y reaa setup --yes
|
npx -y @morluto/rea setup --yes
|
||||||
npx -y reaa doctor
|
npx -y @morluto/rea doctor
|
||||||
```
|
```
|
||||||
|
|
||||||
For source-checkout development:
|
For source-checkout development:
|
||||||
@@ -59,7 +59,7 @@ Manual target-free MCP configuration:
|
|||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"rea": {
|
"rea": {
|
||||||
"command": "npx",
|
"command": "npx",
|
||||||
"args": ["-y", "reaa", "mcp"]
|
"args": ["-y", "@morluto/rea", "mcp"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -94,13 +94,13 @@ npm run verify:hopper
|
|||||||
|
|
||||||
Real-Hopper verification requires Hopper and two distinct binaries. It checks target-free startup, all 42 tools, analysis, bounded decompilation, target switching, bridge cleanup, and server shutdown. The verifier terminates only Hopper bundle processes that appeared during its run; it preserves Hopper processes that were already running.
|
Real-Hopper verification requires Hopper and two distinct binaries. It checks target-free startup, all 42 tools, analysis, bounded decompilation, target switching, bridge cleanup, and server shutdown. The verifier terminates only Hopper bundle processes that appeared during its run; it preserves Hopper processes that were already running.
|
||||||
|
|
||||||
Before publishing a release, run `npm run check`, `npm run verify:package`, `npm pack --dry-run`, and the two-target real-Hopper verifier. After publication, repeat the CLI and MCP smoke tests through `npx -y reaa`.
|
Before publishing a release, run `npm run check`, `npm run verify:package`, `npm pack --dry-run`, and the two-target real-Hopper verifier. After publication, repeat the CLI and MCP smoke tests through `npx -y @morluto/rea`.
|
||||||
|
|
||||||
The npm package is named `reaa`, while the product and installed executable remain `REA` and `rea`. Setup writes a floating MCP registration using `npx -y reaa mcp`. A local tarball exercises the same package boundary before publication:
|
The npm package is named `@morluto/rea`, while the product and installed executable remain `REA` and `rea`. Setup writes a floating MCP registration using `npx -y @morluto/rea mcp`. A local tarball exercises the same package boundary before publication:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm pack
|
npm pack
|
||||||
npm exec --yes --package ./reaa-0.1.0.tgz -- rea --help
|
npm exec --yes --package ./morluto-rea-0.1.0.tgz -- rea --help
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "reaa",
|
"name": "@morluto/rea",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "reaa",
|
"name": "@morluto/rea",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@modelcontextprotocol/server": "2.0.0-beta.3",
|
"@modelcontextprotocol/server": "2.0.0-beta.3",
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "reaa",
|
"name": "@morluto/rea",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "Reverse-engineering automation for Hopper Disassembler through one CLI and MCP server.",
|
"description": "Reverse-engineering automation for Hopper Disassembler through one CLI and MCP server.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ try {
|
|||||||
throw new Error("packaged CLI discovery or doctor failed");
|
throw new Error("packaged CLI discovery or doctor failed");
|
||||||
await run(cli, ["mcp", "add"], environment);
|
await run(cli, ["mcp", "add"], environment);
|
||||||
const mcpRegistration = await readFile(npxLog, "utf8");
|
const mcpRegistration = await readFile(npxLog, "utf8");
|
||||||
if (!mcpRegistration.includes("add-mcp npx -y reaa mcp --name rea"))
|
if (!mcpRegistration.includes("add-mcp npx -y @morluto/rea mcp --name rea"))
|
||||||
throw new Error("Incur mcp add did not register the floating npx command");
|
throw new Error("Incur mcp add did not register the floating npx command");
|
||||||
const first = json(await run(cli, ["setup", "--yes", "--json"], environment));
|
const first = json(await run(cli, ["setup", "--yes", "--json"], environment));
|
||||||
const second = json(
|
const second = json(
|
||||||
@@ -113,7 +113,7 @@ try {
|
|||||||
config.existing !== true ||
|
config.existing !== true ||
|
||||||
config.mcpServers?.rea?.command !== "npx" ||
|
config.mcpServers?.rea?.command !== "npx" ||
|
||||||
JSON.stringify(config.mcpServers?.rea?.args) !==
|
JSON.stringify(config.mcpServers?.rea?.args) !==
|
||||||
JSON.stringify(["-y", "reaa", "mcp"])
|
JSON.stringify(["-y", "@morluto/rea", "mcp"])
|
||||||
)
|
)
|
||||||
throw new Error("packaged client readback failed");
|
throw new Error("packaged client readback failed");
|
||||||
if (
|
if (
|
||||||
@@ -173,7 +173,7 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
process.stdout.write(
|
process.stdout.write(
|
||||||
`${JSON.stringify({ cli: true, incurMcpCommand: "npx -y reaa mcp", doctor: true, setup: "idempotent", clients: 2, backupReadback: true, failureRecovery: true, skill: true, mcpTools: 42, targetFree: true })}\n`,
|
`${JSON.stringify({ cli: true, incurMcpCommand: "npx -y @morluto/rea mcp", doctor: true, setup: "idempotent", clients: 2, backupReadback: true, failureRecovery: true, skill: true, mcpTools: 42, targetFree: true })}\n`,
|
||||||
);
|
);
|
||||||
} finally {
|
} finally {
|
||||||
if (tarball) await rm(join(root, tarball), { force: true });
|
if (tarball) await rm(join(root, tarball), { force: true });
|
||||||
|
|||||||
+2
-2
@@ -5,9 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
export const PRODUCT_IDENTITY = {
|
export const PRODUCT_IDENTITY = {
|
||||||
displayName: "REA",
|
displayName: "REA",
|
||||||
packageName: "reaa",
|
packageName: "@morluto/rea",
|
||||||
cliBinary: "rea",
|
cliBinary: "rea",
|
||||||
mcpCommand: "npx -y reaa mcp",
|
mcpCommand: "npx -y @morluto/rea mcp",
|
||||||
mcpServerKey: "rea",
|
mcpServerKey: "rea",
|
||||||
skillName: "rea-analysis",
|
skillName: "rea-analysis",
|
||||||
configFileName: "rea.json",
|
configFileName: "rea.json",
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ describe("JSON client configuration transaction", () => {
|
|||||||
other: { command: "other" },
|
other: { command: "other" },
|
||||||
rea: {
|
rea: {
|
||||||
command: "npx",
|
command: "npx",
|
||||||
args: ["-y", "reaa", "mcp"],
|
args: ["-y", "@morluto/rea", "mcp"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -39,7 +39,7 @@ describe("JSON client configuration transaction", () => {
|
|||||||
const configPath = join(directory, "mcp.json");
|
const configPath = join(directory, "mcp.json");
|
||||||
await writeFile(
|
await writeFile(
|
||||||
configPath,
|
configPath,
|
||||||
'{"mcpServers":{"rea":{"command":"npx","args":["-y","reaa","mcp"]}}}\n',
|
'{"mcpServers":{"rea":{"command":"npx","args":["-y","@morluto/rea","mcp"]}}}\n',
|
||||||
);
|
);
|
||||||
expect(await configureJsonClient({ name: "cursor", configPath })).toEqual({
|
expect(await configureJsonClient({ name: "cursor", configPath })).toEqual({
|
||||||
status: "unchanged",
|
status: "unchanged",
|
||||||
@@ -61,7 +61,7 @@ describe("JSON client configuration transaction", () => {
|
|||||||
mcpServers: {
|
mcpServers: {
|
||||||
rea: {
|
rea: {
|
||||||
command: "npx",
|
command: "npx",
|
||||||
args: ["-y", "reaa", "mcp"],
|
args: ["-y", "@morluto/rea", "mcp"],
|
||||||
env: { HOPPER_LAUNCHER_PATH: hopperPath },
|
env: { HOPPER_LAUNCHER_PATH: hopperPath },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user