Skip to content

Commit 6c707d9

Browse files
committed
release: 1.0.7
Change-Id: I1195c3e4319054628b8c3db50023a2eefbc83efd
1 parent 0cdd7c9 commit 6c707d9

File tree

9 files changed

+16
-19
lines changed

9 files changed

+16
-19
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.7-SNAPSHOT";
27+
public static final String VERSION = "1.0.7";
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.7-SNAPSHOT; java/17.0.1; platform/Mac OS X}
38+
* <p>Example: {@code agentscope-java/1.0.7; 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.7-SNAPSHOT");
249+
"agentscope-java", "AgentScope Java Framework", "1.0.7");
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.7-SNAPSHOT");
280+
"agentscope-java", "AgentScope Java Framework", "1.0.7");
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.7-SNAPSHOT", Version.VERSION, "VERSION should match current version");
33+
Assertions.assertEquals("1.0.7", 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.7-SNAPSHOT; java/17.0.1; platform/Mac OS X
101+
// Example: agentscope-java/1.0.7; 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.7-SNAPSHOT");
60+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.7");
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.7-SNAPSHOT");
106+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.7");
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.7-SNAPSHOT");
208+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.7");
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.7-SNAPSHOT");
383+
headers.put("X-Client-Version", "1.0.7");
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.7-SNAPSHOT");
61+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.7");
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.7-SNAPSHOT");
107+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.7");
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.7-SNAPSHOT");
328+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.7");
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.7-SNAPSHOT</revision>
63+
<revision>1.0.7</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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
</developers>
6060

6161
<properties>
62-
<revision>1.0.7-SNAPSHOT</revision>
62+
<revision>1.0.7</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>

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.7-SNAPSHOT</revision>
30+
<revision>1.0.7</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)