@a1st/aix 0.10.0 → 0.11.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.
Files changed (45) hide show
  1. package/dist/commands/config/get.d.ts +1 -0
  2. package/dist/commands/config/get.d.ts.map +1 -1
  3. package/dist/commands/config/get.js +11 -6
  4. package/dist/commands/config/get.js.map +1 -1
  5. package/dist/commands/config/set.d.ts +1 -0
  6. package/dist/commands/config/set.d.ts.map +1 -1
  7. package/dist/commands/config/set.js +18 -10
  8. package/dist/commands/config/set.js.map +1 -1
  9. package/dist/commands/install.d.ts.map +1 -1
  10. package/dist/commands/install.js +10 -8
  11. package/dist/commands/install.js.map +1 -1
  12. package/dist/commands/update.d.ts +11 -0
  13. package/dist/commands/update.d.ts.map +1 -0
  14. package/dist/commands/update.js +47 -0
  15. package/dist/commands/update.js.map +1 -0
  16. package/dist/lib/add-helper.d.ts.map +1 -1
  17. package/dist/lib/add-helper.js +3 -1
  18. package/dist/lib/add-helper.js.map +1 -1
  19. package/dist/lib/help.d.ts +1 -0
  20. package/dist/lib/help.d.ts.map +1 -1
  21. package/dist/lib/help.js +5 -0
  22. package/dist/lib/help.js.map +1 -1
  23. package/dist/lib/install-helper.d.ts.map +1 -1
  24. package/dist/lib/install-helper.js +5 -1
  25. package/dist/lib/install-helper.js.map +1 -1
  26. package/dist/lib/resolve-removal-editors.js +4 -2
  27. package/dist/lib/resolve-removal-editors.js.map +1 -1
  28. package/dist/lib/update-installation.d.ts +15 -0
  29. package/dist/lib/update-installation.d.ts.map +1 -0
  30. package/dist/lib/update-installation.js +105 -0
  31. package/dist/lib/update-installation.js.map +1 -0
  32. package/dist/lib/update-notice.d.ts +10 -0
  33. package/dist/lib/update-notice.d.ts.map +1 -0
  34. package/dist/lib/update-notice.js +62 -0
  35. package/dist/lib/update-notice.js.map +1 -0
  36. package/dist/lib/update-settings.d.ts +4 -0
  37. package/dist/lib/update-settings.d.ts.map +1 -0
  38. package/dist/lib/update-settings.js +33 -0
  39. package/dist/lib/update-settings.js.map +1 -0
  40. package/dist/lib/update-worker.d.ts +2 -0
  41. package/dist/lib/update-worker.d.ts.map +1 -0
  42. package/dist/lib/update-worker.js +24 -0
  43. package/dist/lib/update-worker.js.map +1 -0
  44. package/oclif.manifest.json +177 -133
  45. package/package.json +4 -2
@@ -689,6 +689,50 @@
689
689
  "sync"
690
690
  ]
691
691
  },
692
+ "update": {
693
+ "aliases": [],
694
+ "args": {},
695
+ "description": "Update aix using the package manager that installed it",
696
+ "flags": {
697
+ "check": {
698
+ "description": "Check whether an update is available",
699
+ "name": "check",
700
+ "allowNo": false,
701
+ "type": "boolean"
702
+ },
703
+ "yes": {
704
+ "char": "y",
705
+ "description": "Allow this run even when automatic update checks are disabled",
706
+ "name": "yes",
707
+ "allowNo": false,
708
+ "type": "boolean"
709
+ },
710
+ "json": {
711
+ "description": "Output as JSON",
712
+ "name": "json",
713
+ "allowNo": false,
714
+ "type": "boolean"
715
+ }
716
+ },
717
+ "hasDynamicHelp": false,
718
+ "hiddenAliases": [],
719
+ "id": "update",
720
+ "pluginAlias": "@a1st/aix",
721
+ "pluginName": "@a1st/aix",
722
+ "pluginType": "core",
723
+ "strict": true,
724
+ "enableJsonFlag": false,
725
+ "isESM": true,
726
+ "relativePath": [
727
+ "dist",
728
+ "commands",
729
+ "update.js"
730
+ ],
731
+ "aliasPermutations": [],
732
+ "permutations": [
733
+ "update"
734
+ ]
735
+ },
692
736
  "validate": {
693
737
  "aliases": [],
694
738
  "args": {},
@@ -2327,20 +2371,13 @@
2327
2371
  "skill:add"
2328
2372
  ]
2329
2373
  },
2330
- "config:get": {
2374
+ "backups": {
2331
2375
  "aliases": [],
2332
- "args": {
2333
- "key": {
2334
- "description": "Configuration key (dot notation, e.g., \"mcp.github\")",
2335
- "name": "key",
2336
- "required": true
2337
- }
2338
- },
2339
- "description": "Get a configuration value",
2376
+ "args": {},
2377
+ "description": "List the backups aix made before changing files\n\nBefore aix changes or deletes an existing file, it copies the file into one backup store under your home directory. Restore a file with `aix backups restore <backup file>`.",
2340
2378
  "examples": [
2341
- "<%= config.bin %> <%= command.id %> skills",
2342
- "<%= config.bin %> <%= command.id %> mcp.github",
2343
- "<%= config.bin %> <%= command.id %> rules"
2379
+ "<%= config.bin %> <%= command.id %>",
2380
+ "<%= config.bin %> <%= command.id %> --json"
2344
2381
  ],
2345
2382
  "flags": {
2346
2383
  "config": {
@@ -2376,7 +2413,7 @@
2376
2413
  },
2377
2414
  "hasDynamicHelp": false,
2378
2415
  "hiddenAliases": [],
2379
- "id": "config:get",
2416
+ "id": "backups",
2380
2417
  "pluginAlias": "@a1st/aix",
2381
2418
  "pluginName": "@a1st/aix",
2382
2419
  "pluginType": "core",
@@ -2386,59 +2423,27 @@
2386
2423
  "relativePath": [
2387
2424
  "dist",
2388
2425
  "commands",
2389
- "config",
2390
- "get.js"
2391
- ],
2392
- "aliasPermutations": [],
2393
- "permutations": [
2394
- "config:get",
2395
- "get:config"
2396
- ]
2397
- },
2398
- "config": {
2399
- "aliases": [],
2400
- "args": {},
2401
- "description": "Manage aix configuration",
2402
- "flags": {},
2403
- "hasDynamicHelp": false,
2404
- "hidden": true,
2405
- "hiddenAliases": [],
2406
- "id": "config",
2407
- "pluginAlias": "@a1st/aix",
2408
- "pluginName": "@a1st/aix",
2409
- "pluginType": "core",
2410
- "strict": false,
2411
- "enableJsonFlag": false,
2412
- "isESM": true,
2413
- "relativePath": [
2414
- "dist",
2415
- "commands",
2416
- "config",
2426
+ "backups",
2417
2427
  "index.js"
2418
2428
  ],
2419
2429
  "aliasPermutations": [],
2420
2430
  "permutations": [
2421
- "config"
2431
+ "backups"
2422
2432
  ]
2423
2433
  },
2424
- "config:set": {
2434
+ "backups:restore": {
2425
2435
  "aliases": [],
2426
2436
  "args": {
2427
- "key": {
2428
- "description": "Configuration key (dot notation, e.g., \"skills.typescript\")",
2429
- "name": "key",
2430
- "required": true
2431
- },
2432
- "value": {
2433
- "description": "Value to set (JSON for objects/arrays)",
2434
- "name": "value",
2437
+ "backup": {
2438
+ "description": "Backup file to restore, as listed by `aix backups`",
2439
+ "name": "backup",
2435
2440
  "required": true
2436
2441
  }
2437
2442
  },
2438
- "description": "Set a configuration value",
2443
+ "description": "Restore a file from a backup\n\nCopies a backup back over the file it was taken from. The file being replaced is backed up first, so a restore can be undone the same way.",
2439
2444
  "examples": [
2440
- "<%= config.bin %> <%= command.id %> skills.typescript \"^1.0.0\"",
2441
- "<%= config.bin %> <%= command.id %> rules '[\"Use TypeScript\"]'"
2445
+ "<%= config.bin %> <%= command.id %> ~/.aix/backups/home/.codex/config.toml.2026-01-15T10-30-00-000Z.backup",
2446
+ "<%= config.bin %> <%= command.id %> <backup file> --to ./config.toml"
2442
2447
  ],
2443
2448
  "flags": {
2444
2449
  "config": {
@@ -2470,11 +2475,25 @@
2470
2475
  "name": "json",
2471
2476
  "allowNo": false,
2472
2477
  "type": "boolean"
2478
+ },
2479
+ "to": {
2480
+ "description": "Restore to this path instead of the file the backup was taken from",
2481
+ "name": "to",
2482
+ "hasDynamicHelp": false,
2483
+ "multiple": false,
2484
+ "type": "option"
2485
+ },
2486
+ "yes": {
2487
+ "char": "y",
2488
+ "description": "Skip confirmation prompt",
2489
+ "name": "yes",
2490
+ "allowNo": false,
2491
+ "type": "boolean"
2473
2492
  }
2474
2493
  },
2475
2494
  "hasDynamicHelp": false,
2476
2495
  "hiddenAliases": [],
2477
- "id": "config:set",
2496
+ "id": "backups:restore",
2478
2497
  "pluginAlias": "@a1st/aix",
2479
2498
  "pluginName": "@a1st/aix",
2480
2499
  "pluginType": "core",
@@ -2484,22 +2503,24 @@
2484
2503
  "relativePath": [
2485
2504
  "dist",
2486
2505
  "commands",
2487
- "config",
2488
- "set.js"
2506
+ "backups",
2507
+ "restore.js"
2489
2508
  ],
2490
2509
  "aliasPermutations": [],
2491
2510
  "permutations": [
2492
- "config:set",
2493
- "set:config"
2511
+ "backups:restore",
2512
+ "restore:backups"
2494
2513
  ]
2495
2514
  },
2496
- "config:show": {
2497
- "aliases": [],
2515
+ "cache:clear": {
2516
+ "aliases": [
2517
+ "cache:clean"
2518
+ ],
2498
2519
  "args": {},
2499
- "description": "Show the current configuration",
2520
+ "description": "Clear cache files created by aix",
2500
2521
  "examples": [
2501
- "<%= config.bin %> <%= command.id %>",
2502
- "<%= config.bin %> <%= command.id %> --resolved"
2522
+ "<%= config.bin %> cache clear",
2523
+ "<%= config.bin %> cache clean"
2503
2524
  ],
2504
2525
  "flags": {
2505
2526
  "config": {
@@ -2531,17 +2552,11 @@
2531
2552
  "name": "json",
2532
2553
  "allowNo": false,
2533
2554
  "type": "boolean"
2534
- },
2535
- "resolved": {
2536
- "description": "Show the final merged configuration (after extends and local overrides)",
2537
- "name": "resolved",
2538
- "allowNo": false,
2539
- "type": "boolean"
2540
2555
  }
2541
2556
  },
2542
2557
  "hasDynamicHelp": false,
2543
2558
  "hiddenAliases": [],
2544
- "id": "config:show",
2559
+ "id": "cache:clear",
2545
2560
  "pluginAlias": "@a1st/aix",
2546
2561
  "pluginName": "@a1st/aix",
2547
2562
  "pluginType": "core",
@@ -2551,24 +2566,58 @@
2551
2566
  "relativePath": [
2552
2567
  "dist",
2553
2568
  "commands",
2554
- "config",
2555
- "show.js"
2569
+ "cache",
2570
+ "clear.js"
2571
+ ],
2572
+ "aliasPermutations": [
2573
+ "cache:clean",
2574
+ "clean:cache"
2556
2575
  ],
2557
- "aliasPermutations": [],
2558
2576
  "permutations": [
2559
- "config:show",
2560
- "show:config"
2577
+ "cache:clear",
2578
+ "clear:cache"
2561
2579
  ]
2562
2580
  },
2563
- "cache:clear": {
2564
- "aliases": [
2565
- "cache:clean"
2566
- ],
2581
+ "cache": {
2582
+ "aliases": [],
2567
2583
  "args": {},
2568
2584
  "description": "Clear cache files created by aix",
2585
+ "flags": {},
2586
+ "hasDynamicHelp": false,
2587
+ "hidden": true,
2588
+ "hiddenAliases": [],
2589
+ "id": "cache",
2590
+ "pluginAlias": "@a1st/aix",
2591
+ "pluginName": "@a1st/aix",
2592
+ "pluginType": "core",
2593
+ "strict": false,
2594
+ "enableJsonFlag": false,
2595
+ "isESM": true,
2596
+ "relativePath": [
2597
+ "dist",
2598
+ "commands",
2599
+ "cache",
2600
+ "index.js"
2601
+ ],
2602
+ "aliasPermutations": [],
2603
+ "permutations": [
2604
+ "cache"
2605
+ ]
2606
+ },
2607
+ "config:get": {
2608
+ "aliases": [],
2609
+ "args": {
2610
+ "key": {
2611
+ "description": "Configuration key (dot notation, e.g., \"mcp.github\")",
2612
+ "name": "key",
2613
+ "required": true
2614
+ }
2615
+ },
2616
+ "description": "Get a configuration value",
2569
2617
  "examples": [
2570
- "<%= config.bin %> cache clear",
2571
- "<%= config.bin %> cache clean"
2618
+ "<%= config.bin %> <%= command.id %> skills",
2619
+ "<%= config.bin %> <%= command.id %> mcp.github",
2620
+ "<%= config.bin %> <%= command.id %> rules"
2572
2621
  ],
2573
2622
  "flags": {
2574
2623
  "config": {
@@ -2604,7 +2653,7 @@
2604
2653
  },
2605
2654
  "hasDynamicHelp": false,
2606
2655
  "hiddenAliases": [],
2607
- "id": "cache:clear",
2656
+ "id": "config:get",
2608
2657
  "pluginAlias": "@a1st/aix",
2609
2658
  "pluginName": "@a1st/aix",
2610
2659
  "pluginType": "core",
@@ -2614,27 +2663,24 @@
2614
2663
  "relativePath": [
2615
2664
  "dist",
2616
2665
  "commands",
2617
- "cache",
2618
- "clear.js"
2619
- ],
2620
- "aliasPermutations": [
2621
- "cache:clean",
2622
- "clean:cache"
2666
+ "config",
2667
+ "get.js"
2623
2668
  ],
2669
+ "aliasPermutations": [],
2624
2670
  "permutations": [
2625
- "cache:clear",
2626
- "clear:cache"
2671
+ "config:get",
2672
+ "get:config"
2627
2673
  ]
2628
2674
  },
2629
- "cache": {
2675
+ "config": {
2630
2676
  "aliases": [],
2631
2677
  "args": {},
2632
- "description": "Clear cache files created by aix",
2678
+ "description": "Manage aix configuration",
2633
2679
  "flags": {},
2634
2680
  "hasDynamicHelp": false,
2635
2681
  "hidden": true,
2636
2682
  "hiddenAliases": [],
2637
- "id": "cache",
2683
+ "id": "config",
2638
2684
  "pluginAlias": "@a1st/aix",
2639
2685
  "pluginName": "@a1st/aix",
2640
2686
  "pluginType": "core",
@@ -2644,21 +2690,32 @@
2644
2690
  "relativePath": [
2645
2691
  "dist",
2646
2692
  "commands",
2647
- "cache",
2693
+ "config",
2648
2694
  "index.js"
2649
2695
  ],
2650
2696
  "aliasPermutations": [],
2651
2697
  "permutations": [
2652
- "cache"
2698
+ "config"
2653
2699
  ]
2654
2700
  },
2655
- "backups": {
2701
+ "config:set": {
2656
2702
  "aliases": [],
2657
- "args": {},
2658
- "description": "List the backups aix made before changing files\n\nBefore aix changes or deletes an existing file, it copies the file into one backup store under your home directory. Restore a file with `aix backups restore <backup file>`.",
2703
+ "args": {
2704
+ "key": {
2705
+ "description": "Configuration key (dot notation, e.g., \"skills.typescript\")",
2706
+ "name": "key",
2707
+ "required": true
2708
+ },
2709
+ "value": {
2710
+ "description": "Value to set (JSON for objects/arrays)",
2711
+ "name": "value",
2712
+ "required": true
2713
+ }
2714
+ },
2715
+ "description": "Set a configuration value",
2659
2716
  "examples": [
2660
- "<%= config.bin %> <%= command.id %>",
2661
- "<%= config.bin %> <%= command.id %> --json"
2717
+ "<%= config.bin %> <%= command.id %> skills.typescript \"^1.0.0\"",
2718
+ "<%= config.bin %> <%= command.id %> rules '[\"Use TypeScript\"]'"
2662
2719
  ],
2663
2720
  "flags": {
2664
2721
  "config": {
@@ -2694,7 +2751,7 @@
2694
2751
  },
2695
2752
  "hasDynamicHelp": false,
2696
2753
  "hiddenAliases": [],
2697
- "id": "backups",
2754
+ "id": "config:set",
2698
2755
  "pluginAlias": "@a1st/aix",
2699
2756
  "pluginName": "@a1st/aix",
2700
2757
  "pluginType": "core",
@@ -2704,27 +2761,22 @@
2704
2761
  "relativePath": [
2705
2762
  "dist",
2706
2763
  "commands",
2707
- "backups",
2708
- "index.js"
2764
+ "config",
2765
+ "set.js"
2709
2766
  ],
2710
2767
  "aliasPermutations": [],
2711
2768
  "permutations": [
2712
- "backups"
2769
+ "config:set",
2770
+ "set:config"
2713
2771
  ]
2714
2772
  },
2715
- "backups:restore": {
2773
+ "config:show": {
2716
2774
  "aliases": [],
2717
- "args": {
2718
- "backup": {
2719
- "description": "Backup file to restore, as listed by `aix backups`",
2720
- "name": "backup",
2721
- "required": true
2722
- }
2723
- },
2724
- "description": "Restore a file from a backup\n\nCopies a backup back over the file it was taken from. The file being replaced is backed up first, so a restore can be undone the same way.",
2775
+ "args": {},
2776
+ "description": "Show the current configuration",
2725
2777
  "examples": [
2726
- "<%= config.bin %> <%= command.id %> ~/.aix/backups/home/.codex/config.toml.2026-01-15T10-30-00-000Z.backup",
2727
- "<%= config.bin %> <%= command.id %> <backup file> --to ./config.toml"
2778
+ "<%= config.bin %> <%= command.id %>",
2779
+ "<%= config.bin %> <%= command.id %> --resolved"
2728
2780
  ],
2729
2781
  "flags": {
2730
2782
  "config": {
@@ -2757,24 +2809,16 @@
2757
2809
  "allowNo": false,
2758
2810
  "type": "boolean"
2759
2811
  },
2760
- "to": {
2761
- "description": "Restore to this path instead of the file the backup was taken from",
2762
- "name": "to",
2763
- "hasDynamicHelp": false,
2764
- "multiple": false,
2765
- "type": "option"
2766
- },
2767
- "yes": {
2768
- "char": "y",
2769
- "description": "Skip confirmation prompt",
2770
- "name": "yes",
2812
+ "resolved": {
2813
+ "description": "Show the final merged configuration (after extends and local overrides)",
2814
+ "name": "resolved",
2771
2815
  "allowNo": false,
2772
2816
  "type": "boolean"
2773
2817
  }
2774
2818
  },
2775
2819
  "hasDynamicHelp": false,
2776
2820
  "hiddenAliases": [],
2777
- "id": "backups:restore",
2821
+ "id": "config:show",
2778
2822
  "pluginAlias": "@a1st/aix",
2779
2823
  "pluginName": "@a1st/aix",
2780
2824
  "pluginType": "core",
@@ -2784,13 +2828,13 @@
2784
2828
  "relativePath": [
2785
2829
  "dist",
2786
2830
  "commands",
2787
- "backups",
2788
- "restore.js"
2831
+ "config",
2832
+ "show.js"
2789
2833
  ],
2790
2834
  "aliasPermutations": [],
2791
2835
  "permutations": [
2792
- "backups:restore",
2793
- "restore:backups"
2836
+ "config:show",
2837
+ "show:config"
2794
2838
  ]
2795
2839
  },
2796
2840
  "list:agents": {
@@ -5593,5 +5637,5 @@
5593
5637
  ]
5594
5638
  }
5595
5639
  },
5596
- "version": "0.10.0"
5640
+ "version": "0.11.0"
5597
5641
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a1st/aix",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "CLI for aix - unified AI agent configuration",
5
5
  "keywords": [
6
6
  "agents",
@@ -61,12 +61,14 @@
61
61
  "@oclif/plugin-version": "^2.2.24",
62
62
  "@oclif/table": "0.3.6",
63
63
  "chalk": "^5.4.1",
64
+ "compare-versions": "6.1.1",
64
65
  "ink": "4.4.1",
65
66
  "ink-text-input": "5.0.1",
66
67
  "ora": "^8.1.1",
67
68
  "p-map": "7.0.4",
68
69
  "pathe": "1.1.2",
69
- "react": "18.2.0"
70
+ "react": "18.2.0",
71
+ "tinyexec": "1.4.0"
70
72
  },
71
73
  "devDependencies": {
72
74
  "@oclif/test": "^4.1.12",