@team-agent/installer 0.5.116 → 0.5.118
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.
- package/Cargo.lock +1 -1
- package/Cargo.toml +1 -1
- package/crates/team-agent/src/cli/mod.rs +20 -0
- package/crates/team-agent/src/leader/lease.rs +1 -18
- package/crates/team-agent/src/leader/start.rs +27 -47
- package/crates/team-agent/src/lifecycle/pane_input_lock.rs +86 -8
- package/crates/team-agent/src/lifecycle/tests/pi_session_delivery_red.rs +2 -7
- package/crates/team-agent/src/messaging/delivery.rs +102 -69
- package/crates/team-agent/src/messaging/enter_rescue.rs +334 -0
- package/crates/team-agent/src/messaging/enter_rescue_tests.rs +566 -0
- package/crates/team-agent/src/messaging/helpers.rs +1 -0
- package/crates/team-agent/src/messaging/mod.rs +1 -0
- package/crates/team-agent/src/messaging/scheduler.rs +8 -0
- package/crates/team-agent/src/messaging/tests/basic.rs +2 -0
- package/crates/team-agent/src/messaging/tests/leader_inject_acceptance.rs +6 -5
- package/crates/team-agent/src/messaging/tests/spine.rs +27 -28
- package/crates/team-agent/src/messaging/types.rs +1 -0
- package/crates/team-agent/src/state/repository.rs +47 -0
- package/crates/team-agent/src/tmux_backend/native_input.rs +494 -0
- package/crates/team-agent/src/tmux_backend/native_input_tests.rs +918 -0
- package/crates/team-agent/src/tmux_backend.rs +49 -6
- package/crates/team-agent/src/transport/native_input.rs +716 -0
- package/crates/team-agent/src/transport.rs +19 -0
- package/package.json +4 -4
|
@@ -67,6 +67,8 @@ use std::path::{Path, PathBuf};
|
|
|
67
67
|
use serde::{Deserialize, Serialize};
|
|
68
68
|
use thiserror::Error;
|
|
69
69
|
|
|
70
|
+
pub mod native_input;
|
|
71
|
+
|
|
70
72
|
#[cfg(test)]
|
|
71
73
|
pub mod test_support;
|
|
72
74
|
|
|
@@ -727,6 +729,9 @@ pub enum AttachOutcome {
|
|
|
727
729
|
/// transport 的 I/O / 子进程错误。能力性拒绝**不**走这里(用上面的 typed outcome)。
|
|
728
730
|
#[derive(Debug, Error)]
|
|
729
731
|
pub enum TransportError {
|
|
732
|
+
/// Guard refused before a paste/key; the owned evidence carries any later effect floor.
|
|
733
|
+
#[error("native input not ready: {reason}")]
|
|
734
|
+
NativeInputNotReady { reason: String },
|
|
730
735
|
#[error("spawn failed on {backend:?}: {source}")]
|
|
731
736
|
Spawn {
|
|
732
737
|
backend: BackendKind,
|
|
@@ -796,6 +801,13 @@ pub trait Transport: Send + Sync {
|
|
|
796
801
|
false
|
|
797
802
|
}
|
|
798
803
|
|
|
804
|
+
/// This backend implements the owned native composer/submit handshake.
|
|
805
|
+
/// Capability only: no socket discovery, reads, or effects. Unknown/test
|
|
806
|
+
/// backends do not claim a native input protocol by default.
|
|
807
|
+
fn supports_owned_native_input(&self) -> bool {
|
|
808
|
+
false
|
|
809
|
+
}
|
|
810
|
+
|
|
799
811
|
/// Physical tmux endpoint used by this transport when known. For tmux this is
|
|
800
812
|
/// either a full `-S` socket path or a `-L` socket name; non-tmux/test
|
|
801
813
|
/// transports can leave it unknown.
|
|
@@ -977,6 +989,13 @@ pub trait Transport: Send + Sync {
|
|
|
977
989
|
Ok(report)
|
|
978
990
|
}
|
|
979
991
|
|
|
992
|
+
/// Enter-only recovery; unsupported backends have an explicit zero-effect refusal.
|
|
993
|
+
fn rescue_enter(&self, _evidence: &native_input::NativeInputEvidence, _authorize: &dyn Fn() -> bool, _observer: Option<&dyn SubmitObserver>)
|
|
994
|
+
-> Result<native_input::EnterRescueOutcome, TransportError>
|
|
995
|
+
{
|
|
996
|
+
Ok(native_input::EnterRescueOutcome::NoEffect { reason: "unsupported_backend", reobserve: false })
|
|
997
|
+
}
|
|
998
|
+
|
|
980
999
|
fn send_keys(&self, target: &Target, keys: &[Key]) -> Result<(), TransportError>;
|
|
981
1000
|
|
|
982
1001
|
fn capture(&self, target: &Target, range: CaptureRange)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@team-agent/installer",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.118",
|
|
4
4
|
"description": "npx installer for Team Agent",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codex",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"team-agent-installer": "npm/install.mjs"
|
|
21
21
|
},
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"@team-agent/cli-darwin-arm64": "0.5.
|
|
24
|
-
"@team-agent/cli-darwin-x64": "0.5.
|
|
25
|
-
"@team-agent/cli-linux-x64": "0.5.
|
|
23
|
+
"@team-agent/cli-darwin-arm64": "0.5.118",
|
|
24
|
+
"@team-agent/cli-darwin-x64": "0.5.118",
|
|
25
|
+
"@team-agent/cli-linux-x64": "0.5.118"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"postinstall": "node npm/bincheck.mjs",
|