legionio 1.5.21 → 1.5.22

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff2178b95e28c31128ad05f307d30f9cc4eb805210144dd7b579e3e526046045
4
- data.tar.gz: d49fdcfa4b32c25cb0757abdac503e26cac31b5f134e4764219d79afe7b1141b
3
+ metadata.gz: dc118d8800708d94fc279455bd379cda4f159cc535b6af290997aacf311765bb
4
+ data.tar.gz: b144e6d8fa85659d6a929f427c611ddd5e5288bfce404eeb11b41bfe1f85d82f
5
5
  SHA512:
6
- metadata.gz: d4636401d967346d0db79ed299ed6bcb0bccd854a1ff58af1f88dfba545610bca4d6ea1f95c992ad206a90091b8510f214392f236d9f35fca8e347f0f76d61c9
7
- data.tar.gz: e477f818ab50a7edcbdf8be7b5e5e62ac4c65d9394f224401104cc646140d9dfa7e6ab356fdea1dc69c764ca3f1144a36e8c42998978b3fa73620358166b4e2d
6
+ metadata.gz: ba5b7bfc06588c0a8f3e6e5d123e481a847e72614e76bb312b3dbf78bec3f55d56c539fd501db189a6827ab81a36716377084c8419a11548c5a1463fa4fe5dc8
7
+ data.tar.gz: 35580f0a9895e93c225fe596a02379f57a21669e67b2485805beb37ec9082c4098302b6dfb465ec5f21f06d9265e0bc103dd882ec68377e8f4e4ce2d891c3d59
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Legion Changelog
2
2
 
3
+ ## [1.5.22] - 2026-03-26
4
+
5
+ ### Changed
6
+ - Consolidate 48 root CLI commands into 7 groups + 19 root commands
7
+ - New groups: `ai`, `git`, `pipeline`, `ops`, `serve`, `admin`, `dev`
8
+ - `ai`: chat, llm, gaia, apollo, knowledge, memory, mind-growth, swarm, plan, trace
9
+ - `git`: commit, pr, review
10
+ - `pipeline`: skill, prompt, eval, dataset, image, notebook
11
+ - `ops`: telemetry, observe, detect, cost, payroll, audit, debug, failover
12
+ - `serve`: mcp, acp
13
+ - `admin`: rbac, auth, worker, team
14
+ - `dev`: generate, docs, openapi, completion, marketplace, features
15
+ - Root keepers: start, stop, status, version, check, doctor, setup, update, config, init, lex, task, chain, schedule, coldstart, tty, do, ask, dream, tree
16
+
3
17
  ## [1.5.21] - 2026-03-26
4
18
 
5
19
  ### Changed
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'thor'
4
+
5
+ module Legion
6
+ module CLI
7
+ module Groups
8
+ class Admin < Thor
9
+ namespace 'admin'
10
+
11
+ def self.exit_on_failure?
12
+ true
13
+ end
14
+
15
+ desc 'rbac SUBCOMMAND', 'Role-based access control management'
16
+ subcommand 'rbac', Legion::CLI::Rbac
17
+
18
+ desc 'auth SUBCOMMAND', 'Authenticate with external services'
19
+ subcommand 'auth', Legion::CLI::Auth
20
+
21
+ desc 'worker SUBCOMMAND', 'Manage digital workers'
22
+ subcommand 'worker', Legion::CLI::Worker
23
+
24
+ desc 'team SUBCOMMAND', 'Team and multi-user management'
25
+ subcommand 'team', Legion::CLI::Team
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'thor'
4
+
5
+ module Legion
6
+ module CLI
7
+ module Groups
8
+ class Ai < Thor
9
+ namespace 'ai'
10
+
11
+ def self.exit_on_failure?
12
+ true
13
+ end
14
+
15
+ desc 'chat SUBCOMMAND', 'Interactive AI conversation'
16
+ subcommand 'chat', Legion::CLI::Chat
17
+
18
+ desc 'llm SUBCOMMAND', 'LLM provider diagnostics (status, ping, models)'
19
+ subcommand 'llm', Legion::CLI::Llm
20
+
21
+ desc 'gaia SUBCOMMAND', 'GAIA cognitive coordination'
22
+ subcommand 'gaia', Legion::CLI::Gaia
23
+
24
+ desc 'apollo SUBCOMMAND', 'Apollo knowledge graph'
25
+ subcommand 'apollo', Legion::CLI::Apollo
26
+
27
+ desc 'knowledge SUBCOMMAND', 'Search and manage the document knowledge base'
28
+ subcommand 'knowledge', Legion::CLI::Knowledge
29
+
30
+ desc 'memory SUBCOMMAND', 'Persistent project memory across sessions'
31
+ subcommand 'memory', Legion::CLI::Memory
32
+
33
+ desc 'mind-growth SUBCOMMAND', 'Autonomous cognitive architecture expansion'
34
+ subcommand 'mind-growth', Legion::CLI::MindGrowth
35
+
36
+ desc 'swarm SUBCOMMAND', 'Multi-agent swarm orchestration'
37
+ subcommand 'swarm', Legion::CLI::Swarm
38
+
39
+ desc 'plan', 'Start plan mode (read-only exploration, no writes)'
40
+ subcommand 'plan', Legion::CLI::Plan
41
+
42
+ desc 'trace SUBCOMMAND', 'Natural language trace search via LLM'
43
+ subcommand 'trace', Legion::CLI::TraceCommand
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'thor'
4
+
5
+ module Legion
6
+ module CLI
7
+ module Groups
8
+ class Dev < Thor
9
+ namespace 'dev'
10
+
11
+ def self.exit_on_failure?
12
+ true
13
+ end
14
+
15
+ desc 'generate SUBCOMMAND', 'Code generators for LEX components'
16
+ map 'g' => :generate
17
+ subcommand 'generate', Legion::CLI::Generate
18
+
19
+ desc 'docs SUBCOMMAND', 'Documentation site generator'
20
+ subcommand 'docs', Legion::CLI::Docs
21
+
22
+ desc 'openapi SUBCOMMAND', 'OpenAPI spec generation'
23
+ subcommand 'openapi', Legion::CLI::Openapi
24
+
25
+ desc 'completion SUBCOMMAND', 'Shell tab completion scripts'
26
+ subcommand 'completion', Legion::CLI::Completion
27
+
28
+ desc 'marketplace', 'Extension marketplace (search, info, scan)'
29
+ subcommand 'marketplace', Legion::CLI::Marketplace
30
+
31
+ desc 'features SUBCOMMAND', 'Install feature bundles (interactive selector)'
32
+ subcommand 'features', Legion::CLI::Features
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'thor'
4
+
5
+ module Legion
6
+ module CLI
7
+ module Groups
8
+ class Git < Thor
9
+ namespace 'git'
10
+
11
+ def self.exit_on_failure?
12
+ true
13
+ end
14
+
15
+ desc 'commit', 'Generate AI commit message from staged changes'
16
+ subcommand 'commit', Legion::CLI::Commit
17
+
18
+ desc 'pr', 'Create pull request with AI-generated title and description'
19
+ subcommand 'pr', Legion::CLI::Pr
20
+
21
+ desc 'review', 'AI code review of changes'
22
+ subcommand 'review', Legion::CLI::Review
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'thor'
4
+
5
+ module Legion
6
+ module CLI
7
+ module Groups
8
+ class Ops < Thor
9
+ namespace 'ops'
10
+
11
+ def self.exit_on_failure?
12
+ true
13
+ end
14
+
15
+ desc 'telemetry SUBCOMMAND', 'Session log analytics and telemetry'
16
+ subcommand 'telemetry', Legion::CLI::Telemetry
17
+
18
+ desc 'observe SUBCOMMAND', 'MCP tool observation stats'
19
+ subcommand 'observe', Legion::CLI::ObserveCommand
20
+
21
+ desc 'detect', 'Scan environment and recommend extensions'
22
+ subcommand 'detect', Legion::CLI::Detect
23
+
24
+ desc 'cost', 'Cost visibility and reporting'
25
+ subcommand 'cost', Legion::CLI::Cost
26
+
27
+ desc 'payroll SUBCOMMAND', 'Workforce cost and labor economics'
28
+ subcommand 'payroll', Legion::CLI::Payroll
29
+
30
+ desc 'audit SUBCOMMAND', 'Audit log inspection and verification'
31
+ subcommand 'audit', Legion::CLI::Audit
32
+
33
+ desc 'debug', 'Diagnostic dump for troubleshooting (pipe to LLM for analysis)'
34
+ subcommand 'debug', Legion::CLI::Debug
35
+
36
+ desc 'failover SUBCOMMAND', 'Region failover management'
37
+ subcommand 'failover', Legion::CLI::Failover
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'thor'
4
+
5
+ module Legion
6
+ module CLI
7
+ module Groups
8
+ class Pipeline < Thor
9
+ namespace 'pipeline'
10
+
11
+ def self.exit_on_failure?
12
+ true
13
+ end
14
+
15
+ desc 'skill', 'Manage skills (.legion/skills/ markdown files)'
16
+ subcommand 'skill', Legion::CLI::Skill
17
+
18
+ desc 'prompt SUBCOMMAND', 'Manage versioned LLM prompt templates'
19
+ subcommand 'prompt', Legion::CLI::Prompt
20
+
21
+ desc 'eval SUBCOMMAND', 'Eval gating and experiment management'
22
+ subcommand 'eval', Legion::CLI::Eval
23
+
24
+ desc 'dataset SUBCOMMAND', 'Manage versioned datasets'
25
+ subcommand 'dataset', Legion::CLI::Dataset
26
+
27
+ desc 'image SUBCOMMAND', 'Multimodal image analysis and comparison'
28
+ subcommand 'image', Legion::CLI::Image
29
+
30
+ desc 'notebook', 'Read and export Jupyter notebooks'
31
+ subcommand 'notebook', Legion::CLI::Notebook
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'thor'
4
+
5
+ module Legion
6
+ module CLI
7
+ module Groups
8
+ class Serve < Thor
9
+ namespace 'serve'
10
+
11
+ def self.exit_on_failure?
12
+ true
13
+ end
14
+
15
+ desc 'mcp SUBCOMMAND', 'Start MCP server for AI agent integration'
16
+ subcommand 'mcp', Legion::CLI::Mcp
17
+
18
+ desc 'acp SUBCOMMAND', 'Start ACP agent for editor integration'
19
+ subcommand 'acp', Legion::CLI::Acp
20
+ end
21
+ end
22
+ end
23
+ end
data/lib/legion/cli.rb CHANGED
@@ -65,6 +65,16 @@ module Legion
65
65
  autoload :Features, 'legion/cli/features_command'
66
66
  autoload :Debug, 'legion/cli/debug_command'
67
67
 
68
+ module Groups
69
+ autoload :Ai, 'legion/cli/groups/ai_group'
70
+ autoload :Git, 'legion/cli/groups/git_group'
71
+ autoload :Pipeline, 'legion/cli/groups/pipeline_group'
72
+ autoload :Ops, 'legion/cli/groups/ops_group'
73
+ autoload :Serve, 'legion/cli/groups/serve_group'
74
+ autoload :Admin, 'legion/cli/groups/admin_group'
75
+ autoload :Dev, 'legion/cli/groups/dev_group'
76
+ end
77
+
68
78
  class Main < Thor
69
79
  def self.exit_on_failure?
70
80
  true
@@ -199,6 +209,7 @@ module Legion
199
209
  exit(exit_code) if exit_code != 0
200
210
  end
201
211
 
212
+ # --- Core framework ---
202
213
  desc 'lex SUBCOMMAND', 'Manage Legion extensions (LEXs)'
203
214
  subcommand 'lex', Legion::CLI::Lex
204
215
 
@@ -211,81 +222,18 @@ module Legion
211
222
  desc 'config SUBCOMMAND', 'View and validate configuration'
212
223
  subcommand 'config', Legion::CLI::Config
213
224
 
214
- desc 'generate SUBCOMMAND', 'Code generators for LEX components'
215
- map 'g' => :generate
216
- subcommand 'generate', Legion::CLI::Generate
217
-
218
- desc 'acp SUBCOMMAND', 'Start ACP agent for editor integration'
219
- subcommand 'acp', Legion::CLI::Acp
220
-
221
- desc 'mcp SUBCOMMAND', 'Start MCP server for AI agent integration'
222
- subcommand 'mcp', Legion::CLI::Mcp
223
-
224
- desc 'worker SUBCOMMAND', 'Manage digital workers'
225
- subcommand 'worker', Legion::CLI::Worker
226
-
227
- desc 'coldstart SUBCOMMAND', 'Cold start bootstrap and Claude memory ingestion'
228
- subcommand 'coldstart', Legion::CLI::Coldstart
229
-
230
- desc 'chat SUBCOMMAND', 'Interactive AI conversation'
231
- subcommand 'chat', Legion::CLI::Chat
232
-
233
- desc 'commit', 'Generate AI commit message from staged changes'
234
- subcommand 'commit', Legion::CLI::Commit
235
-
236
- desc 'pr', 'Create pull request with AI-generated title and description'
237
- subcommand 'pr', Legion::CLI::Pr
238
-
239
- desc 'review', 'AI code review of changes'
240
- subcommand 'review', Legion::CLI::Review
241
-
242
- desc 'memory SUBCOMMAND', 'Persistent project memory across sessions'
243
- subcommand 'memory', Legion::CLI::Memory
244
-
245
- desc 'mind-growth SUBCOMMAND', 'Autonomous cognitive architecture expansion'
246
- subcommand 'mind-growth', Legion::CLI::MindGrowth
247
-
248
- desc 'plan', 'Start plan mode (read-only exploration, no writes)'
249
- subcommand 'plan', Legion::CLI::Plan
250
-
251
- desc 'swarm SUBCOMMAND', 'Multi-agent swarm orchestration'
252
- subcommand 'swarm', Legion::CLI::Swarm
253
-
254
- desc 'gaia SUBCOMMAND', 'GAIA cognitive coordination'
255
- subcommand 'gaia', Legion::CLI::Gaia
256
-
257
- desc 'apollo SUBCOMMAND', 'Apollo knowledge graph'
258
- subcommand 'apollo', Legion::CLI::Apollo
259
-
260
- desc 'knowledge SUBCOMMAND', 'Search and manage the document knowledge base'
261
- subcommand 'knowledge', Legion::CLI::Knowledge
262
-
263
225
  desc 'schedule SUBCOMMAND', 'Manage schedules'
264
226
  subcommand 'schedule', Legion::CLI::Schedule
265
227
 
266
- desc 'completion SUBCOMMAND', 'Shell tab completion scripts'
267
- subcommand 'completion', Legion::CLI::Completion
268
-
269
- desc 'openapi SUBCOMMAND', 'OpenAPI spec generation'
270
- subcommand 'openapi', Legion::CLI::Openapi
228
+ desc 'coldstart SUBCOMMAND', 'Cold start bootstrap and Claude memory ingestion'
229
+ subcommand 'coldstart', Legion::CLI::Coldstart
271
230
 
231
+ # --- Health & maintenance ---
272
232
  desc 'doctor', 'Diagnose environment and suggest fixes'
273
233
  subcommand 'doctor', Legion::CLI::Doctor
274
234
 
275
- desc 'telemetry SUBCOMMAND', 'Session log analytics and telemetry'
276
- subcommand 'telemetry', Legion::CLI::Telemetry
277
-
278
- desc 'auth SUBCOMMAND', 'Authenticate with external services'
279
- subcommand 'auth', Legion::CLI::Auth
280
-
281
- desc 'rbac SUBCOMMAND', 'Role-based access control management'
282
- subcommand 'rbac', Legion::CLI::Rbac
283
-
284
- desc 'audit SUBCOMMAND', 'Audit log inspection and verification'
285
- subcommand 'audit', Legion::CLI::Audit
286
-
287
- desc 'detect', 'Scan environment and recommend extensions'
288
- subcommand 'detect', Legion::CLI::Detect
235
+ desc 'setup SUBCOMMAND', 'Install feature packs and configure IDE integrations'
236
+ subcommand 'setup', Legion::CLI::Setup
289
237
 
290
238
  desc 'update', 'Update Legion gems to latest versions'
291
239
  subcommand 'update', Legion::CLI::Update
@@ -293,62 +241,31 @@ module Legion
293
241
  desc 'init', 'Initialize a new Legion workspace'
294
242
  subcommand 'init', Legion::CLI::Init
295
243
 
296
- desc 'setup SUBCOMMAND', 'Install feature packs and configure IDE integrations'
297
- subcommand 'setup', Legion::CLI::Setup
298
-
299
- desc 'skill', 'Manage skills (.legion/skills/ markdown files)'
300
- subcommand 'skill', Legion::CLI::Skill
301
-
302
- desc 'prompt SUBCOMMAND', 'Manage versioned LLM prompt templates'
303
- subcommand 'prompt', Legion::CLI::Prompt
304
-
305
- desc 'dataset SUBCOMMAND', 'Manage versioned datasets'
306
- subcommand 'dataset', Legion::CLI::Dataset
307
-
308
- desc 'cost', 'Cost visibility and reporting'
309
- subcommand 'cost', Legion::CLI::Cost
310
-
311
- desc 'team SUBCOMMAND', 'Team and multi-user management'
312
- subcommand 'team', Legion::CLI::Team
313
-
314
- desc 'marketplace', 'Extension marketplace (search, info, scan)'
315
- subcommand 'marketplace', Legion::CLI::Marketplace
316
-
317
- desc 'notebook', 'Read and export Jupyter notebooks'
318
- subcommand 'notebook', Legion::CLI::Notebook
319
-
320
- desc 'llm', 'LLM provider diagnostics (status, ping, models)'
321
- subcommand 'llm', Legion::CLI::Llm
322
-
244
+ # --- Interactive & shortcuts ---
323
245
  desc 'tty', 'Rich terminal UI (onboarding, AI chat, dashboard)'
324
246
  subcommand 'tty', Legion::CLI::Tty
325
247
 
326
- desc 'eval SUBCOMMAND', 'Eval gating and experiment management'
327
- subcommand 'eval', Legion::CLI::Eval
328
-
329
- desc 'observe SUBCOMMAND', 'MCP tool observation stats'
330
- subcommand 'observe', Legion::CLI::ObserveCommand
331
-
332
- desc 'image SUBCOMMAND', 'Multimodal image analysis and comparison'
333
- subcommand 'image', Legion::CLI::Image
248
+ # --- Command groups ---
249
+ desc 'ai SUBCOMMAND', 'AI, cognitive, and knowledge commands'
250
+ subcommand 'ai', Legion::CLI::Groups::Ai
334
251
 
335
- desc 'payroll SUBCOMMAND', 'Workforce cost and labor economics'
336
- subcommand 'payroll', Legion::CLI::Payroll
252
+ desc 'git SUBCOMMAND', 'AI-assisted git workflow (commit, pr, review)'
253
+ subcommand 'git', Legion::CLI::Groups::Git
337
254
 
338
- desc 'docs SUBCOMMAND', 'Documentation site generator'
339
- subcommand 'docs', Legion::CLI::Docs
255
+ desc 'pipeline SUBCOMMAND', 'LLM pipeline tools (prompts, evals, datasets, skills)'
256
+ subcommand 'pipeline', Legion::CLI::Groups::Pipeline
340
257
 
341
- desc 'failover SUBCOMMAND', 'Region failover management'
342
- subcommand 'failover', Legion::CLI::Failover
258
+ desc 'ops SUBCOMMAND', 'Observability, cost, audit, and operations'
259
+ subcommand 'ops', Legion::CLI::Groups::Ops
343
260
 
344
- desc 'trace SUBCOMMAND', 'Natural language trace search via LLM'
345
- subcommand 'trace', Legion::CLI::TraceCommand
261
+ desc 'serve SUBCOMMAND', 'Protocol servers (MCP, ACP)'
262
+ subcommand 'serve', Legion::CLI::Groups::Serve
346
263
 
347
- desc 'features SUBCOMMAND', 'Install feature bundles (interactive selector)'
348
- subcommand 'features', Legion::CLI::Features
264
+ desc 'admin SUBCOMMAND', 'Auth, RBAC, workers, and teams'
265
+ subcommand 'admin', Legion::CLI::Groups::Admin
349
266
 
350
- desc 'debug', 'Diagnostic dump for troubleshooting (pipe to LLM for analysis)'
351
- subcommand 'debug', Legion::CLI::Debug
267
+ desc 'dev SUBCOMMAND', 'Generators, docs, marketplace, and shell completion'
268
+ subcommand 'dev', Legion::CLI::Groups::Dev
352
269
 
353
270
  desc 'tree', 'Print a tree of all available commands'
354
271
  def tree
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Legion
4
- VERSION = '1.5.21'
4
+ VERSION = '1.5.22'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legionio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.21
4
+ version: 1.5.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
@@ -625,6 +625,13 @@ files:
625
625
  - lib/legion/cli/gaia_command.rb
626
626
  - lib/legion/cli/generate_command.rb
627
627
  - lib/legion/cli/graph_command.rb
628
+ - lib/legion/cli/groups/admin_group.rb
629
+ - lib/legion/cli/groups/ai_group.rb
630
+ - lib/legion/cli/groups/dev_group.rb
631
+ - lib/legion/cli/groups/git_group.rb
632
+ - lib/legion/cli/groups/ops_group.rb
633
+ - lib/legion/cli/groups/pipeline_group.rb
634
+ - lib/legion/cli/groups/serve_group.rb
628
635
  - lib/legion/cli/image_command.rb
629
636
  - lib/legion/cli/init/config_generator.rb
630
637
  - lib/legion/cli/init/environment_detector.rb