orchestrix-yuri 2.1.0 → 2.2.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/bin/install.js CHANGED
@@ -12,27 +12,33 @@ if (command === 'install') {
12
12
  } else if (command === 'migrate') {
13
13
  const projectRoot = args[1] || process.cwd();
14
14
  migrate(projectRoot);
15
- } else if (command === 'serve') {
15
+ } else if (command === 'start' || command === 'serve') {
16
16
  // Delegate to serve.js with remaining args
17
17
  require('./serve');
18
+ } else if (command === '--version' || command === '-v' || command === '-V') {
19
+ const { version } = require('../package.json');
20
+ console.log(version);
18
21
  } else if (command === '--help' || command === '-h' || !command) {
19
22
  console.log(`
20
23
  orchestrix-yuri — Meta-Orchestrator for Orchestrix
21
24
 
22
25
  Usage:
23
- npx orchestrix-yuri install Install Yuri skill + global memory
24
- npx orchestrix-yuri serve [options] Start the Channel Gateway (Telegram/Feishu)
25
- npx orchestrix-yuri migrate [path] Migrate legacy memory.yaml to four-layer structure
26
- npx orchestrix-yuri --help Show this help message
26
+ orchestrix-yuri install Install Yuri skill + global memory
27
+ orchestrix-yuri start Start the Channel Gateway
28
+ orchestrix-yuri start --token TOKEN Start & save Telegram Bot token (first time only)
29
+ orchestrix-yuri migrate [path] Migrate legacy memory.yaml
30
+ orchestrix-yuri --version Show version
31
+ orchestrix-yuri --help Show this help message
27
32
 
28
- Serve options:
29
- --telegram-token TOKEN Telegram Bot API token
30
- --port PORT Server port (default: 7890)
33
+ Quick start:
34
+ orchestrix-yuri install
35
+ orchestrix-yuri start --token "123456:ABC-DEF..." # first time, saves token
36
+ orchestrix-yuri start # from now on, just this
31
37
 
32
38
  After installation, type /yuri in any Claude Code session to activate.
33
39
  `);
34
40
  } else {
35
41
  console.error(`Unknown command: ${command}`);
36
- console.error('Run "npx orchestrix-yuri --help" for usage information.');
42
+ console.error('Run "orchestrix-yuri --help" for usage information.');
37
43
  process.exit(1);
38
44
  }
package/bin/serve.js CHANGED
@@ -8,28 +8,25 @@ const args = process.argv.slice(2);
8
8
  const opts = {};
9
9
 
10
10
  for (let i = 0; i < args.length; i++) {
11
- if (args[i] === '--telegram-token' && args[i + 1]) {
11
+ if ((args[i] === '--telegram-token' || args[i] === '--token' || args[i] === '-t') && args[i + 1]) {
12
12
  opts.telegramToken = args[++i];
13
13
  } else if (args[i] === '--port' && args[i + 1]) {
14
14
  opts.port = args[++i];
15
15
  } else if (args[i] === '--help' || args[i] === '-h') {
16
16
  console.log(`
17
- orchestrix-yuri serve — Start the Yuri Channel Gateway
17
+ orchestrix-yuri start — Start the Yuri Channel Gateway
18
18
 
19
19
  Usage:
20
- npx orchestrix-yuri serve [options]
20
+ orchestrix-yuri start [options]
21
21
 
22
22
  Options:
23
- --telegram-token TOKEN Telegram Bot API token (overrides config)
24
- --port PORT Server port (default: 7890)
25
- --help Show this help message
26
-
27
- Configuration:
28
- Edit ~/.yuri/config/channels.yaml to configure channels persistently.
23
+ --token, -t TOKEN Telegram Bot token (saved to config, only needed once)
24
+ --port PORT Server port (default: 7890)
25
+ --help Show this help message
29
26
 
30
27
  Examples:
31
- npx orchestrix-yuri serve --telegram-token "123456:ABC-DEF..."
32
- npx orchestrix-yuri serve
28
+ orchestrix-yuri start --token "123456:ABC-DEF..." # first time
29
+ orchestrix-yuri start # after that
33
30
  `);
34
31
  process.exit(0);
35
32
  }
@@ -66,13 +66,25 @@ function saveConfig(config) {
66
66
  }
67
67
 
68
68
  function applyCliOverrides(config, opts) {
69
+ let shouldSave = false;
70
+
69
71
  if (opts.telegramToken) {
70
72
  config.channels.telegram.enabled = true;
71
73
  config.channels.telegram.token = opts.telegramToken;
74
+ shouldSave = true;
72
75
  }
73
76
  if (opts.port) {
74
77
  config.server.port = parseInt(opts.port, 10);
75
78
  }
79
+
80
+ // Persist token to channels.yaml so user only needs to pass it once
81
+ if (shouldSave) {
82
+ saveConfig(config);
83
+ console.log(' ✅ Token saved to ~/.yuri/config/channels.yaml');
84
+ console.log(' Next time just run: orchestrix-yuri start');
85
+ console.log('');
86
+ }
87
+
76
88
  return config;
77
89
  }
78
90
 
@@ -51,11 +51,13 @@ async function startGateway(opts = {}) {
51
51
  // Check if any channel is active
52
52
  if (adapters.length === 0) {
53
53
  console.error('');
54
- console.error(' ❌ No channels enabled. Configure at least one:');
54
+ console.error(' ❌ No channels enabled. Set up your Telegram bot token:');
55
55
  console.error('');
56
- console.error(' npx orchestrix-yuri serve --telegram-token YOUR_BOT_TOKEN');
56
+ console.error(' orchestrix-yuri start --token YOUR_BOT_TOKEN');
57
57
  console.error('');
58
- console.error(' Or edit ~/.yuri/config/channels.yaml');
58
+ console.error(' The token is saved automatically. After that, just run:');
59
+ console.error('');
60
+ console.error(' orchestrix-yuri start');
59
61
  console.error('');
60
62
  process.exit(1);
61
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orchestrix-yuri",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Yuri — Meta-Orchestrator for Orchestrix. Drive your entire project lifecycle with natural language.",
5
5
  "main": "lib/installer.js",
6
6
  "bin": {