@team-agent/installer 0.3.20 → 0.3.22
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/emit.rs +9 -1
- package/crates/team-agent/src/cli/mod.rs +158 -2
- package/crates/team-agent/src/cli/status.rs +61 -0
- package/crates/team-agent/src/cli/status_port.rs +2 -2
- package/crates/team-agent/src/cli/tests/base.rs +26 -0
- package/crates/team-agent/src/cli/tests/shutdown_kill_plan.rs +233 -9
- package/crates/team-agent/src/coordinator/runtime_detectors.rs +251 -2
- package/crates/team-agent/src/coordinator/tests/energy.rs +548 -0
- package/crates/team-agent/src/coordinator/tests/mod.rs +1 -0
- package/crates/team-agent/src/coordinator/tick.rs +452 -17
- package/crates/team-agent/src/lifecycle/display.rs +23 -302
- package/crates/team-agent/src/lifecycle/launch.rs +38 -0
- package/crates/team-agent/src/lifecycle/restart/agent.rs +27 -6
- package/crates/team-agent/src/lifecycle/restart/common.rs +76 -0
- package/crates/team-agent/src/lifecycle/restart/rebuild.rs +295 -13
- package/crates/team-agent/src/lifecycle/tests/launch_spawn.rs +30 -0
- package/crates/team-agent/src/lifecycle/tests/main_preserved.rs +89 -5
- package/crates/team-agent/src/messaging/delivery.rs +324 -95
- package/crates/team-agent/src/messaging/scheduler.rs +95 -73
- package/crates/team-agent/src/messaging/send.rs +10 -0
- package/crates/team-agent/src/messaging/tests/runtime.rs +460 -0
- package/crates/team-agent/src/messaging/tests/spine.rs +51 -2
- package/crates/team-agent/src/session_capture.rs +261 -1
- package/crates/team-agent/src/tmux_backend/tests.rs +97 -1
- package/crates/team-agent/src/tmux_backend.rs +138 -2
- package/crates/team-agent/src/transport/test_support.rs +25 -0
- package/crates/team-agent/src/transport.rs +11 -0
- package/package.json +4 -4
|
@@ -33,6 +33,7 @@ struct OfflineState {
|
|
|
33
33
|
default_liveness: PaneLiveness,
|
|
34
34
|
calls: Vec<&'static str>,
|
|
35
35
|
spawns: Vec<SpawnRecord>,
|
|
36
|
+
pane_titles: Vec<(String, String, String, String)>,
|
|
36
37
|
inject_targets: Vec<Target>,
|
|
37
38
|
inject_payloads: Vec<String>,
|
|
38
39
|
tmux_endpoint: Option<String>,
|
|
@@ -52,6 +53,7 @@ impl Default for OfflineState {
|
|
|
52
53
|
default_liveness: PaneLiveness::Unknown,
|
|
53
54
|
calls: Vec::new(),
|
|
54
55
|
spawns: Vec::new(),
|
|
56
|
+
pane_titles: Vec::new(),
|
|
55
57
|
inject_targets: Vec::new(),
|
|
56
58
|
inject_payloads: Vec::new(),
|
|
57
59
|
tmux_endpoint: None,
|
|
@@ -149,6 +151,10 @@ impl OfflineTransport {
|
|
|
149
151
|
})
|
|
150
152
|
}
|
|
151
153
|
|
|
154
|
+
pub fn pane_title_records(&self) -> Vec<(String, String, String, String)> {
|
|
155
|
+
self.with_state(|state| state.pane_titles.clone())
|
|
156
|
+
}
|
|
157
|
+
|
|
152
158
|
pub fn inject_targets(&self) -> Vec<Target> {
|
|
153
159
|
self.with_state(|state| state.inject_targets.clone())
|
|
154
160
|
}
|
|
@@ -350,6 +356,25 @@ impl Transport for OfflineTransport {
|
|
|
350
356
|
}))
|
|
351
357
|
}
|
|
352
358
|
|
|
359
|
+
fn configure_adaptive_pane_title(
|
|
360
|
+
&self,
|
|
361
|
+
session: &SessionName,
|
|
362
|
+
window: &WindowName,
|
|
363
|
+
pane: &PaneId,
|
|
364
|
+
title: &str,
|
|
365
|
+
) -> Result<(), TransportError> {
|
|
366
|
+
self.with_state(|state| {
|
|
367
|
+
state.calls.push("configure_adaptive_pane_title");
|
|
368
|
+
state.pane_titles.push((
|
|
369
|
+
session.as_str().to_string(),
|
|
370
|
+
window.as_str().to_string(),
|
|
371
|
+
pane.as_str().to_string(),
|
|
372
|
+
title.to_string(),
|
|
373
|
+
));
|
|
374
|
+
});
|
|
375
|
+
Ok(())
|
|
376
|
+
}
|
|
377
|
+
|
|
353
378
|
fn set_session_env(
|
|
354
379
|
&self,
|
|
355
380
|
_session: &SessionName,
|
|
@@ -530,6 +530,17 @@ pub trait Transport: Send + Sync {
|
|
|
530
530
|
session: &SessionName,
|
|
531
531
|
) -> Result<Vec<WindowName>, TransportError>;
|
|
532
532
|
|
|
533
|
+
fn configure_adaptive_pane_title(
|
|
534
|
+
&self,
|
|
535
|
+
session: &SessionName,
|
|
536
|
+
window: &WindowName,
|
|
537
|
+
pane: &PaneId,
|
|
538
|
+
title: &str,
|
|
539
|
+
) -> Result<(), TransportError> {
|
|
540
|
+
let _ = (session, window, pane, title);
|
|
541
|
+
Ok(())
|
|
542
|
+
}
|
|
543
|
+
|
|
533
544
|
/// tmux=`set-environment`;无 server-env 的后端(WezTerm/ConPTY)对 worker 内化为
|
|
534
545
|
/// 「spawn 时注入」(`InternalizedAtSpawn`),对外部 leader pane 返回 typed 不支持
|
|
535
546
|
/// (`UnsupportedForExternalPane`,§4c)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@team-agent/installer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.22",
|
|
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.3.
|
|
24
|
-
"@team-agent/cli-darwin-x64": "0.3.
|
|
25
|
-
"@team-agent/cli-linux-x64": "0.3.
|
|
23
|
+
"@team-agent/cli-darwin-arm64": "0.3.22",
|
|
24
|
+
"@team-agent/cli-darwin-x64": "0.3.22",
|
|
25
|
+
"@team-agent/cli-linux-x64": "0.3.22"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"postinstall": "node npm/bincheck.mjs",
|