agent-mp 0.2.8 → 0.2.9

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 (2) hide show
  1. package/dist/index.js +14 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -85,6 +85,20 @@ const ROLE_BINS = {
85
85
  const nativeRole = ROLE_BINS[PKG_NAME];
86
86
  if (nativeRole) {
87
87
  const args = process.argv.slice(2);
88
+ // --version / -V
89
+ if (args.includes('--version') || args.includes('-V')) {
90
+ console.log(readVersion());
91
+ process.exit(0);
92
+ }
93
+ // --help / -h
94
+ if (args.includes('--help') || args.includes('-h')) {
95
+ console.log(chalk.bold.cyan(`\n ${PKG_NAME} v${readVersion()} — ${nativeRole} agent\n`));
96
+ console.log(chalk.dim(` Usage: ${PKG_NAME} [--model <model>] "<task>"`));
97
+ console.log(chalk.dim(` Login: ${PKG_NAME} --login`));
98
+ console.log(chalk.dim(` Status: ${PKG_NAME} --status`));
99
+ console.log(chalk.dim(` Version: ${PKG_NAME} --version\n`));
100
+ process.exit(0);
101
+ }
88
102
  // --login: OAuth login for this role's account
89
103
  if (args.includes('--login') || args.includes('login')) {
90
104
  const { qwenLogin, fetchQwenModels } = await import('./utils/qwen-auth.js');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-mp",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Deterministic multi-agent CLI orchestrator — plan, code, review",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",