Relocates a Java package across a bounded set of source files using OpenRewrite,
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 is reported, so a refactoring that breaks the build says so instead of being handed over as done.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://agent.halowerk.com/v1/oss-openrewrite-java-package-relocation
| Category | Search and research |
|---|---|
| Provider host | agent.halowerk.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 2 from 2 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-10-24 | valid payment request | 402 | $0.004 | 916 ms |
Example input (from the provider)
{
"body": {
"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",
"recursive": true
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"files": {
"items": {
"additionalProperties": false,
"properties": {
"content": {
"maxLength": 16384,
"minLength": 1,
"type": "string"
},
"path": {
"maxLength": 256,
"pattern": "^src/(?:[A-Za-z_][A-Za-z0-9_]*/)*(?:[A-Za-z_][A-Za-z0-9_]*|package-info)\\.java$",
"type": "string"
}
},
"required": [
"path",
"content"
],
"type": "object"
},
"maxItems": 32,
"minItems": 1,
"type": "array"
},
"new_package": {
"maxLength": 128,
"pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$",
"type": "string"
},
"old_package": {
"maxLength": 128,
"pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$",
"type": "string"
},
"recursive": {
"type": "boolean"
}
},
"required": [
"files",
"old_package",
"new_package",
"recursive"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}