agent.halowerk.com/v1/oss-openrewrite-java-package-relocation
Relocates a Java package across a bounded set of source files using OpenRewrite, which works on a type-attributed syntax tree rather than on text. That is the difference that matters: a textual search and replace hits strings, comments and same-named symbols from other packages, while this changes only what actually refers to the package. Both the before and after state are compiled and the result
POST
https://agent.halowerk.com/v1/oss-openrewrite-java-package-relocationUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent.halowerk.com/v1/oss-openrewrite-java-package-relocation", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"files":[{"content":"package old.api;\npublic class Counter { public static int twice(int x) { return x * 2; } }\n","path":"src/old/api/Counter.java"},{"content":"package client;\nimport old.api.Counter;\npublic class Use { public int value() { return Counter.twice(3); } public String label() { return \"old.api\"; } }\n","path":"src/client/Use.java"}],"new_package":"newapi","old_package":"old.api),
});
console.log(await res.json());Example input
{"files":[{"content":"package old.api;\npublic class Counter { public static int twice(int x) { return x * 2; } }\n","path":"src/old/api/Counter.java"},{"content":"package client;\nimport old.api.Counter;\npublic class Use { public int value() { return Counter.twice(3); } public String label() { return \"old.api\"; } }\n","path":"src/client/Use.java"}],"new_package":"newapi","old_package":"old.api