@team-agent/installer 0.5.86 → 0.5.91
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/adapters.rs +104 -164
- package/crates/team-agent/src/cli/emit.rs +68 -87
- package/crates/team-agent/src/cli/mod.rs +1 -1
- package/crates/team-agent/src/cli/spec.rs +1 -4
- package/crates/team-agent/src/cli/status_port/brief.rs +187 -7
- package/crates/team-agent/src/cli/status_port/inbox.rs +42 -17
- package/crates/team-agent/src/cli/tests/lane_c.rs +34 -26
- package/crates/team-agent/src/cli/tests/main_preserved.rs +4 -70
- package/crates/team-agent/src/cli/tests/missing_subcommands.rs +0 -68
- package/crates/team-agent/src/cli/types.rs +3 -16
- package/crates/team-agent/src/compiler.rs +4 -7
- package/crates/team-agent/src/coordinator/tests/tick_core.rs +5 -6
- package/crates/team-agent/src/coordinator/tick.rs +1 -16
- package/crates/team-agent/src/coordinator/types.rs +1 -1
- package/crates/team-agent/src/db/message_store.rs +10 -5
- package/crates/team-agent/src/fake_worker.rs +4 -4
- package/crates/team-agent/src/lifecycle/launch/identity.rs +39 -21
- package/crates/team-agent/src/lifecycle/launch/spawn.rs +1 -1
- package/crates/team-agent/src/lifecycle/restart/common.rs +1 -1
- package/crates/team-agent/src/lifecycle/tests/b0_reader_hideone_audit_contract.rs +3 -3
- package/crates/team-agent/src/lifecycle/tests/harvest2_a_batch_red.rs +2 -2
- package/crates/team-agent/src/lifecycle/tests/launch_spawn.rs +0 -10
- package/crates/team-agent/src/lifecycle/tests/phase_golden.rs +2 -9
- package/crates/team-agent/src/lifecycle/tests/upgrade_compat_0211_red.rs +1 -26
- package/crates/team-agent/src/main.rs +7 -2
- package/crates/team-agent/src/mcp_server/mod.rs +1 -1
- package/crates/team-agent/src/messaging/mod.rs +2 -2
- package/crates/team-agent/src/messaging/results.rs +234 -386
- package/crates/team-agent/src/messaging/tests/runtime.rs +91 -135
- package/crates/team-agent/src/messaging/watchers.rs +1 -1
- package/crates/team-agent/src/model/enums.rs +17 -3
- package/crates/team-agent/src/model/spec.rs +8 -7
- package/crates/team-agent/src/provider/wire.rs +1 -1
- package/package.json +4 -4
- package/skills/team-agent/SKILL.md +3 -3
- package/skills/team-agent/command-coverage.json +2 -9
- package/skills/team-agent/references/team-agent-operator.md +661 -0
|
@@ -19,9 +19,7 @@ use std::sync::Mutex;
|
|
|
19
19
|
use rusqlite::params;
|
|
20
20
|
use serde_json::{json, Value};
|
|
21
21
|
use serial_test::serial;
|
|
22
|
-
use team_agent::cli::{
|
|
23
|
-
cmd_collect_for_team, cmd_status_for_team, CmdOutput, CollectArgs, StatusArgs,
|
|
24
|
-
};
|
|
22
|
+
use team_agent::cli::{cmd_status_for_team, CmdOutput, StatusArgs};
|
|
25
23
|
use team_agent::db::schema::{initialize_schema, open_db, table_layout, SCHEMA_VERSION};
|
|
26
24
|
use team_agent::event_log::EventLog;
|
|
27
25
|
use team_agent::lifecycle::restart::classify_restart_plan;
|
|
@@ -239,29 +237,6 @@ fn upgrade_status_collect_scope_by_selected_team_key() {
|
|
|
239
237
|
"status --team upgrade-key must not expose sibling rows; status={status}"
|
|
240
238
|
);
|
|
241
239
|
|
|
242
|
-
let collect = json_output(cmd_collect_for_team(
|
|
243
|
-
&CollectArgs {
|
|
244
|
-
workspace: fixture.workspace.clone(),
|
|
245
|
-
result_file: None,
|
|
246
|
-
json: true,
|
|
247
|
-
team: None,
|
|
248
|
-
},
|
|
249
|
-
Some(TEAM_KEY),
|
|
250
|
-
));
|
|
251
|
-
let empty = Vec::new();
|
|
252
|
-
let collected_ids = collect
|
|
253
|
-
.get("collected_results")
|
|
254
|
-
.and_then(Value::as_array)
|
|
255
|
-
.unwrap_or(&empty)
|
|
256
|
-
.iter()
|
|
257
|
-
.filter_map(|item| item.get("result_id").and_then(Value::as_str))
|
|
258
|
-
.collect::<Vec<_>>();
|
|
259
|
-
assert!(
|
|
260
|
-
collected_ids.contains(&"res-existing-upgrade")
|
|
261
|
-
&& collected_ids.contains(&"res-upgrade")
|
|
262
|
-
&& !collected_ids.contains(&"res-sibling"),
|
|
263
|
-
"collect --team upgrade-key must collect only selected runtime-key rows; collect={collect}"
|
|
264
|
-
);
|
|
265
240
|
}
|
|
266
241
|
|
|
267
242
|
#[test]
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
//! `team-agent` 二进制入口。
|
|
2
2
|
|
|
3
3
|
fn main() -> anyhow::Result<()> {
|
|
4
|
-
let mut args = std::env::
|
|
4
|
+
let mut args = std::env::args_os()
|
|
5
|
+
.skip(1)
|
|
6
|
+
.map(|arg| arg.to_string_lossy().into_owned());
|
|
5
7
|
let command = args.next();
|
|
6
8
|
if matches!(command.as_deref(), Some("fake-worker")) {
|
|
7
9
|
let mut workspace = None;
|
|
@@ -35,7 +37,10 @@ fn main() -> anyhow::Result<()> {
|
|
|
35
37
|
team_agent::mcp_server::main(&workspace, &[])?;
|
|
36
38
|
return Ok(());
|
|
37
39
|
}
|
|
38
|
-
let argv = std::env::
|
|
40
|
+
let argv = std::env::args_os()
|
|
41
|
+
.skip(1)
|
|
42
|
+
.map(|arg| arg.to_string_lossy().into_owned())
|
|
43
|
+
.collect::<Vec<_>>();
|
|
39
44
|
let cwd = std::env::current_dir()?;
|
|
40
45
|
std::process::exit(team_agent::cli::run(&argv, &cwd).code());
|
|
41
46
|
}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
//! `mcp.identity_inference_failed` / `mcp.task_inference_failed` audit events.
|
|
23
23
|
//! - [`load_runtime_state`] / [`save_runtime_state`] (step 5 persist) — `assign_task`
|
|
24
24
|
//! / `update_state` read-modify-write; `get_visible_peers` reads team scope.
|
|
25
|
-
//! - [`messaging`] (step 11) — `send_message` / `report_result` /
|
|
25
|
+
//! - [`messaging`] (step 11) — `send_message` / auto-finalizing `report_result` /
|
|
26
26
|
//! `stuck_list` / `stuck_cancel` delegated by the tool handlers.
|
|
27
27
|
//! - [`crate::model::enums`] (step 2) — [`ResultStatus`] / [`ChangeKind`] /
|
|
28
28
|
//! [`TestStatus`] / [`RiskSeverity`] are the normalized result-envelope value
|
|
@@ -102,8 +102,8 @@ pub use persist::{
|
|
|
102
102
|
LogicalRecipient, PersistResolution, PersistedSend, ResolvedSendIntent, SendOrigin,
|
|
103
103
|
};
|
|
104
104
|
pub use results::{
|
|
105
|
-
collect, collect_for_team,
|
|
106
|
-
|
|
105
|
+
collect, collect_for_team, report_result, report_result_for_owner_team,
|
|
106
|
+
report_result_for_owner_team_with_primary_error,
|
|
107
107
|
};
|
|
108
108
|
pub use scheduler::{detect_stuck_agents, fire_due_scheduled_events, stuck_cancel, stuck_list};
|
|
109
109
|
pub use selftest::{run_comms_selftest, CommsSelftestDriver};
|