mirror of
https://github.com/instructkr/claw-code.git
synced 2026-11-29 00:06:13 +08:00
Compare commits
4
Commits
release/v0.1.15
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0492eb3aa5 | ||
|
|
365fa14cf8 | ||
|
|
0210856f6b | ||
|
|
52bbfccb2a |
No files matched your search
@@ -5,6 +5,31 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [0.1.16] - 2026-11-27
|
||||
|
||||
### Fixed
|
||||
|
||||
- Hooks no longer fail with BrokenPipe when a hook exits without reading a stdin payload larger than the pipe buffer (#3410)
|
||||
|
||||
## [0.1.15] - 2026-11-27
|
||||
|
||||
### Added
|
||||
|
||||
- Outbound extra-headers hook for AnthropicClient, OpenAiCompatClient, and ProviderClient to add custom headers to model requests (#3407)
|
||||
|
||||
### Changed
|
||||
|
||||
- Documentation: document WorldRouter OpenAI-compatible gateway setup (d53a0882)
|
||||
- Documentation: document onomeo OpenAI-compatible gateway setup (#3399)
|
||||
- Documentation: document Straitly OpenAI-compatible gateway setup (#3400)
|
||||
- Documentation: document TeamoRouter OpenAI-compatible gateway setup (#3402)
|
||||
- Documentation: document TrustedRouter OpenAI-compatible gateway setup (#3403)
|
||||
- Documentation: rename UberLLM to MartLLM in gateway setup documentation (#3405)
|
||||
|
||||
### Internal/Tests
|
||||
|
||||
- Windows ARM64 bash test timeout hardening (#3406)
|
||||
|
||||
## [0.1.14] - 2026-11-23
|
||||
|
||||
### Fixed
|
||||
|
||||
Generated
+11
-11
@@ -93,7 +93,7 @@ checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
|
||||
|
||||
[[package]]
|
||||
name = "api"
|
||||
version = "0.1.14"
|
||||
version = "0.1.16"
|
||||
dependencies = [
|
||||
"criterion",
|
||||
"reqwest",
|
||||
@@ -478,7 +478,7 @@ checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
|
||||
|
||||
[[package]]
|
||||
name = "claw-analog"
|
||||
version = "0.1.14"
|
||||
version = "0.1.16"
|
||||
dependencies = [
|
||||
"api",
|
||||
"clap",
|
||||
@@ -498,7 +498,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "claw-rag-service"
|
||||
version = "0.1.14"
|
||||
version = "0.1.16"
|
||||
dependencies = [
|
||||
"axum 0.8.9",
|
||||
"blake3",
|
||||
@@ -531,7 +531,7 @@ checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
|
||||
|
||||
[[package]]
|
||||
name = "commands"
|
||||
version = "0.1.14"
|
||||
version = "0.1.16"
|
||||
dependencies = [
|
||||
"plugins",
|
||||
"runtime",
|
||||
@@ -540,7 +540,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "compat-harness"
|
||||
version = "0.1.14"
|
||||
version = "0.1.16"
|
||||
dependencies = [
|
||||
"commands",
|
||||
"runtime",
|
||||
@@ -1568,7 +1568,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "mock-anthropic-service"
|
||||
version = "0.1.14"
|
||||
version = "0.1.16"
|
||||
dependencies = [
|
||||
"api",
|
||||
"serde_json",
|
||||
@@ -1761,7 +1761,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "plugins"
|
||||
version = "0.1.14"
|
||||
version = "0.1.16"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"serde_json",
|
||||
@@ -2136,7 +2136,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "runtime"
|
||||
version = "0.1.14"
|
||||
version = "0.1.16"
|
||||
dependencies = [
|
||||
"getrandom 0.2.17",
|
||||
"glob",
|
||||
@@ -2263,7 +2263,7 @@ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
||||
|
||||
[[package]]
|
||||
name = "rusty-claude-cli"
|
||||
version = "0.1.14"
|
||||
version = "0.1.16"
|
||||
dependencies = [
|
||||
"api",
|
||||
"commands",
|
||||
@@ -2624,7 +2624,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "telemetry"
|
||||
version = "0.1.14"
|
||||
version = "0.1.16"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"serde_json",
|
||||
@@ -2904,7 +2904,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tools"
|
||||
version = "0.1.14"
|
||||
version = "0.1.16"
|
||||
dependencies = [
|
||||
"api",
|
||||
"aspect-core",
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ members = ["crates/*"]
|
||||
resolver = "2"
|
||||
|
||||
[workspace.package]
|
||||
version = "0.1.14"
|
||||
version = "0.1.16"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
publish = false
|
||||
|
||||
@@ -82,7 +82,7 @@ async fn send_message_posts_json_and_parses_response() {
|
||||
);
|
||||
assert_eq!(
|
||||
request.headers.get("user-agent").map(String::as_str),
|
||||
Some("claude-code/0.1.14")
|
||||
Some("claude-code/0.1.16")
|
||||
);
|
||||
assert_eq!(
|
||||
request.headers.get("anthropic-beta").map(String::as_str),
|
||||
|
||||
@@ -802,7 +802,16 @@ impl CommandWithStdin {
|
||||
) -> std::io::Result<CommandExecution> {
|
||||
let mut child = self.command.spawn()?;
|
||||
if let Some(mut child_stdin) = child.stdin.take() {
|
||||
child_stdin.write_all(stdin)?;
|
||||
// A hook that exits without reading all of its stdin closes the pipe
|
||||
// while the payload is still being written, which fails with
|
||||
// `BrokenPipe`. That is not a hook failure: its exit status and
|
||||
// output are still collected below. Same handling as the plugin hook
|
||||
// runner in `plugins/src/hooks.rs`.
|
||||
match child_stdin.write_all(stdin) {
|
||||
Ok(()) => {}
|
||||
Err(error) if error.kind() == std::io::ErrorKind::BrokenPipe => {}
|
||||
Err(error) => return Err(error),
|
||||
}
|
||||
}
|
||||
|
||||
loop {
|
||||
@@ -860,6 +869,24 @@ mod tests {
|
||||
assert_eq!(result, HookRunResult::allow(vec!["pre ok".to_string()]));
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn hook_that_ignores_stdin_is_not_failed_by_a_payload_larger_than_the_pipe() {
|
||||
// The hook never reads stdin and exits while the runner is still writing
|
||||
// a payload that does not fit in the pipe buffer, so the write fails with
|
||||
// `BrokenPipe`. The hook itself succeeded and must not be reported as failed.
|
||||
let runner = HookRunner::new(RuntimeHookConfig::new(
|
||||
vec![crate::test_hook("pre ok", "", 0, 0)],
|
||||
Vec::new(),
|
||||
Vec::new(),
|
||||
));
|
||||
let tool_input = serde_json::json!({ "content": "x".repeat(70_000) }).to_string();
|
||||
|
||||
let result = runner.run_pre_tool_use("write_file", &tool_input);
|
||||
|
||||
assert_eq!(result, HookRunResult::allow(vec!["pre ok".to_string()]));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn object_style_hook_matchers_filter_runtime_execution() {
|
||||
let runner = HookRunner::new(RuntimeHookConfig::from_hook_commands(
|
||||
|
||||
Reference in new issue
Block a user