openteam 0.4.0 → 0.5.0

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/README.md CHANGED
@@ -119,18 +119,12 @@ openteam start dev-team
119
119
  | `openteam start [team]` | 启动团队(创建 tmux/zellij session + daemon) |
120
120
  | `openteam start [team] -d` | 后台启动 |
121
121
  | `openteam start [team] --dir <directory>` | 指定项目目录 |
122
- | `openteam attach [team] [agent]` | 附加到 agent 会话(默认 leader) |
123
- | `openteam attach [team] [agent] --dir <directory>` | 指定项目目录 |
124
- | `openteam monitor [team]` | `start` 的别名 |
125
122
  | `openteam list` / `openteam ls` | 列出所有已配置团队及运行状态 |
126
- | `openteam status <team>` | 查看运行状态与会话有效性 |
127
- | `openteam status <team> --dir <directory>` | 指定项目目录 |
128
- | `openteam stop <team>` | 停止团队(SIGTERM daemon) |
129
- | `openteam stop <team> --dir <directory>` | 指定项目目录 |
130
- | `openteam dashboard <team>` | 启动实时状态仪表盘 |
131
- | `openteam dashboard <team> --dir <directory>` | 指定项目目录 |
132
-
133
- 同一团队可在不同项目目录启动多个实例。当存在多个实例时,`attach`、`status`、`stop`、`dashboard` 需要 `--dir` 指定目标实例。
123
+ | `openteam inspect <team>` | 查看运行状态与会话有效性 |
124
+ | `openteam inspect <team> --dir <directory>` | 指定项目目录 |
125
+ | `openteam stop <target>` | 停止团队(SIGTERM daemon) |
126
+
127
+ 同一团队可在不同项目目录启动多个实例。当存在多个实例时,`inspect`、`stop` 需要 `--dir` 指定目标实例。
134
128
 
135
129
  ## 团队工具
136
130
 
package/bin/openteam.js CHANGED
@@ -8,7 +8,7 @@ import { createRequire } from 'module';
8
8
  import { program } from 'commander';
9
9
  import {
10
10
  cmdStart, cmdAttach, cmdList, cmdStop,
11
- cmdStatus, cmdMonitor, cmdDashboard, cmdAgentAttach,
11
+ cmdInspect, cmdDashboard, cmdAgentAttach,
12
12
  } from '../src/interfaces/cli.js';
13
13
 
14
14
  const require = createRequire(import.meta.url);
@@ -26,7 +26,7 @@ program
26
26
  .action(cmdStart);
27
27
 
28
28
  program
29
- .command('attach [team] [agent]')
29
+ .command('attach [team] [agent]', { hidden: true })
30
30
  .description('附加到 agent 会话')
31
31
  .option('--dir <directory>', '项目目录')
32
32
  .action(cmdAttach);
@@ -44,22 +44,13 @@ program
44
44
  .action(cmdStop);
45
45
 
46
46
  program
47
- .command('status <team>')
48
- .description('查看团队状态')
47
+ .command('inspect <team>')
48
+ .description('查看团队详细状态与会话有效性')
49
49
  .option('--dir <directory>', '项目目录')
50
- .action(cmdStatus);
50
+ .action(cmdInspect);
51
51
 
52
52
  program
53
- .command('monitor [team]')
54
- .description('启动团队(start 的别名)')
55
- .option('-d, --detach', '后台运行')
56
- .option('--dir <directory>', '项目目录')
57
- .option('--tmux', '强制使用 tmux')
58
- .option('--zellij', '强制使用 zellij')
59
- .action(cmdMonitor);
60
-
61
- program
62
- .command('dashboard <team>')
53
+ .command('dashboard <team>', { hidden: true })
63
54
  .description('独立显示团队状态仪表盘')
64
55
  .option('--dir <directory>', '项目目录')
65
56
  .action(cmdDashboard);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openteam",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Agent-centric team collaboration for OpenCode",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -380,16 +380,9 @@ export function cmdStop(target) {
380
380
  }
381
381
 
382
382
  /**
383
- * 监控 — start 的别名
383
+ * 深入查看团队运行状态与会话有效性
384
384
  */
385
- export async function cmdMonitor(teamName, options) {
386
- return cmdStart(teamName, { ...options, dir: options.dir || process.cwd() });
387
- }
388
-
389
- /**
390
- * 展示团队运行状态
391
- */
392
- export async function cmdStatus(teamName, options = {}) {
385
+ export async function cmdInspect(teamName, options = {}) {
393
386
  if (!teamName) {
394
387
  error('请指定团队名称');
395
388
  }