Skip to content

Commit d73114a

Browse files
authored
Merge pull request #792 from smallcloudai/dev
Dev
2 parents e393a5e + dbaf7e3 commit d73114a

280 files changed

Lines changed: 14771 additions & 9304 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.

docs/astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ export default defineConfig({
377377
'./src/styles/index.css',
378378
],
379379
editLink: {
380-
baseUrl: 'https://github.com/smallcloudai/web_docs_refact_ai/edit/main/',
380+
baseUrl: 'https://github.com/smallcloudai/refact/edit/main/docs/',
381381
},
382382
lastUpdated: true,
383383
}),

refact-agent/engine/Cargo.toml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ lto = true
66

77
[package]
88
name = "refact-lsp"
9-
version = "0.10.19"
9+
version = "0.10.20"
1010
edition = "2021"
1111
build = "build.rs"
1212
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1313

14-
[features]
15-
default = ["vecdb"]
16-
vecdb = ["sqlite-vec"]
17-
1814
[build-dependencies]
19-
shadow-rs = "0.36.0"
15+
shadow-rs = "1.1.0"
16+
17+
[target.'cfg(windows)'.dependencies]
18+
winreg = "0.55.0"
2019

2120
[dependencies]
2221
astral-tokio-tar = "0.5.2"
@@ -28,9 +27,10 @@ backtrace = "0.3.71"
2827
base64 = "0.22.1"
2928
chrono = { version = "0.4.31", features = ["serde"] }
3029
diff = "0.1.13"
30+
dunce = "1.0.5"
3131
dyn_partial_eq = "=0.1.2"
3232
futures = "0.3"
33-
git2 = "0.19.0"
33+
git2 = "0.20.2"
3434
glob = "0.3.1"
3535
hashbrown = "0.15.2"
3636
headless_chrome = "1.0.16"
@@ -46,6 +46,7 @@ log = "0.4.20"
4646
md5 = "0.7"
4747
notify = { version = "8.0.0", features = ["serde"] }
4848
parking_lot = { version = "0.12.1", features = ["serde"] }
49+
pnet_datalink = "0.35.0"
4950
process-wrap = { version = "8.0.2", features = ["tokio1"] }
5051
rand = "0.8.5"
5152
rayon = "1.8.0"
@@ -62,21 +63,23 @@ serde_cbor = "0.11.2"
6263
serde_json = { version = "1", features = ["preserve_order"] }
6364
serde_yaml = "0.9.31"
6465
# all features = ["compression", "docs", "event_log", "failpoints", "io_uring", "lock_free_delays", "measure_allocs", "miri_optimizations", "mutex", "no_inline", "no_logs", "pretty_backtrace", "testing"]
65-
shadow-rs = { version = "0.36.0", features = [], default-features = false }
66+
shadow-rs = { version = "1.1.0", features = [], default-features = false }
6667
sha2 = "0.10.8"
6768
shell-words = "1.1.0"
6869
shell-escape = "0.1.5"
6970
select = "0.6.0"
7071
similar = "2.3.0"
7172
sled = { version = "0.34", default-features = false, features = [] }
72-
sqlite-vec = { version = "0.1.6", optional = true }
73+
sqlite-vec = { version = "0.1.6" }
74+
strip-ansi-escapes = "0.2.1"
7375
strsim = "0.11.1"
7476
structopt = "0.3"
7577
tempfile = "3.8.1"
7678
tokenizers = "0.21.0"
7779
tokio = { version = "1.43.0", features = ["fs", "io-std", "io-util", "macros", "rt-multi-thread", "signal", "process"] }
7880
tokio-rusqlite = "0.5.0"
7981
tokio-util = { version = "0.7.12", features = ["compat"] }
82+
tokio-tungstenite = "0.21.0"
8083
tower = { version = "0.4", features = ["full"] }
8184
tower-http = { version = "0.4.0", features = ["cors"] }
8285
tower-lsp = "0.20"
@@ -97,8 +100,6 @@ walkdir = "2.3"
97100
which = "7.0.1"
98101
zerocopy = "0.8.14"
99102

100-
# There you can use a local copy:
101-
mcp_client_rs = { git = "https://github.com/smallcloudai/mcp_client_rust.git" }
102-
#mcp_client_rs = { path = "../../../mcp_client_rust" }
103-
104-
103+
# There you can use a local copy
104+
# rmcp = { path = "../../../rust-sdk/crates/rmcp/", "features" = ["client", "transport-child-process", "transport-sse"] }
105+
rmcp = { git = "https://github.com/smallcloudai/rust-sdk", branch = "main", features = ["client", "transport-child-process", "transport-sse-client", "reqwest"] }

refact-agent/engine/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ Installable by the end user:
6363

6464
- [x] Code completion with RAG
6565
- [x] Chat with tool usage
66-
- [x] definition() references() tools
67-
- [x] vecdb search() with scope (semantic search)
68-
- [x] regex_search() with scope (pattern matching)
66+
- [x] search_symbol_definition() search_symbol_usages() tools
67+
- [x] search_semantic() with scope (semantic search)
68+
- [x] search_pattern() with scope (pattern matching)
6969
- [x] @file @tree @web @definition @references @search mentions in chat
7070
- [x] locate() uses test-time compute to find good project cross-section
7171
- [x] Latest gpt-4o gpt-4o-mini
39.7 KB
Loading
39.7 KB
Loading
39.7 KB
Loading

refact-agent/engine/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

2-
fn main() -> shadow_rs::SdResult<()> {
3-
shadow_rs::new()
2+
fn main() {
3+
shadow_rs::ShadowBuilder::builder().build().unwrap();
44
}

refact-agent/engine/python_binding_and_cmdline/refact/chat_client.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,15 @@ async def get_tools():
159159
return json.loads(text)
160160
tools = None
161161
tools = await get_tools()
162+
tools = [
163+
{
164+
"function": {"name": tool_entry["spec"]["name"]},
165+
"type": "function",
166+
}
167+
for group in tools
168+
for tool_entry in group["tools"]
169+
if tool_entry["enabled"]
170+
]
162171
if tools_turn_on is not None:
163172
tools = [x for x in tools if x["type"] == "function" and x["function"]["name"] in tools_turn_on]
164173
return tools
@@ -548,7 +557,10 @@ def print_messages(
548557

549558
def con(x):
550559
if console:
551-
console.print(x)
560+
try:
561+
console.print(x)
562+
except:
563+
print(x)
552564

553565
def _is_tool_call(m: Message) -> bool:
554566
return m.tool_calls is not None and len(m.tool_calls) > 0

refact-agent/engine/python_binding_and_cmdline/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_tag(self) -> Tuple[str, str, str]:
1717
return (
1818
self.python_tag,
1919
"none",
20-
os.environ.get('WHL_TAG', re.sub("[^\w\d]+", "_", sysconfig.get_platform().replace('.', '_'), re.UNICODE))
20+
os.environ.get('WHL_TAG', re.sub("[^\w\d]+", "_", sysconfig.get_platform().replace('.', '_'), flags=re.UNICODE))
2121
)
2222

2323
cmdclass = {

0 commit comments

Comments
 (0)