From 35f16240b4b5141c2687f93c50846eb9ca9dde4e Mon Sep 17 00:00:00 2001 From: Jeremie Tarnaud Date: Thu, 9 Apr 2026 17:39:31 +0200 Subject: [PATCH] chore: store pom version as resource property and use it for capability template --- pom.xml | 13 +++++++++++++ src/main/java/io/naftiko/Cli.java | 2 +- src/main/java/io/naftiko/cli/FileGenerator.java | 15 +++++++++++++++ .../META-INF/native-image/resource-config.json | 3 ++- src/main/resources/schemas/naftiko-schema.json | 4 ++-- .../resources/templates/capability.yaml.mustache | 2 +- .../tutorial/shared/legacy-consumes.yaml | 2 +- .../tutorial/shared/registry-consumes.yaml | 2 +- src/main/resources/tutorial/shared/secrets.yaml | 2 +- .../tutorial/shared/step10-registry-consumes.yml | 2 +- .../tutorial/shared/step5-registry-consumes.yaml | 2 +- .../tutorial/shared/step6-registry-consumes.yaml | 2 +- .../tutorial/shared/step7-registry-consumes.yml | 2 +- .../tutorial/step-1-shipyard-first-capability.yml | 2 +- .../tutorial/step-10-shipyard-fleet-manifest.yml | 2 +- .../tutorial/step-2-shipyard-input-parameters.yml | 2 +- .../tutorial/step-3-shipyard-auth-and-binds.yml | 2 +- .../tutorial/step-4-shipyard-output-shaping.yml | 2 +- .../tutorial/step-5-shipyard-multi-source.yml | 2 +- .../tutorial/step-6-shipyard-write-operations.yml | 2 +- .../step-7-shipyard-orchestrated-lookup.yml | 2 +- .../tutorial/step-8-shipyard-skill-groups.yml | 2 +- .../tutorial/step-9-shipyard-rest-adapter.yml | 2 +- src/main/resources/version.properties | 1 + .../engine/consumes/http/CsvIntegrationTest.java | 2 +- .../engine/consumes/http/HtmlIntegrationTest.java | 2 +- .../consumes/http/MarkdownIntegrationTest.java | 2 +- .../consumes/http/ProtobufIntegrationTest.java | 2 +- .../engine/consumes/http/XmlIntegrationTest.java | 2 +- .../engine/consumes/http/YamlIntegrationTest.java | 2 +- .../engine/exposes/mcp/McpIntegrationTest.java | 2 +- .../mcp/ResourcesPromptsIntegrationTest.java | 2 +- .../exposes/skill/SkillIntegrationTest.java | 2 +- .../exposes/SkillServerSpecRoundTripTest.java | 2 +- src/test/resources/avro-capability.yaml | 2 +- .../baseuri-trailing-slash-capability.yaml | 2 +- src/test/resources/csv-capability.yaml | 4 ++-- src/test/resources/html-capability.yaml | 2 +- src/test/resources/http-body-capability.yaml | 2 +- .../resources/http-forward-value-capability.yaml | 2 +- .../resources/http-header-query-capability.yaml | 2 +- src/test/resources/markdown-capability.yaml | 2 +- src/test/resources/mcp-capability.yaml | 2 +- src/test/resources/mcp-hints-capability.yaml | 2 +- .../mcp-resources-prompts-capability.yaml | 2 +- src/test/resources/mcp-stdio-capability.yaml | 2 +- .../nested-object-output-capability.yaml | 2 +- src/test/resources/proto-capability.yaml | 2 +- src/test/resources/register.capability.yml | 2 +- src/test/resources/skill-capability.yaml | 2 +- .../tool-handler-with-mustache-capability.yaml | 2 +- src/test/resources/xml-capability.yaml | 4 ++-- src/test/resources/yaml-capability.yaml | 4 ++-- 53 files changed, 84 insertions(+), 54 deletions(-) create mode 100644 src/main/resources/version.properties diff --git a/pom.xml b/pom.xml index c0bcad9a..03b50dba 100644 --- a/pom.xml +++ b/pom.xml @@ -164,6 +164,19 @@ + + + src/main/resources + false + + + src/main/resources + true + + version.properties + + + org.apache.maven.plugins diff --git a/src/main/java/io/naftiko/Cli.java b/src/main/java/io/naftiko/Cli.java index de5e2df9..f60e005b 100644 --- a/src/main/java/io/naftiko/Cli.java +++ b/src/main/java/io/naftiko/Cli.java @@ -21,7 +21,7 @@ @Command( name = "naftiko", mixinStandardHelpOptions = true, - version = "1.0.0-alpha1", + version = "1.0.0-alpha2", description = "Naftiko CLI", subcommands = {CreateCommand.class, ValidateCommand.class} ) diff --git a/src/main/java/io/naftiko/cli/FileGenerator.java b/src/main/java/io/naftiko/cli/FileGenerator.java index 0443c183..6907a8d2 100644 --- a/src/main/java/io/naftiko/cli/FileGenerator.java +++ b/src/main/java/io/naftiko/cli/FileGenerator.java @@ -24,8 +24,22 @@ import java.nio.file.Paths; import java.util.HashMap; import java.util.Map; +import java.util.Properties; public class FileGenerator { + private static final String VERSION; + + static { + try (InputStream versionStream = FileGenerator.class.getClassLoader().getResourceAsStream("version.properties")) { + Properties props = new Properties(); + props.load(versionStream); + String v = props.getProperty("version"); + VERSION = v.endsWith("-SNAPSHOT") ? v.substring(0, v.length() - "-SNAPSHOT".length()) : v; + } catch (IOException e) { + throw new ExceptionInInitializerError("Could not load version.properties: " + e.getMessage()); + } + } + public static void generateCapabilityFile(String capabilityName, FileFormat format, String baseUri, String port) throws IOException { String templatePath = "templates/capability." + format.pathName + ".mustache"; String outputFileName = capabilityName + ".naftiko." + format.pathName; @@ -41,6 +55,7 @@ public static void generateCapabilityFile(String capabilityName, FileFormat form // Render template and write file. Template mustache = Mustache.compiler().compile(new InputStreamReader(templateStream)); Map scope = new HashMap<>(); + scope.put("version", VERSION); scope.put("capabilityName", capabilityName); scope.put("port", port); scope.put("baseUri", baseUri); diff --git a/src/main/resources/META-INF/native-image/resource-config.json b/src/main/resources/META-INF/native-image/resource-config.json index f3e99dde..fcd471f4 100644 --- a/src/main/resources/META-INF/native-image/resource-config.json +++ b/src/main/resources/META-INF/native-image/resource-config.json @@ -2,6 +2,7 @@ "resources": [ { "pattern": "schemas/.*" }, { "pattern": "templates/.*" }, - { "pattern": "jsv-messages.*\\.properties" } + { "pattern": "jsv-messages.*\\.properties" }, + { "pattern": "version\\.properties" } ] } diff --git a/src/main/resources/schemas/naftiko-schema.json b/src/main/resources/schemas/naftiko-schema.json index f22505ef..c8894095 100644 --- a/src/main/resources/schemas/naftiko-schema.json +++ b/src/main/resources/schemas/naftiko-schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://naftiko.io/schemas/v1.0.0-alpha1/naftiko.json", + "$id": "https://naftiko.io/schemas/v1.0.0-alpha2/naftiko.json", "name": "Naftiko Specification", "description": "This Schema should be used to describe and validate Naftiko Capabilities", "type": "object", @@ -8,7 +8,7 @@ "naftiko": { "type": "string", "description": "Version of the Naftiko specification", - "const": "1.0.0-alpha1" + "const": "1.0.0-alpha2" }, "info": { "$ref": "#/$defs/Info" diff --git a/src/main/resources/templates/capability.yaml.mustache b/src/main/resources/templates/capability.yaml.mustache index b8761620..b6189664 100644 --- a/src/main/resources/templates/capability.yaml.mustache +++ b/src/main/resources/templates/capability.yaml.mustache @@ -1,4 +1,4 @@ -naftiko: "1.0.0-alpha1" +naftiko: "{{version}}" info: label: "{{capabilityName}}" description: "business-description-of-your-capability" diff --git a/src/main/resources/tutorial/shared/legacy-consumes.yaml b/src/main/resources/tutorial/shared/legacy-consumes.yaml index e0a0ab73..06a94ede 100644 --- a/src/main/resources/tutorial/shared/legacy-consumes.yaml +++ b/src/main/resources/tutorial/shared/legacy-consumes.yaml @@ -1,4 +1,4 @@ -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" consumes: - namespace: legacy type: http diff --git a/src/main/resources/tutorial/shared/registry-consumes.yaml b/src/main/resources/tutorial/shared/registry-consumes.yaml index a80083ca..4608f2b2 100644 --- a/src/main/resources/tutorial/shared/registry-consumes.yaml +++ b/src/main/resources/tutorial/shared/registry-consumes.yaml @@ -1,4 +1,4 @@ -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" consumes: - namespace: registry type: http diff --git a/src/main/resources/tutorial/shared/secrets.yaml b/src/main/resources/tutorial/shared/secrets.yaml index 31637fd4..ef19e9cc 100644 --- a/src/main/resources/tutorial/shared/secrets.yaml +++ b/src/main/resources/tutorial/shared/secrets.yaml @@ -1,3 +1,3 @@ registry-bearer-token: "dummy-token" -registry-api-version: "1.0.0-alpha1" +registry-api-version: "1.0.0-alpha2" dockyard-api-key: "dummy-dockyard-key" diff --git a/src/main/resources/tutorial/shared/step10-registry-consumes.yml b/src/main/resources/tutorial/shared/step10-registry-consumes.yml index c6e5111f..71d1ecec 100644 --- a/src/main/resources/tutorial/shared/step10-registry-consumes.yml +++ b/src/main/resources/tutorial/shared/step10-registry-consumes.yml @@ -1,5 +1,5 @@ # shared/registry-consumes.yaml (final — added get-voyage + cargo resource) -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" consumes: - namespace: registry type: http diff --git a/src/main/resources/tutorial/shared/step5-registry-consumes.yaml b/src/main/resources/tutorial/shared/step5-registry-consumes.yaml index 07abeca9..7b15bae7 100644 --- a/src/main/resources/tutorial/shared/step5-registry-consumes.yaml +++ b/src/main/resources/tutorial/shared/step5-registry-consumes.yaml @@ -1,4 +1,4 @@ -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" consumes: - namespace: registry type: http diff --git a/src/main/resources/tutorial/shared/step6-registry-consumes.yaml b/src/main/resources/tutorial/shared/step6-registry-consumes.yaml index 1c3e0fa2..39d94ba9 100644 --- a/src/main/resources/tutorial/shared/step6-registry-consumes.yaml +++ b/src/main/resources/tutorial/shared/step6-registry-consumes.yaml @@ -1,5 +1,5 @@ # shared/registry-consumes.yaml (updated — added voyages resource) -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" consumes: - namespace: registry type: http diff --git a/src/main/resources/tutorial/shared/step7-registry-consumes.yml b/src/main/resources/tutorial/shared/step7-registry-consumes.yml index 56344f8f..2ae96e8c 100644 --- a/src/main/resources/tutorial/shared/step7-registry-consumes.yml +++ b/src/main/resources/tutorial/shared/step7-registry-consumes.yml @@ -1,4 +1,4 @@ -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" consumes: - namespace: registry type: http diff --git a/src/main/resources/tutorial/step-1-shipyard-first-capability.yml b/src/main/resources/tutorial/step-1-shipyard-first-capability.yml index c63c145d..3e9ceaef 100644 --- a/src/main/resources/tutorial/step-1-shipyard-first-capability.yml +++ b/src/main/resources/tutorial/step-1-shipyard-first-capability.yml @@ -1,5 +1,5 @@ --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" capability: consumes: diff --git a/src/main/resources/tutorial/step-10-shipyard-fleet-manifest.yml b/src/main/resources/tutorial/step-10-shipyard-fleet-manifest.yml index b20587f0..56d86e8a 100644 --- a/src/main/resources/tutorial/step-10-shipyard-fleet-manifest.yml +++ b/src/main/resources/tutorial/step-10-shipyard-fleet-manifest.yml @@ -1,5 +1,5 @@ --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "Shipyard Fleet Management" diff --git a/src/main/resources/tutorial/step-2-shipyard-input-parameters.yml b/src/main/resources/tutorial/step-2-shipyard-input-parameters.yml index bd5e2c97..608963d0 100644 --- a/src/main/resources/tutorial/step-2-shipyard-input-parameters.yml +++ b/src/main/resources/tutorial/step-2-shipyard-input-parameters.yml @@ -1,5 +1,5 @@ --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" capability: consumes: diff --git a/src/main/resources/tutorial/step-3-shipyard-auth-and-binds.yml b/src/main/resources/tutorial/step-3-shipyard-auth-and-binds.yml index ac11ed7b..f4aa9607 100644 --- a/src/main/resources/tutorial/step-3-shipyard-auth-and-binds.yml +++ b/src/main/resources/tutorial/step-3-shipyard-auth-and-binds.yml @@ -1,5 +1,5 @@ --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" binds: - namespace: "registry-env" diff --git a/src/main/resources/tutorial/step-4-shipyard-output-shaping.yml b/src/main/resources/tutorial/step-4-shipyard-output-shaping.yml index 08c30849..8ad58faa 100644 --- a/src/main/resources/tutorial/step-4-shipyard-output-shaping.yml +++ b/src/main/resources/tutorial/step-4-shipyard-output-shaping.yml @@ -1,5 +1,5 @@ --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" binds: - namespace: "registry-env" diff --git a/src/main/resources/tutorial/step-5-shipyard-multi-source.yml b/src/main/resources/tutorial/step-5-shipyard-multi-source.yml index 6bf17c76..473a1caf 100644 --- a/src/main/resources/tutorial/step-5-shipyard-multi-source.yml +++ b/src/main/resources/tutorial/step-5-shipyard-multi-source.yml @@ -1,5 +1,5 @@ --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" binds: - namespace: "registry-env" diff --git a/src/main/resources/tutorial/step-6-shipyard-write-operations.yml b/src/main/resources/tutorial/step-6-shipyard-write-operations.yml index f2c1954d..23370094 100644 --- a/src/main/resources/tutorial/step-6-shipyard-write-operations.yml +++ b/src/main/resources/tutorial/step-6-shipyard-write-operations.yml @@ -1,5 +1,5 @@ --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" binds: - namespace: "registry-env" diff --git a/src/main/resources/tutorial/step-7-shipyard-orchestrated-lookup.yml b/src/main/resources/tutorial/step-7-shipyard-orchestrated-lookup.yml index d369d553..cf6909d4 100644 --- a/src/main/resources/tutorial/step-7-shipyard-orchestrated-lookup.yml +++ b/src/main/resources/tutorial/step-7-shipyard-orchestrated-lookup.yml @@ -1,5 +1,5 @@ --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" binds: - namespace: "registry-env" diff --git a/src/main/resources/tutorial/step-8-shipyard-skill-groups.yml b/src/main/resources/tutorial/step-8-shipyard-skill-groups.yml index b837049f..b0c7f8cd 100644 --- a/src/main/resources/tutorial/step-8-shipyard-skill-groups.yml +++ b/src/main/resources/tutorial/step-8-shipyard-skill-groups.yml @@ -1,5 +1,5 @@ --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" binds: - namespace: "registry-env" diff --git a/src/main/resources/tutorial/step-9-shipyard-rest-adapter.yml b/src/main/resources/tutorial/step-9-shipyard-rest-adapter.yml index 3fd8bc17..01e73af2 100644 --- a/src/main/resources/tutorial/step-9-shipyard-rest-adapter.yml +++ b/src/main/resources/tutorial/step-9-shipyard-rest-adapter.yml @@ -1,5 +1,5 @@ --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" binds: - namespace: "registry-env" diff --git a/src/main/resources/version.properties b/src/main/resources/version.properties new file mode 100644 index 00000000..defbd482 --- /dev/null +++ b/src/main/resources/version.properties @@ -0,0 +1 @@ +version=${project.version} diff --git a/src/test/java/io/naftiko/engine/consumes/http/CsvIntegrationTest.java b/src/test/java/io/naftiko/engine/consumes/http/CsvIntegrationTest.java index 23dbaa22..8309c797 100644 --- a/src/test/java/io/naftiko/engine/consumes/http/CsvIntegrationTest.java +++ b/src/test/java/io/naftiko/engine/consumes/http/CsvIntegrationTest.java @@ -57,7 +57,7 @@ public void setUp() throws Exception { public void testCapabilityLoaded() { assertNotNull(capability, "Capability should be initialized"); assertNotNull(capability.getSpec(), "Capability spec should be loaded"); - assertEquals("1.0.0-alpha1", capability.getSpec().getNaftiko(), "Naftiko version should be 0.5"); + assertEquals("1.0.0-alpha2", capability.getSpec().getNaftiko(), "Naftiko version should be 0.5"); } @Test diff --git a/src/test/java/io/naftiko/engine/consumes/http/HtmlIntegrationTest.java b/src/test/java/io/naftiko/engine/consumes/http/HtmlIntegrationTest.java index 5bdb6829..35295fb7 100644 --- a/src/test/java/io/naftiko/engine/consumes/http/HtmlIntegrationTest.java +++ b/src/test/java/io/naftiko/engine/consumes/http/HtmlIntegrationTest.java @@ -50,7 +50,7 @@ public void setUp() throws Exception { @Test public void testCapabilityLoaded() { assertNotNull(capability, "Capability should be initialized"); - assertEquals("1.0.0-alpha1", capability.getSpec().getNaftiko()); + assertEquals("1.0.0-alpha2", capability.getSpec().getNaftiko()); } @Test diff --git a/src/test/java/io/naftiko/engine/consumes/http/MarkdownIntegrationTest.java b/src/test/java/io/naftiko/engine/consumes/http/MarkdownIntegrationTest.java index ca2e1c6b..01112c67 100644 --- a/src/test/java/io/naftiko/engine/consumes/http/MarkdownIntegrationTest.java +++ b/src/test/java/io/naftiko/engine/consumes/http/MarkdownIntegrationTest.java @@ -50,7 +50,7 @@ public void setUp() throws Exception { @Test public void testCapabilityLoaded() { assertNotNull(capability, "Capability should be initialized"); - assertEquals("1.0.0-alpha1", capability.getSpec().getNaftiko()); + assertEquals("1.0.0-alpha2", capability.getSpec().getNaftiko()); } @Test diff --git a/src/test/java/io/naftiko/engine/consumes/http/ProtobufIntegrationTest.java b/src/test/java/io/naftiko/engine/consumes/http/ProtobufIntegrationTest.java index 43104b49..1b349d14 100644 --- a/src/test/java/io/naftiko/engine/consumes/http/ProtobufIntegrationTest.java +++ b/src/test/java/io/naftiko/engine/consumes/http/ProtobufIntegrationTest.java @@ -58,7 +58,7 @@ public void setUp() throws Exception { public void testCapabilityLoaded() { assertNotNull(capability, "Capability should be initialized"); assertNotNull(capability.getSpec(), "Capability spec should be loaded"); - assertEquals("1.0.0-alpha1", capability.getSpec().getNaftiko(), + assertEquals("1.0.0-alpha2", capability.getSpec().getNaftiko(), "Naftiko version should be 0.5"); } diff --git a/src/test/java/io/naftiko/engine/consumes/http/XmlIntegrationTest.java b/src/test/java/io/naftiko/engine/consumes/http/XmlIntegrationTest.java index 71a525d6..9633a84d 100644 --- a/src/test/java/io/naftiko/engine/consumes/http/XmlIntegrationTest.java +++ b/src/test/java/io/naftiko/engine/consumes/http/XmlIntegrationTest.java @@ -61,7 +61,7 @@ public void setUp() throws Exception { public void testCapabilityLoaded() { assertNotNull(capability, "Capability should be initialized"); assertNotNull(capability.getSpec(), "Capability spec should be loaded"); - assertEquals("1.0.0-alpha1", capability.getSpec().getNaftiko(), "Naftiko version should be 0.5"); + assertEquals("1.0.0-alpha2", capability.getSpec().getNaftiko(), "Naftiko version should be 0.5"); } @Test diff --git a/src/test/java/io/naftiko/engine/consumes/http/YamlIntegrationTest.java b/src/test/java/io/naftiko/engine/consumes/http/YamlIntegrationTest.java index d166e8c3..28ddcd11 100644 --- a/src/test/java/io/naftiko/engine/consumes/http/YamlIntegrationTest.java +++ b/src/test/java/io/naftiko/engine/consumes/http/YamlIntegrationTest.java @@ -60,7 +60,7 @@ public void setUp() throws Exception { public void testCapabilityLoaded() { assertNotNull(capability, "Capability should be initialized"); assertNotNull(capability.getSpec(), "Capability spec should be loaded"); - assertEquals("1.0.0-alpha1", capability.getSpec().getNaftiko(), "Naftiko version should be 0.5"); + assertEquals("1.0.0-alpha2", capability.getSpec().getNaftiko(), "Naftiko version should be 0.5"); } @Test diff --git a/src/test/java/io/naftiko/engine/exposes/mcp/McpIntegrationTest.java b/src/test/java/io/naftiko/engine/exposes/mcp/McpIntegrationTest.java index 7f0f87f6..a625edfa 100644 --- a/src/test/java/io/naftiko/engine/exposes/mcp/McpIntegrationTest.java +++ b/src/test/java/io/naftiko/engine/exposes/mcp/McpIntegrationTest.java @@ -54,7 +54,7 @@ public void setUp() throws Exception { public void testCapabilityLoaded() { assertNotNull(capability, "Capability should be initialized"); assertNotNull(capability.getSpec(), "Capability spec should be loaded"); - assertEquals("1.0.0-alpha1", capability.getSpec().getNaftiko(), "Naftiko version should be 0.5"); + assertEquals("1.0.0-alpha2", capability.getSpec().getNaftiko(), "Naftiko version should be 1.0.0-alpha2"); } @Test diff --git a/src/test/java/io/naftiko/engine/exposes/mcp/ResourcesPromptsIntegrationTest.java b/src/test/java/io/naftiko/engine/exposes/mcp/ResourcesPromptsIntegrationTest.java index 8725b57c..be17e364 100644 --- a/src/test/java/io/naftiko/engine/exposes/mcp/ResourcesPromptsIntegrationTest.java +++ b/src/test/java/io/naftiko/engine/exposes/mcp/ResourcesPromptsIntegrationTest.java @@ -63,7 +63,7 @@ public void setUp() throws Exception { @Test public void testCapabilityLoaded() { assertNotNull(capability, "Capability should be initialized"); - assertEquals("1.0.0-alpha1", capability.getSpec().getNaftiko(), "Naftiko version should be 0.5"); + assertEquals("1.0.0-alpha2", capability.getSpec().getNaftiko(), "Naftiko version should be 1.0.0-alpha2"); } @Test diff --git a/src/test/java/io/naftiko/engine/exposes/skill/SkillIntegrationTest.java b/src/test/java/io/naftiko/engine/exposes/skill/SkillIntegrationTest.java index 60496cc0..458a2a82 100644 --- a/src/test/java/io/naftiko/engine/exposes/skill/SkillIntegrationTest.java +++ b/src/test/java/io/naftiko/engine/exposes/skill/SkillIntegrationTest.java @@ -78,7 +78,7 @@ static void tearDown() throws Exception { @Test public void testCapabilityLoaded() { assertNotNull(capability.getSpec()); - assertEquals("1.0.0-alpha1", capability.getSpec().getNaftiko()); + assertEquals("1.0.0-alpha2", capability.getSpec().getNaftiko()); } @Test diff --git a/src/test/java/io/naftiko/spec/exposes/SkillServerSpecRoundTripTest.java b/src/test/java/io/naftiko/spec/exposes/SkillServerSpecRoundTripTest.java index 604b951e..f8b7ceb9 100644 --- a/src/test/java/io/naftiko/spec/exposes/SkillServerSpecRoundTripTest.java +++ b/src/test/java/io/naftiko/spec/exposes/SkillServerSpecRoundTripTest.java @@ -49,7 +49,7 @@ public void setUp() throws Exception { @Test public void testNaftikoVersionLoaded() { - assertEquals("1.0.0-alpha1", naftikoSpec.getNaftiko()); + assertEquals("1.0.0-alpha2", naftikoSpec.getNaftiko()); } @Test diff --git a/src/test/resources/avro-capability.yaml b/src/test/resources/avro-capability.yaml index 3041e9b5..e7579841 100644 --- a/src/test/resources/avro-capability.yaml +++ b/src/test/resources/avro-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "Avro Test Capability" description: "Test capability for Avro message decoding from API responses" diff --git a/src/test/resources/baseuri-trailing-slash-capability.yaml b/src/test/resources/baseuri-trailing-slash-capability.yaml index c2e5980a..caf0d2d7 100644 --- a/src/test/resources/baseuri-trailing-slash-capability.yaml +++ b/src/test/resources/baseuri-trailing-slash-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "BaseUri Trailing Slash Regression Test" description: "Capability intentionally using a trailing-slash baseUri to test strict validation" diff --git a/src/test/resources/csv-capability.yaml b/src/test/resources/csv-capability.yaml index 75ded8f1..604e4372 100644 --- a/src/test/resources/csv-capability.yaml +++ b/src/test/resources/csv-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "CSV Test Capability" description: "Test capability for CSV parsing from API responses" @@ -48,7 +48,7 @@ capability: inputParameters: - name: "User-Agent" in: "header" - value: "Naftiko/1.0.0-alpha1" + value: "Naftiko/1.0.0-alpha2" resources: - path: "api/users" diff --git a/src/test/resources/html-capability.yaml b/src/test/resources/html-capability.yaml index 6b432126..3460ff10 100644 --- a/src/test/resources/html-capability.yaml +++ b/src/test/resources/html-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "HTML Test Capability" description: "Test capability for HTML table parsing" diff --git a/src/test/resources/http-body-capability.yaml b/src/test/resources/http-body-capability.yaml index f6a13329..8a286c95 100644 --- a/src/test/resources/http-body-capability.yaml +++ b/src/test/resources/http-body-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" capability: exposes: - type: "rest" diff --git a/src/test/resources/http-forward-value-capability.yaml b/src/test/resources/http-forward-value-capability.yaml index 3231bf49..42fe01d0 100644 --- a/src/test/resources/http-forward-value-capability.yaml +++ b/src/test/resources/http-forward-value-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "HTTP Forward with Value Field Test" description: "Test capability for forward spec with value field supporting Mustache templates" diff --git a/src/test/resources/http-header-query-capability.yaml b/src/test/resources/http-header-query-capability.yaml index 15b61ddb..958b125b 100644 --- a/src/test/resources/http-header-query-capability.yaml +++ b/src/test/resources/http-header-query-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" capability: exposes: - type: "rest" diff --git a/src/test/resources/markdown-capability.yaml b/src/test/resources/markdown-capability.yaml index b5c13f0a..eff43e0f 100644 --- a/src/test/resources/markdown-capability.yaml +++ b/src/test/resources/markdown-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "Markdown Test Capability" description: "Test capability for Markdown parsing" diff --git a/src/test/resources/mcp-capability.yaml b/src/test/resources/mcp-capability.yaml index dd3f3726..8f6aba14 100644 --- a/src/test/resources/mcp-capability.yaml +++ b/src/test/resources/mcp-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "MCP Test Capability" description: "Test capability for MCP Server Adapter deserialization and wiring" diff --git a/src/test/resources/mcp-hints-capability.yaml b/src/test/resources/mcp-hints-capability.yaml index dc0d4522..eda7ff9f 100644 --- a/src/test/resources/mcp-hints-capability.yaml +++ b/src/test/resources/mcp-hints-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "MCP Hints Test Capability" description: "Test capability for MCP tool hints (ToolAnnotations) support" diff --git a/src/test/resources/mcp-resources-prompts-capability.yaml b/src/test/resources/mcp-resources-prompts-capability.yaml index 74c9023c..50bb11af 100644 --- a/src/test/resources/mcp-resources-prompts-capability.yaml +++ b/src/test/resources/mcp-resources-prompts-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "MCP Resources & Prompts Test Capability" description: "Test capability for MCP Server Adapter resources and prompts support" diff --git a/src/test/resources/mcp-stdio-capability.yaml b/src/test/resources/mcp-stdio-capability.yaml index 9a6b1dae..55395325 100644 --- a/src/test/resources/mcp-stdio-capability.yaml +++ b/src/test/resources/mcp-stdio-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "MCP Stdio Test Capability" description: "Test capability for MCP Server Adapter with stdio transport" diff --git a/src/test/resources/nested-object-output-capability.yaml b/src/test/resources/nested-object-output-capability.yaml index 02c08f3e..e6d53806 100644 --- a/src/test/resources/nested-object-output-capability.yaml +++ b/src/test/resources/nested-object-output-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "Nested Object Output Capability" description: "Test fixture for verifying that output mappings correctly resolve nested object diff --git a/src/test/resources/proto-capability.yaml b/src/test/resources/proto-capability.yaml index 6c8f4a70..5d7a67e0 100644 --- a/src/test/resources/proto-capability.yaml +++ b/src/test/resources/proto-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "Protobuf Test Capability" description: "Test capability for Protobuf message decoding from API responses" diff --git a/src/test/resources/register.capability.yml b/src/test/resources/register.capability.yml index 87bcc73a..ebf6b17a 100644 --- a/src/test/resources/register.capability.yml +++ b/src/test/resources/register.capability.yml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "register" description: "Business description of your capability" diff --git a/src/test/resources/skill-capability.yaml b/src/test/resources/skill-capability.yaml index 2b845151..9883beef 100644 --- a/src/test/resources/skill-capability.yaml +++ b/src/test/resources/skill-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "Skill Test Capability" description: "Test capability for Skill Server Adapter deserialization and wiring" diff --git a/src/test/resources/tool-handler-with-mustache-capability.yaml b/src/test/resources/tool-handler-with-mustache-capability.yaml index 9d24f83d..9da6226d 100644 --- a/src/test/resources/tool-handler-with-mustache-capability.yaml +++ b/src/test/resources/tool-handler-with-mustache-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" capability: consumes: diff --git a/src/test/resources/xml-capability.yaml b/src/test/resources/xml-capability.yaml index 7d6446da..aa9997b6 100644 --- a/src/test/resources/xml-capability.yaml +++ b/src/test/resources/xml-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "XML Test Capability" description: "Test capability for XML parsing from API responses" @@ -48,7 +48,7 @@ capability: inputParameters: - name: "User-Agent" in: "header" - value: "Naftiko/1.0.0-alpha1" + value: "Naftiko/1.0.0-alpha2" resources: - path: "api/users" diff --git a/src/test/resources/yaml-capability.yaml b/src/test/resources/yaml-capability.yaml index 89ae001c..15c1d0e0 100644 --- a/src/test/resources/yaml-capability.yaml +++ b/src/test/resources/yaml-capability.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../main/resources/schemas/naftiko-schema.json --- -naftiko: "1.0.0-alpha1" +naftiko: "1.0.0-alpha2" info: label: "YAML Test Capability" description: "Test capability for YAML parsing from API responses" @@ -48,7 +48,7 @@ capability: inputParameters: - name: "User-Agent" in: "header" - value: "Naftiko/1.0.0-alpha1" + value: "Naftiko/1.0.0-2" resources: - path: "api/users"