@team-agent/installer 0.5.106 → 0.5.107

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.
Files changed (29) hide show
  1. package/Cargo.lock +1 -1
  2. package/Cargo.toml +1 -1
  3. package/crates/team-agent/src/cli/tests/base.rs +112 -225
  4. package/crates/team-agent/src/compiler/tests.rs +46 -59
  5. package/crates/team-agent/src/leader/tests/byte_findings.rs +1 -14
  6. package/crates/team-agent/src/lifecycle/launch/pi_mcp.rs +57 -173
  7. package/crates/team-agent/src/lifecycle/launch/pi_mcp_extension.js +226 -0
  8. package/crates/team-agent/src/lifecycle/launch/quick_start.rs +0 -37
  9. package/crates/team-agent/src/lifecycle/tests/agent_ops.rs +0 -9
  10. package/crates/team-agent/src/lifecycle/tests/fixtures/pi_native_mcp_host.mjs +71 -0
  11. package/crates/team-agent/src/lifecycle/tests/lane_ops.rs +0 -66
  12. package/crates/team-agent/src/lifecycle/tests/launch_spawn.rs +0 -392
  13. package/crates/team-agent/src/lifecycle/tests/lifecycle_lock.rs +0 -5
  14. package/crates/team-agent/src/lifecycle/tests/phase_golden.rs +2 -361
  15. package/crates/team-agent/src/lifecycle/tests/pi_dual_entry_red.rs +1 -16
  16. package/crates/team-agent/src/lifecycle/tests/pi_executable_mcp_red.rs +20 -112
  17. package/crates/team-agent/src/lifecycle/tests/pi_fork_session_inheritance_red.rs +1 -12
  18. package/crates/team-agent/src/lifecycle/tests/pi_native_mcp_capability_red.rs +546 -0
  19. package/crates/team-agent/src/lifecycle/tests.rs +1 -0
  20. package/crates/team-agent/src/lifecycle/worker_command_context.rs +11 -54
  21. package/crates/team-agent/src/messaging/tests/wave2.rs +2 -302
  22. package/crates/team-agent/src/model/name_similarity.rs +52 -67
  23. package/crates/team-agent/src/model/task_graph.rs +37 -124
  24. package/crates/team-agent/src/model/yaml/tests.rs +46 -165
  25. package/crates/team-agent/src/provider/tests/adapter.rs +0 -20
  26. package/crates/team-agent/src/provider/tests/classify.rs +106 -198
  27. package/crates/team-agent/src/tmux_backend/tests.rs +178 -501
  28. package/crates/team-agent/src/transport/tests/wire.rs +0 -55
  29. package/package.json +4 -4
@@ -195,32 +195,6 @@ fn session_window_name_transparent_bytes() {
195
195
  // contracts-rust-native §2: spawn 返回的稳定 Target,后续 inject/capture 命中同进程。
196
196
  // ════════════════════════════════════════════════════════════════════════
197
197
 
198
- #[test]
199
- fn target_pane_and_session_window_are_distinct_addressings() {
200
- // 两种合法寻址不可混传;同名 PaneId vs SessionWindow 不相等。
201
- let p = Target::Pane(PaneId::new("%7"));
202
- let sw = Target::SessionWindow {
203
- session: SessionName::new("team-sess"),
204
- window: WindowName::new("%7"),
205
- };
206
- assert_ne!(p, sw);
207
- // Pane 寻址按 PaneId 字节相等。
208
- assert_eq!(
209
- Target::Pane(PaneId::new("%7")),
210
- Target::Pane(PaneId::new("%7"))
211
- );
212
- // SessionWindow 按 (session,window) 对相等;任一不同即不等。
213
- let a = Target::SessionWindow {
214
- session: SessionName::new("s"),
215
- window: WindowName::new("w"),
216
- };
217
- let b = Target::SessionWindow {
218
- session: SessionName::new("s"),
219
- window: WindowName::new("w2"),
220
- };
221
- assert_ne!(a, b);
222
- }
223
-
224
198
  #[test]
225
199
  fn spawn_first_returns_stable_addressable_target_then_reachable() {
226
200
  // contracts-rust-native: spawn_first 返回稳定可寻址 Target,且交回的 pane_id 能
@@ -331,16 +305,6 @@ fn spawn_into_then_list_targets_enumerates_it() {
331
305
  // 会卡 trust prompt)。golden /tmp/transport_golden.py: empty_inject_*。
332
306
  // ════════════════════════════════════════════════════════════════════════
333
307
 
334
- #[test]
335
- fn inject_payload_empty_is_typed_distinct_from_empty_text() {
336
- // 类型上把空文本与含字符文本分流(InjectPayload::Empty != Text("..."))。
337
- assert_ne!(InjectPayload::Empty, InjectPayload::Text(String::new()));
338
- assert_eq!(
339
- InjectPayload::Text("hi".into()),
340
- InjectPayload::Text("hi".into())
341
- );
342
- }
343
-
344
308
  #[test]
345
309
  fn inject_empty_payload_reports_empty_text_send_keys_and_turn_not_required() {
346
310
  // golden empty_inject_report:
@@ -508,18 +472,6 @@ fn p2_inject_large_text_switches_to_load_buffer_stdin_at_16k() {
508
472
  // contracts-rust-native test_key_enum_translation_parity / cancel_mode_noop。
509
473
  // ════════════════════════════════════════════════════════════════════════
510
474
 
511
- #[test]
512
- fn key_enum_variants_are_distinct_and_copy() {
513
- // Enter/Up/Down/Left/Right/Char/CtrlC/CancelMode 互不相等;Char 携字符。
514
- assert_ne!(Key::Enter, Key::CtrlC);
515
- assert_ne!(Key::Up, Key::Down);
516
- assert_ne!(Key::Char('1'), Key::Char('2'));
517
- assert_eq!(Key::Char('3'), Key::Char('3'));
518
- // Copy:可按值传两次。
519
- let k = Key::Enter;
520
- let _ = (k, k);
521
- }
522
-
523
475
  #[test]
524
476
  fn send_keys_sequence_routes_through_transport() {
525
477
  // send_keys 接受 &[Key];RED via stub。
@@ -581,13 +533,6 @@ fn cancel_mode_is_noop_on_non_tmux_backends() {
581
533
  // tmux `-S -<N>`(Tail)/ `-S -`(Full);DELIVERY_CAPTURE_LINES=40 是默认 tail。
582
534
  // ════════════════════════════════════════════════════════════════════════
583
535
 
584
- #[test]
585
- fn capture_range_tail_and_full_distinct() {
586
- assert_ne!(CaptureRange::Tail(40), CaptureRange::Full);
587
- assert_ne!(CaptureRange::Tail(40), CaptureRange::Tail(30));
588
- assert_eq!(CaptureRange::Tail(40), CaptureRange::Tail(40));
589
- }
590
-
591
536
  #[test]
592
537
  fn capture_tail_records_range_in_captured_text() {
593
538
  // CapturedText 携带它抓取的 range + 出口规范化文本。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-agent/installer",
3
- "version": "0.5.106",
3
+ "version": "0.5.107",
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.106",
24
- "@team-agent/cli-darwin-x64": "0.5.106",
25
- "@team-agent/cli-linux-x64": "0.5.106"
23
+ "@team-agent/cli-darwin-arm64": "0.5.107",
24
+ "@team-agent/cli-darwin-x64": "0.5.107",
25
+ "@team-agent/cli-linux-x64": "0.5.107"
26
26
  },
27
27
  "scripts": {
28
28
  "postinstall": "node npm/bincheck.mjs",