Skip to content

Commit 7fa8ae6

Browse files
committed
release: prepare 1.0.2-SNAPSHOT
Change-Id: Icd793b965a03629171a10399639555e3a9e0e4e9
1 parent 324c6bf commit 7fa8ae6

8 files changed

Lines changed: 18 additions & 15 deletions

File tree

‎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.1";
27+
public static final String VERSION = "1.0.2-SNAPSHOT";
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.1; java/17.0.1; platform/Mac OS X}
38+
* <p>Example: {@code agentscope-java/1.0.2-SNAPSHOT; 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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ public Mono<McpClientWrapper> buildAsync() {
206206

207207
McpSchema.Implementation clientInfo =
208208
new McpSchema.Implementation(
209-
"agentscope-java", "AgentScope Java Framework", "1.0.1");
209+
"agentscope-java",
210+
"AgentScope Java Framework",
211+
"1.0.2-SNAPSHOT");
210212

211213
McpSchema.ClientCapabilities clientCapabilities =
212214
McpSchema.ClientCapabilities.builder().build();
@@ -237,7 +239,7 @@ public McpClientWrapper buildSync() {
237239

238240
McpSchema.Implementation clientInfo =
239241
new McpSchema.Implementation(
240-
"agentscope-java", "AgentScope Java Framework", "1.0.1");
242+
"agentscope-java", "AgentScope Java Framework", "1.0.2-SNAPSHOT");
241243

242244
McpSchema.ClientCapabilities clientCapabilities =
243245
McpSchema.ClientCapabilities.builder().build();

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ 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("1.0.1", Version.VERSION, "VERSION should match current version");
33+
Assertions.assertEquals(
34+
"1.0.2-SNAPSHOT", Version.VERSION, "VERSION should match current version");
3435
}
3536

3637
@Test
@@ -98,7 +99,7 @@ void testGetUserAgent_Consistency() {
9899
void testGetUserAgent_ExampleFormat() {
99100
String userAgent = Version.getUserAgent();
100101

101-
// Example: agentscope-java/1.0.1; java/17.0.1; platform/Mac OS X
102+
// Example: agentscope-java/1.0.2-SNAPSHOT; java/17.0.1; platform/Mac OS X
102103
// Verify matches expected pattern (relaxed check for different environments)
103104
String pattern = "^agentscope-java/.+; java/[0-9.]+; platform/.+$";
104105
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.1");
60+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2-SNAPSHOT");
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.1");
106+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2-SNAPSHOT");
107107
McpSchema.InitializeResult initResult =
108108
new McpSchema.InitializeResult(
109109
"1.0",
@@ -202,7 +202,7 @@ void testClose_Success() {
202202

203203
private void setupSuccessfulInitialization() {
204204
McpSchema.Implementation serverInfo =
205-
new McpSchema.Implementation("TestServer", "Test Server", "1.0.1");
205+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2-SNAPSHOT");
206206
McpSchema.InitializeResult initResult =
207207
new McpSchema.InitializeResult(
208208
"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.1");
383+
headers.put("X-Client-Version", "1.0.2-SNAPSHOT");
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.1");
61+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2-SNAPSHOT");
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.1");
107+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2-SNAPSHOT");
108108
McpSchema.InitializeResult initResult =
109109
new McpSchema.InitializeResult(
110110
"1.0",
@@ -316,7 +316,7 @@ void testCallTool_WithNullArguments() {
316316

317317
private void setupSuccessfulInitialization() {
318318
McpSchema.Implementation serverInfo =
319-
new McpSchema.Implementation("TestServer", "Test Server", "1.0.1");
319+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2-SNAPSHOT");
320320
McpSchema.InitializeResult initResult =
321321
new McpSchema.InitializeResult(
322322
"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.1</revision>
63+
<revision>1.0.2-SNAPSHOT</revision>
6464
<java.version>17</java.version>
6565
<spotless.version>2.46.1</spotless.version>
6666
<maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.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.1</revision>
30+
<revision>1.0.2-SNAPSHOT</revision>
3131
<java.version>17</java.version>
3232
<maven.compiler.source>17</maven.compiler.source>
3333
<maven.compiler.target>17</maven.compiler.target>

0 commit comments

Comments
 (0)