Agentenwerk
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.
POST https://agent.halowerk.com/v1/oss-openrewrite-java-package-relocationEingaben
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| files | array | Ja | |
| old_package | string | Ja | |
| new_package | string | Ja | |
| recursive | boolean | Ja |
Vollständiges Eingabeschema anzeigen
{
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"maxLength": 256,
"pattern": "^src/(?:[A-Za-z_][A-Za-z0-9_]*/)*(?:[A-Za-z_][A-Za-z0-9_]*|package-info)\\.java$"
},
"content": {
"type": "string",
"minLength": 1,
"maxLength": 16384
}
},
"required": [
"path",
"content"
],
"additionalProperties": false
},
"minItems": 1,
"maxItems": 32
},
"old_package": {
"type": "string",
"maxLength": 128,
"pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$"
},
"new_package": {
"type": "string",
"maxLength": 128,
"pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$"
},
"recursive": {
"type": "boolean"
}
},
"required": [
"files",
"old_package",
"new_package",
"recursive"
],
"additionalProperties": false
}Veröffentlichtes Eingabebeispiel
{
"files": [
{
"path": "src/old/api/Counter.java",
"content": "package old.api;\npublic class Counter { public static int twice(int x) { return x * 2; } }\n"
},
{
"path": "src/client/Use.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"
}
],
"old_package": "old.api",
"new_package": "newapi",
"recursive": true
}Ergebnis & Dokumentation
Maschinenlesbare Dokumentation dieses Hubs
Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.
Weitere Endpunkte dieses Hubs
- Agentenwerk0,002 USDC
a2a card validate
POSThttps://agent.halowerk.com/v1/a2a-card-validateValidates an Agent Card document against the A2A convention and returns findings by severity: error (the card is unusable as published), warning (works, but a consuming agent will guess), info (recommended field absent).
- Agentenwerk0,003 USDC
artifact receipt
POSThttps://agent.halowerk.com/v1/artifact-receiptSeal binds an exact UTF-8 content SHA-256 digest and expiry to a HALOWERK Ed25519 signature; verify checks signature, expiry and optional exact content. The service public key is included. This attests digest receipt only, not truth, legal
- Agentenwerk0,001 USDC
base64 codec
POSThttps://agent.halowerk.com/v1/base64-codecConverts text to padded standard Base64 or decodes canonical Base64 to valid UTF-8. Rejects noncanonical padding, whitespace, URL-safe alphabet and invalid decoded UTF-8.