@team-agent/installer 0.3.27 → 0.3.29
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 +14 -0
- package/crates/team-agent/src/layout/manager.rs +241 -0
- package/crates/team-agent/src/layout/mod.rs +29 -0
- package/crates/team-agent/src/layout/overlay.rs +122 -0
- package/crates/team-agent/src/layout/placement.rs +47 -0
- package/crates/team-agent/src/layout/recovery.rs +101 -0
- package/crates/team-agent/src/layout/sessions.rs +277 -0
- package/crates/team-agent/src/layout/worker_env.rs +267 -0
- package/crates/team-agent/src/layout/worker_window_helpers.rs +35 -0
- package/crates/team-agent/src/leader/start.rs +32 -14
- package/crates/team-agent/src/leader/tests/identity.rs +30 -15
- package/crates/team-agent/src/lib.rs +3 -0
- package/crates/team-agent/src/lifecycle/launch.rs +58 -65
- package/crates/team-agent/src/lifecycle/restart/agent.rs +18 -10
- package/crates/team-agent/src/lifecycle/restart/common.rs +16 -9
- package/crates/team-agent/src/lifecycle/restart/rebuild.rs +26 -0
- package/crates/team-agent/src/lifecycle/tests/launch_spawn.rs +49 -75
- package/crates/team-agent/src/messaging/delivery.rs +17 -6
- package/crates/team-agent/src/messaging/results.rs +143 -0
- package/crates/team-agent/src/tmux_backend/tests.rs +94 -15
- package/crates/team-agent/src/tmux_backend.rs +164 -62
- package/crates/team-agent/src/transport/test_support.rs +3 -1
- package/crates/team-agent/src/transport/tests/mod.rs +4 -2
- package/crates/team-agent/src/transport.rs +15 -0
- package/package.json +4 -4
|
@@ -337,7 +337,9 @@ impl Transport for OfflineTransport {
|
|
|
337
337
|
state.inject_targets.push(target.clone());
|
|
338
338
|
state.inject_payloads.push(match payload {
|
|
339
339
|
InjectPayload::Empty => String::new(),
|
|
340
|
-
InjectPayload::Text(text)
|
|
340
|
+
InjectPayload::Text(text) | InjectPayload::TextSkipConsumptionPoll(text) => {
|
|
341
|
+
text.clone()
|
|
342
|
+
}
|
|
341
343
|
});
|
|
342
344
|
});
|
|
343
345
|
Ok(Self::inject_report())
|
|
@@ -55,11 +55,13 @@
|
|
|
55
55
|
InjectVerification::EmptyTextSendKeys,
|
|
56
56
|
TurnVerification::NotRequired,
|
|
57
57
|
),
|
|
58
|
-
InjectPayload::Text(text)
|
|
58
|
+
InjectPayload::Text(text) | InjectPayload::TextSkipConsumptionPoll(text)
|
|
59
|
+
if text.contains("[team-agent-token:") =>
|
|
60
|
+
(
|
|
59
61
|
InjectVerification::CaptureContainsToken,
|
|
60
62
|
TurnVerification::NotYetObserved,
|
|
61
63
|
),
|
|
62
|
-
InjectPayload::Text(_) => (
|
|
64
|
+
InjectPayload::Text(_) | InjectPayload::TextSkipConsumptionPoll(_) => (
|
|
63
65
|
InjectVerification::NoToken,
|
|
64
66
|
TurnVerification::NotYetObserved,
|
|
65
67
|
),
|
|
@@ -141,6 +141,21 @@ pub enum InjectPayload {
|
|
|
141
141
|
/// → 纯 send submit-key。
|
|
142
142
|
Empty,
|
|
143
143
|
Text(String),
|
|
144
|
+
/// Text payload for human-facing panes that do not consume provider turns.
|
|
145
|
+
TextSkipConsumptionPoll(String),
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
impl InjectPayload {
|
|
149
|
+
pub fn text(&self) -> Option<&str> {
|
|
150
|
+
match self {
|
|
151
|
+
Self::Text(text) | Self::TextSkipConsumptionPoll(text) => Some(text),
|
|
152
|
+
Self::Empty => None,
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
pub fn skip_consumption_poll(&self) -> bool {
|
|
157
|
+
matches!(self, Self::TextSkipConsumptionPoll(_))
|
|
158
|
+
}
|
|
144
159
|
}
|
|
145
160
|
|
|
146
161
|
/// 抽象 Key 枚举(§gap-5):各后端翻译,不透传 tmux 字面量。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@team-agent/installer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.29",
|
|
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.29",
|
|
24
|
+
"@team-agent/cli-darwin-x64": "0.3.29",
|
|
25
|
+
"@team-agent/cli-linux-x64": "0.3.29"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"postinstall": "node npm/bincheck.mjs",
|