Skip to content

Commit 14013f0

Browse files
committed
test+style: coverage 套件正向同步 + @author 规范化 + 修环境依赖测试
- 从 1.0.x 正向同步 coverage 记账套件(5 测试 + 2 资源,1277 命令 校准值;Jackson 3 适配),补齐三分支"测试逐字节一致"铁律 - 修复 shouldAcceptVarargsInvoke 环境依赖:executable 指向确定不存在的 二进制,不再依赖"宿主机恰好没装 opencli"(并行会话全局安装后暴露) - @author javadoc 从 markdown 风格统一为 HTML 风格(78 文件,与 1.0.x c400ef5 对齐;纯注释变更零行为影响)
1 parent a127800 commit 14013f0

91 files changed

Lines changed: 1934 additions & 88 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎scripts/generate_opencli_adapter_ids.py‎

100644100755
File mode changed.

‎scripts/generate_opencli_command_tests.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python3
21
"""从 opencli cli-manifest.json 生成 Java SDK 100% 命令覆盖测试(请勿手改生成文件)。
32
43
测试分层(两层互补,非重复):

‎scripts/render-branch-pom.py‎

100644100755
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python3
2-
# -*- coding: utf-8 -*-
32
"""
43
按分支名重写 opencli-java-sdk 的 pom.xml。
54
@@ -18,15 +17,15 @@
1817
import os
1918
import pathlib
2019
import sys
21-
from datetime import date
20+
from datetime import datetime
2221

2322
ROOT = pathlib.Path(__file__).resolve().parents[1]
2423
POM = ROOT / "pom.xml"
2524

2625
def version_date_suffix() -> str:
2726
"""SNAPSHOT: {date}-SNAPSHOT;RELEASE(RELEASE=1): 仅 {date}。"""
2827
raw = os.environ.get("RELEASE_DATE", "").strip()
29-
day = raw if raw else date.today().strftime("%Y%m%d")
28+
day = raw if raw else datetime.now().astimezone().date().strftime("%Y%m%d")
3029
if os.environ.get("RELEASE", "").strip().lower() in ("1", "true", "yes"):
3130
return day
3231
return f"{day}-SNAPSHOT"

‎src/main/java/io/github/easy4j/opencli/OpenCliClient.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* OpenCliResult result = client.chatgpt().ask("hello", null, null);
3838
* }</pre>
3939
*
40-
* @author [@Loong Wan](https://github.com/loong10k)
40+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
4141
* @since 3.0.0
4242
*/public class OpenCliClient {
4343

‎src/main/java/io/github/easy4j/opencli/OpenCliExecutionTarget.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Determines where an OpenCLI command is executed: as a local subprocess or via a remote
55
Agent HTTP API compatible with opencli-admin.
66
*
7-
* @author [@Loong Wan](https://github.com/loong10k)
7+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
88
* @since 3.0.0
99
*/public enum OpenCliExecutionTarget {
1010

‎src/main/java/io/github/easy4j/opencli/OpenCliProperties.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
3333
*
3434
35-
* @author [@Loong Wan](https://github.com/loong10k)
35+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
3636
3737
* @since 3.0.0
3838

‎src/main/java/io/github/easy4j/opencli/adapter/browser/chatgpt/ChatgptOpenCliClient.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
2828
*
2929
30-
* @author [@Loong Wan](https://github.com/loong10k)
30+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
3131
3232
* @since 3.0.0
3333

‎src/main/java/io/github/easy4j/opencli/adapter/browser/claude/ClaudeOpenCliClient.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
2929
*
3030
31-
* @author [@Loong Wan](https://github.com/loong10k)
31+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
3232
3333
* @since 3.0.0
3434

‎src/main/java/io/github/easy4j/opencli/adapter/browser/deepseek/DeepseekOpenCliClient.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
2828
*
2929
30-
* @author [@Loong Wan](https://github.com/loong10k)
30+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
3131
3232
* @since 3.0.0
3333

‎src/main/java/io/github/easy4j/opencli/adapter/browser/gemini/GeminiOpenCliClient.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
2626
*
2727
28-
* @author [@Loong Wan](https://github.com/loong10k)
28+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
2929
3030
* @since 3.0.0
3131

0 commit comments

Comments
 (0)