ace-herdr 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/ace/herdr/native_source/guarded-prompt.patch +90 -11
- data/lib/ace/herdr/native_source/selection.json +4 -4
- data/lib/ace/herdr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 34cafec7d5b1076108a40ea6d8e13a4cc3080fc2c46dcf7a9d16f99e9ed2f6a0
|
|
4
|
+
data.tar.gz: dc53fb2035bf16379f5d5709736dad1db1e623df6d50be0793d8f6fb04b94613
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ca77bbdb7381472639c809b0273fe24378eb94a7e3f95defba964a0b390063aa33ea019a7c1b12ed7021ab8d3bbe04a30a128d6a6fb8f70751880980cecc73b
|
|
7
|
+
data.tar.gz: 605c6aebfb87035502223311f8525f4d540d193eed47e99533ddbd79b210dea135235b6d17cad6975e7375bc84dea0abefa8733f58e22e4c4ed1107ad45d52c7
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.11.1] - 2026-11-12
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Preserve child session, remote and help arguments when launching with an explicit environment.
|
|
15
|
+
|
|
10
16
|
## [0.11.0] - 2026-11-11
|
|
11
17
|
|
|
12
18
|
### Added
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
From 7a2e78b4e92d2b694bd8a06c1ef4943915c399b2 Mon Sep 17 00:00:00 2001
|
|
2
2
|
From: Miguel <mc@cs3b.com>
|
|
3
3
|
Date: Wed, 7 Oct 2026 00:43:20 +0100
|
|
4
|
-
Subject: [PATCH 1/
|
|
4
|
+
Subject: [PATCH 1/7] feat: guard and permanently drain original-terminal input
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
docs/next/api/herdr-api.schema.json | 338 ++++++
|
|
@@ -3495,10 +3495,10 @@ index 9171340..a971ef6 100644
|
|
|
3495
3495
|
2.54.0 (Apple Git-157)
|
|
3496
3496
|
|
|
3497
3497
|
|
|
3498
|
-
From
|
|
3498
|
+
From 5d98e178453958691f17b58d26fd20b51a985cd7 Mon Sep 17 00:00:00 2001
|
|
3499
3499
|
From: Miguel <mc@cs3b.com>
|
|
3500
3500
|
Date: Wed, 4 Nov 2026 02:57:12 +0000
|
|
3501
|
-
Subject: [PATCH 2/
|
|
3501
|
+
Subject: [PATCH 2/7] fix: validate Pi report acknowledgements before accepting
|
|
3502
3502
|
delivery
|
|
3503
3503
|
|
|
3504
3504
|
---
|
|
@@ -3644,10 +3644,10 @@ index 673225a..546289d 100644
|
|
|
3644
3644
|
2.54.0 (Apple Git-157)
|
|
3645
3645
|
|
|
3646
3646
|
|
|
3647
|
-
From
|
|
3647
|
+
From b6d67f318c260b3c0efcbef89bf1034544852776 Mon Sep 17 00:00:00 2001
|
|
3648
3648
|
From: Miguel <mc@cs3b.com>
|
|
3649
3649
|
Date: Wed, 4 Nov 2026 04:17:44 +0000
|
|
3650
|
-
Subject: [PATCH 3/
|
|
3650
|
+
Subject: [PATCH 3/7] fix: resolve agent queries by immutable terminal identity
|
|
3651
3651
|
|
|
3652
3652
|
---
|
|
3653
3653
|
src/app/terminal_targets.rs | 35 +++++++++++++++++++++++++++++++++++
|
|
@@ -3710,10 +3710,10 @@ index 658eeaa..003c30c 100644
|
|
|
3710
3710
|
2.54.0 (Apple Git-157)
|
|
3711
3711
|
|
|
3712
3712
|
|
|
3713
|
-
From
|
|
3713
|
+
From 93e768dcacbfd63171957935ae9e2637a91689e6 Mon Sep 17 00:00:00 2001
|
|
3714
3714
|
From: Miguel <mc@cs3b.com>
|
|
3715
3715
|
Date: Tue, 10 Nov 2026 22:59:15 +0000
|
|
3716
|
-
Subject: [PATCH 4/
|
|
3716
|
+
Subject: [PATCH 4/7] feat: launch ordinary agents with private explicit
|
|
3717
3717
|
environments
|
|
3718
3718
|
|
|
3719
3719
|
---
|
|
@@ -4801,10 +4801,10 @@ index 0000000..afe8c3a
|
|
|
4801
4801
|
2.54.0 (Apple Git-157)
|
|
4802
4802
|
|
|
4803
4803
|
|
|
4804
|
-
From
|
|
4804
|
+
From 83939be994e8b911140adbb9ba64aa4858cce96b Mon Sep 17 00:00:00 2001
|
|
4805
4805
|
From: Miguel <mc@cs3b.com>
|
|
4806
4806
|
Date: Tue, 10 Nov 2026 23:06:09 +0000
|
|
4807
|
-
Subject: [PATCH 5/
|
|
4807
|
+
Subject: [PATCH 5/7] fix: require fresh environments on cold agent restoration
|
|
4808
4808
|
|
|
4809
4809
|
---
|
|
4810
4810
|
src/app/agents.rs | 3 ++
|
|
@@ -4916,10 +4916,10 @@ index b6d6187..66ae240 100644
|
|
|
4916
4916
|
2.54.0 (Apple Git-157)
|
|
4917
4917
|
|
|
4918
4918
|
|
|
4919
|
-
From
|
|
4919
|
+
From f475b86b1fc0a72103fbdf5cc0aba7dfc54cdcb4 Mon Sep 17 00:00:00 2001
|
|
4920
4920
|
From: Miguel <mc@cs3b.com>
|
|
4921
4921
|
Date: Tue, 10 Nov 2026 23:16:46 +0000
|
|
4922
|
-
Subject: [PATCH 6/
|
|
4922
|
+
Subject: [PATCH 6/7] fix: clean ordinary session credentials when agents exit
|
|
4923
4923
|
|
|
4924
4924
|
---
|
|
4925
4925
|
src/persist/restore.rs | 13 +--
|
|
@@ -5267,3 +5267,82 @@ index afe8c3a..9dedb83 100644
|
|
|
5267
5267
|
--
|
|
5268
5268
|
2.54.0 (Apple Git-157)
|
|
5269
5269
|
|
|
5270
|
+
|
|
5271
|
+
From 5176d899a567985490682c37eb7f0198eab159b0 Mon Sep 17 00:00:00 2001
|
|
5272
|
+
From: Miguel <mc@cs3b.com>
|
|
5273
|
+
Date: Wed, 11 Nov 2026 23:46:22 +0000
|
|
5274
|
+
Subject: [PATCH 7/7] fix: preserve child options in explicit environment
|
|
5275
|
+
launcher
|
|
5276
|
+
|
|
5277
|
+
---
|
|
5278
|
+
src/main.rs | 9 +++++++++
|
|
5279
|
+
tests/process_environment.rs | 36 ++++++++++++++++++++++++++++++++++++
|
|
5280
|
+
2 files changed, 45 insertions(+)
|
|
5281
|
+
|
|
5282
|
+
diff --git a/src/main.rs b/src/main.rs
|
|
5283
|
+
index 45a6409..eb5a40d 100644
|
|
5284
|
+
--- a/src/main.rs
|
|
5285
|
+
+++ b/src/main.rs
|
|
5286
|
+
@@ -512,6 +512,15 @@ fn main() -> io::Result<()> {
|
|
5287
|
+
std::process::exit(2);
|
|
5288
|
+
}
|
|
5289
|
+
};
|
|
5290
|
+
+ // Everything after exec-env's executable belongs to the child, including
|
|
5291
|
+
+ // --session, --remote and --help. Do not parse it as Herdr options.
|
|
5292
|
+
+ if raw_args.get(1).map(String::as_str) == Some("agent")
|
|
5293
|
+
+ && raw_args.get(2).map(String::as_str) == Some("exec-env")
|
|
5294
|
+
+ {
|
|
5295
|
+
+ return finish_cli(
|
|
5296
|
+
+ platform::process_environment::exec(&raw_args[3..]).map(cli::CommandOutcome::Handled),
|
|
5297
|
+
+ );
|
|
5298
|
+
+ }
|
|
5299
|
+
if let Some(outcome) = cli::maybe_run_machine(&raw_args) {
|
|
5300
|
+
return finish_cli(outcome);
|
|
5301
|
+
}
|
|
5302
|
+
diff --git a/tests/process_environment.rs b/tests/process_environment.rs
|
|
5303
|
+
index 9dedb83..64d4645 100644
|
|
5304
|
+
--- a/tests/process_environment.rs
|
|
5305
|
+
+++ b/tests/process_environment.rs
|
|
5306
|
+
@@ -193,3 +193,39 @@ fn process_environment_cleanup_forwards_termination_and_keeps_evidence() {
|
|
5307
|
+
assert!(directory.join("session.jsonl").exists());
|
|
5308
|
+
std::fs::remove_dir_all(environment.parent().unwrap()).unwrap();
|
|
5309
|
+
}
|
|
5310
|
+
+
|
|
5311
|
+
+#[test]
|
|
5312
|
+
+fn process_environment_child_flags_are_not_global_herdr_options() {
|
|
5313
|
+
+ let path = environment_file("{}");
|
|
5314
|
+
+ let session = format!("/tmp/{}/session.jsonl", "long-session-path".repeat(8));
|
|
5315
|
+
+ for flags in [
|
|
5316
|
+
+ vec!["--session", session.as_str()],
|
|
5317
|
+
+ vec!["--remote", "child-target"],
|
|
5318
|
+
+ vec!["--help"],
|
|
5319
|
+
+ vec!["--version"],
|
|
5320
|
+
+ ] {
|
|
5321
|
+
+ let output = Command::new(env!("CARGO_BIN_EXE_herdr"))
|
|
5322
|
+
+ .args([
|
|
5323
|
+
+ "agent",
|
|
5324
|
+
+ "exec-env",
|
|
5325
|
+
+ path.to_str().unwrap(),
|
|
5326
|
+
+ "/bin/sh",
|
|
5327
|
+
+ "-c",
|
|
5328
|
+
+ "printf '%s\\n' \"$@\"",
|
|
5329
|
+
+ "child",
|
|
5330
|
+
+ ])
|
|
5331
|
+
+ .args(&flags)
|
|
5332
|
+
+ .output()
|
|
5333
|
+
+ .unwrap();
|
|
5334
|
+
+ assert!(
|
|
5335
|
+
+ output.status.success(),
|
|
5336
|
+
+ "{}",
|
|
5337
|
+
+ String::from_utf8_lossy(&output.stderr)
|
|
5338
|
+
+ );
|
|
5339
|
+
+ assert_eq!(
|
|
5340
|
+
+ String::from_utf8(output.stdout).unwrap(),
|
|
5341
|
+
+ format!("{}\n", flags.join("\n"))
|
|
5342
|
+
+ );
|
|
5343
|
+
+ }
|
|
5344
|
+
+ std::fs::remove_dir_all(path.parent().unwrap()).unwrap();
|
|
5345
|
+
+}
|
|
5346
|
+
--
|
|
5347
|
+
2.54.0 (Apple Git-157)
|
|
5348
|
+
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"schema": "ace.herdr.native-source/v1",
|
|
3
3
|
"repository": "https://github.com/herdrdev/herdr.git",
|
|
4
4
|
"baseline_commit": "7b116c05bfda646af39d2524c54e70c751f57ee8",
|
|
5
|
-
"source_commit": "
|
|
6
|
-
"source_tree": "
|
|
5
|
+
"source_commit": "5176d899a567985490682c37eb7f0198eab159b0",
|
|
6
|
+
"source_tree": "1cf8206e2d7b3a559d0bb3a036fa54d7228e7c99",
|
|
7
7
|
"patch_file": "guarded-prompt.patch",
|
|
8
|
-
"patch_sha256": "
|
|
8
|
+
"patch_sha256": "5aebc2fe2b61b80f96cc5fb5ef63fe41ee9b69c8b5921ce0fbf3cb4c10ae98a6",
|
|
9
9
|
"cargo_lock_sha256": "bb3ab17351af496a2cc316a11c81a97f90959cd37c3d5625f2f8028c0133ffca",
|
|
10
10
|
"rust_toolchain_sha256": "0d9298c075817aba62477d23dcda3534cd836b5d5cf1960bd2de54df675ceffd",
|
|
11
11
|
"rust_version": "1.96.1",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"committer": {
|
|
16
16
|
"name": "Miguel",
|
|
17
17
|
"email": "mc@cs3b.com",
|
|
18
|
-
"date": "2026-11-
|
|
18
|
+
"date": "2026-11-11T23:46:22+00:00"
|
|
19
19
|
},
|
|
20
20
|
"targets": [
|
|
21
21
|
"x86_64-unknown-linux-musl",
|
data/lib/ace/herdr/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ace-herdr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.11.
|
|
4
|
+
version: 0.11.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michal Czyz
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-11-
|
|
10
|
+
date: 2026-11-12 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: websocket-driver
|