Skip to content

Commit 7cf2058

Browse files
committed
release: prepare v1.7.1
- add Chinese intent classification examples - always use the main LLM client for low-confidence intent routing - align SDK package versions for the 1.7.1 release
1 parent 4628335 commit 7cf2058

9 files changed

Lines changed: 44 additions & 42 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "a3s-code-core"
3-
version = "1.7.0"
3+
version = "1.7.1"
44
edition = "2021"
55
authors = ["A3S Lab Team"]
66
license = "MIT"

core/prompts/intent_classify_system.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,10 @@ Examples:
2222
- "Verify that this code works" → Verification
2323
- "Review this PR" → CodeReview
2424
- "Implement user login" → GeneralPurpose
25+
- "帮我规划一下这个项目" → Plan
26+
- "帮我探索一下当前工作区" → Explore
27+
- "帮我验证登录流程是否正确" → Verification
28+
- "帮我审查这段代码" → CodeReview
29+
- "帮我实现这个功能" → GeneralPurpose
30+
- "帮我找一下用户模型的代码在哪里" → Explore
31+
- "帮我检查一下这个 bug" → Verification

core/src/agent.rs

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,25 +1639,20 @@ impl AgentLoop {
16391639
// Auto mode: use keyword confidence first, fallback to LLM classification
16401640
let (style, confidence) = AgentStyle::detect_with_confidence(prompt);
16411641
if confidence == DetectionConfidence::Low {
1642-
// Low confidence — use LLM classification if available
1643-
if let Some(ref llm) = self.config.llm_client {
1644-
match AgentStyle::detect_with_llm(llm.as_ref(), prompt).await {
1645-
Ok(classified_style) => {
1646-
tracing::debug!(
1647-
intent.classification = ?classified_style,
1648-
intent.source = "llm",
1649-
"Intent classified via LLM"
1650-
);
1651-
classified_style.requires_planning()
1652-
}
1653-
Err(e) => {
1654-
tracing::warn!(error = %e, "LLM intent classification failed, using keyword detection");
1655-
style.requires_planning()
1656-
}
1642+
// Low confidence — use LLM classification
1643+
match AgentStyle::detect_with_llm(self.llm_client.as_ref(), prompt).await {
1644+
Ok(classified_style) => {
1645+
tracing::debug!(
1646+
intent.classification = ?classified_style,
1647+
intent.source = "llm",
1648+
"Intent classified via LLM"
1649+
);
1650+
classified_style.requires_planning()
1651+
}
1652+
Err(e) => {
1653+
tracing::warn!(error = %e, "LLM intent classification failed, using keyword detection");
1654+
style.requires_planning()
16571655
}
1658-
} else {
1659-
// No LLM client available — use keyword detection
1660-
style.requires_planning()
16611656
}
16621657
} else {
16631658
// High/Medium confidence — use keyword detection directly

sdk/node/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "a3s-code-node"
3-
version = "1.7.0"
3+
version = "1.7.1"
44
edition = "2021"
55
authors = ["A3S Lab Team"]
66
license = "MIT"
@@ -11,7 +11,7 @@ description = "A3S Code Node.js bindings - Native addon via napi-rs"
1111
crate-type = ["cdylib"]
1212

1313
[dependencies]
14-
a3s-code-core = { version = "1.6.0", path = "../../core", features = ["ahp"] }
14+
a3s-code-core = { version = "1.7.1", path = "../../core", features = ["ahp"] }
1515
napi = { version = "2", features = ["async", "napi6", "serde-json"] }
1616
napi-derive = "2"
1717
tokio = { version = "1.35", features = ["full"] }

sdk/node/package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/node/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@a3s-lab/code",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"description": "A3S Code - Native AI coding agent library for Node.js",
55
"main": "index.js",
66
"types": "index.d.ts",
@@ -46,12 +46,12 @@
4646
"test:ocr-provider-example": "node examples/test-document-ocr-provider.js"
4747
},
4848
"optionalDependencies": {
49-
"@a3s-lab/code-darwin-arm64": "1.7.0",
50-
"@a3s-lab/code-darwin-x64": "1.7.0",
51-
"@a3s-lab/code-linux-x64-gnu": "1.7.0",
52-
"@a3s-lab/code-linux-x64-musl": "1.7.0",
53-
"@a3s-lab/code-linux-arm64-gnu": "1.7.0",
54-
"@a3s-lab/code-linux-arm64-musl": "1.7.0",
55-
"@a3s-lab/code-win32-x64-msvc": "1.7.0"
49+
"@a3s-lab/code-darwin-arm64": "1.7.1",
50+
"@a3s-lab/code-darwin-x64": "1.7.1",
51+
"@a3s-lab/code-linux-x64-gnu": "1.7.1",
52+
"@a3s-lab/code-linux-x64-musl": "1.7.1",
53+
"@a3s-lab/code-linux-arm64-gnu": "1.7.1",
54+
"@a3s-lab/code-linux-arm64-musl": "1.7.1",
55+
"@a3s-lab/code-win32-x64-msvc": "1.7.1"
5656
}
5757
}

sdk/python/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "a3s-code-py"
3-
version = "1.7.0"
3+
version = "1.7.1"
44
edition = "2021"
55
authors = ["A3S Lab Team"]
66
license = "MIT"
@@ -12,7 +12,7 @@ name = "a3s_code"
1212
crate-type = ["cdylib"]
1313

1414
[dependencies]
15-
a3s-code-core = { version = "1.7.0", path = "../../core", features = ["ahp"] }
15+
a3s-code-core = { version = "1.7.1", path = "../../core", features = ["ahp"] }
1616
pyo3 = "0.23"
1717
tokio = { version = "1.35", features = ["full"] }
1818
serde_json = "1.0"

sdk/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "maturin"
44

55
[project]
66
name = "a3s-code"
7-
version = "1.7.0"
7+
version = "1.7.1"
88
description = "A3S Code - Native Python bindings for the AI coding agent"
99
readme = "README.md"
1010
license = {text = "MIT"}

0 commit comments

Comments
 (0)