Skip to content

Commit 0bae8dc

Browse files
committed
release: 1.0.6
Change-Id: I28291839e2dc021d060fd376ad480cb10820b85d
1 parent edc06b4 commit 0bae8dc

File tree

9 files changed

+18
-21
lines changed

9 files changed

+18
-21
lines changed

agentscope-core/src/main/java/io/agentscope/core/Version.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
public final class Version {
2525

2626
/** AgentScope Java version */
27-
public static final String VERSION = "1.0.6-SNAPSHOT";
27+
public static final String VERSION = "1.0.6";
2828

2929
private Version() {
3030
// Utility class - prevent instantiation
@@ -35,7 +35,7 @@ private Version() {
3535
*
3636
* <p>Format: {@code agentscope-java/{version}; java/{java_version}; platform/{os}}
3737
*
38-
* <p>Example: {@code agentscope-java/1.0.6-SNAPSHOT; java/17.0.1; platform/Mac OS X}
38+
* <p>Example: {@code agentscope-java/1.0.6; java/17.0.1; platform/Mac OS X}
3939
*
4040
* @return unified User-Agent string
4141
*/

agentscope-core/src/main/java/io/agentscope/core/tool/mcp/McpClientBuilder.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,7 @@ public Mono<McpClientWrapper> buildAsync() {
246246

247247
McpSchema.Implementation clientInfo =
248248
new McpSchema.Implementation(
249-
"agentscope-java",
250-
"AgentScope Java Framework",
251-
"1.0.6-SNAPSHOT");
249+
"agentscope-java", "AgentScope Java Framework", "1.0.6");
252250

253251
McpSchema.ClientCapabilities clientCapabilities =
254252
McpSchema.ClientCapabilities.builder().build();
@@ -279,7 +277,7 @@ public McpClientWrapper buildSync() {
279277

280278
McpSchema.Implementation clientInfo =
281279
new McpSchema.Implementation(
282-
"agentscope-java", "AgentScope Java Framework", "1.0.6-SNAPSHOT");
280+
"agentscope-java", "AgentScope Java Framework", "1.0.6");
283281

284282
McpSchema.ClientCapabilities clientCapabilities =
285283
McpSchema.ClientCapabilities.builder().build();

agentscope-core/src/test/java/io/agentscope/core/VersionTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ void testVersionConstant() {
3030
// Verify version constant is set
3131
Assertions.assertNotNull(Version.VERSION, "VERSION constant should not be null");
3232
Assertions.assertFalse(Version.VERSION.isEmpty(), "VERSION constant should not be empty");
33-
Assertions.assertEquals(
34-
"1.0.6-SNAPSHOT", Version.VERSION, "VERSION should match current version");
33+
Assertions.assertEquals("1.0.6", Version.VERSION, "VERSION should match current version");
3534
}
3635

3736
@Test
@@ -99,7 +98,7 @@ void testGetUserAgent_Consistency() {
9998
void testGetUserAgent_ExampleFormat() {
10099
String userAgent = Version.getUserAgent();
101100

102-
// Example: agentscope-java/1.0.6-SNAPSHOT; java/17.0.1; platform/Mac OS X
101+
// Example: agentscope-java/1.0.6; java/17.0.1; platform/Mac OS X
103102
// Verify matches expected pattern (relaxed check for different environments)
104103
String pattern = "^agentscope-java/.+; java/[0-9.]+; platform/.+$";
105104
Assertions.assertTrue(

agentscope-core/src/test/java/io/agentscope/core/tool/mcp/McpAsyncClientWrapperTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void testConstructor() {
5757
void testInitialize_Success() {
5858
// Mock initialization
5959
McpSchema.Implementation serverInfo =
60-
new McpSchema.Implementation("TestServer", "Test Server", "1.0.6-SNAPSHOT");
60+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.6");
6161
McpSchema.InitializeResult initResult =
6262
new McpSchema.InitializeResult(
6363
"1.0",
@@ -103,7 +103,7 @@ void testInitialize_Success() {
103103
@Test
104104
void testInitialize_AlreadyInitialized() {
105105
McpSchema.Implementation serverInfo =
106-
new McpSchema.Implementation("TestServer", "Test Server", "1.0.6-SNAPSHOT");
106+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.6");
107107
McpSchema.InitializeResult initResult =
108108
new McpSchema.InitializeResult(
109109
"1.0",
@@ -205,7 +205,7 @@ void testClose_Success() {
205205

206206
private void setupSuccessfulInitialization() {
207207
McpSchema.Implementation serverInfo =
208-
new McpSchema.Implementation("TestServer", "Test Server", "1.0.6-SNAPSHOT");
208+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.6");
209209
McpSchema.InitializeResult initResult =
210210
new McpSchema.InitializeResult(
211211
"1.0",

agentscope-core/src/test/java/io/agentscope/core/tool/mcp/McpClientBuilderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ void testComplexConfiguration() {
380380
void testSseTransport_WithCompleteConfiguration() {
381381
Map<String, String> headers = new HashMap<>();
382382
headers.put("Authorization", "Bearer token");
383-
headers.put("X-Client-Version", "1.0.6-SNAPSHOT");
383+
headers.put("X-Client-Version", "1.0.6");
384384

385385
McpClientBuilder builder =
386386
McpClientBuilder.create("full-sse-client")

agentscope-core/src/test/java/io/agentscope/core/tool/mcp/McpSyncClientWrapperTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void testConstructor() {
5858
void testInitialize_Success() {
5959
// Mock initialization with correct constructors
6060
McpSchema.Implementation serverInfo =
61-
new McpSchema.Implementation("TestServer", "Test Server", "1.0.6-SNAPSHOT");
61+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.6");
6262
McpSchema.InitializeResult initResult =
6363
new McpSchema.InitializeResult(
6464
"1.0",
@@ -104,7 +104,7 @@ void testInitialize_Success() {
104104
@Test
105105
void testInitialize_AlreadyInitialized() {
106106
McpSchema.Implementation serverInfo =
107-
new McpSchema.Implementation("TestServer", "Test Server", "1.0.6-SNAPSHOT");
107+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.6");
108108
McpSchema.InitializeResult initResult =
109109
new McpSchema.InitializeResult(
110110
"1.0",
@@ -325,7 +325,7 @@ void testCallTool_WithNullArguments() {
325325

326326
private void setupSuccessfulInitialization() {
327327
McpSchema.Implementation serverInfo =
328-
new McpSchema.Implementation("TestServer", "Test Server", "1.0.6-SNAPSHOT");
328+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.6");
329329
McpSchema.InitializeResult initResult =
330330
new McpSchema.InitializeResult(
331331
"1.0",

agentscope-dependencies-bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
</developers>
6161

6262
<properties>
63-
<revision>1.0.6-SNAPSHOT</revision>
63+
<revision>1.0.6</revision>
6464
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6565
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
6666
<java.version>17</java.version>

agentscope-distribution/agentscope-bom/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
</developers>
6060

6161
<properties>
62-
<revision>1.0.6-SNAPSHOT</revision>
62+
<revision>1.0.6</revision>
6363
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6464
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
6565
<java.version>17</java.version>
@@ -240,14 +240,14 @@
240240
<artifactId>agentscope-quarkus-extension-deployment</artifactId>
241241
<version>${project.version}</version>
242242
</dependency>
243-
243+
244244
<!-- AgentScope Nacos Extension -->
245245
<dependency>
246246
<groupId>io.agentscope</groupId>
247247
<artifactId>agentscope-extensions-nacos-a2a</artifactId>
248248
<version>${project.version}</version>
249249
</dependency>
250-
250+
251251
<!-- AgentScope Nacos Spring Boot Starter -->
252252
<dependency>
253253
<groupId>io.agentscope</groupId>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<name>AgentScope Java - Parent</name>
2828

2929
<properties>
30-
<revision>1.0.6-SNAPSHOT</revision>
30+
<revision>1.0.6</revision>
3131
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3232
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
3333
<java.version>17</java.version>

0 commit comments

Comments
 (0)