@quonfig/cli 0.0.37 → 0.0.38

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.
@@ -1,5 +1,120 @@
1
1
  {
2
2
  "commands": {
3
+ "activity": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Inspect what changed in the workspace (recent commits, per-config history, deletions).",
7
+ "examples": [
8
+ "<%= config.bin %> activity feed",
9
+ "<%= config.bin %> activity history my.flag",
10
+ "<%= config.bin %> activity deleted",
11
+ "<%= config.bin %> activity restore my.flag --yes"
12
+ ],
13
+ "flags": {
14
+ "json": {
15
+ "description": "Format output as json.",
16
+ "helpGroup": "GLOBAL",
17
+ "name": "json",
18
+ "allowNo": false,
19
+ "type": "boolean"
20
+ },
21
+ "interactive": {
22
+ "description": "Force interactive mode",
23
+ "helpGroup": "GLOBAL",
24
+ "name": "interactive",
25
+ "allowNo": true,
26
+ "type": "boolean"
27
+ },
28
+ "no-color": {
29
+ "description": "Do not colorize output",
30
+ "env": "NO_COLOR",
31
+ "helpGroup": "GLOBAL",
32
+ "name": "no-color",
33
+ "allowNo": false,
34
+ "type": "boolean"
35
+ },
36
+ "verbose": {
37
+ "description": "Verbose output",
38
+ "helpGroup": "GLOBAL",
39
+ "name": "verbose",
40
+ "allowNo": false,
41
+ "type": "boolean"
42
+ }
43
+ },
44
+ "hasDynamicHelp": false,
45
+ "hiddenAliases": [],
46
+ "id": "activity",
47
+ "pluginAlias": "@quonfig/cli",
48
+ "pluginName": "@quonfig/cli",
49
+ "pluginType": "core",
50
+ "strict": true,
51
+ "enableJsonFlag": true,
52
+ "isESM": true,
53
+ "relativePath": [
54
+ "dist",
55
+ "commands",
56
+ "activity.js"
57
+ ]
58
+ },
59
+ "audit-log": {
60
+ "aliases": [],
61
+ "args": {
62
+ "name": {
63
+ "description": "Optional config key. If present, dispatches to `activity history NAME`; otherwise `activity feed`.",
64
+ "name": "name"
65
+ }
66
+ },
67
+ "description": "Alias: `qfg audit-log` → `qfg activity feed`; `qfg audit-log NAME` → `qfg activity history NAME`.",
68
+ "examples": [
69
+ "<%= config.bin %> <%= command.id %>",
70
+ "<%= config.bin %> <%= command.id %> my.flag"
71
+ ],
72
+ "flags": {
73
+ "json": {
74
+ "description": "Format output as json.",
75
+ "helpGroup": "GLOBAL",
76
+ "name": "json",
77
+ "allowNo": false,
78
+ "type": "boolean"
79
+ },
80
+ "interactive": {
81
+ "description": "Force interactive mode",
82
+ "helpGroup": "GLOBAL",
83
+ "name": "interactive",
84
+ "allowNo": true,
85
+ "type": "boolean"
86
+ },
87
+ "no-color": {
88
+ "description": "Do not colorize output",
89
+ "env": "NO_COLOR",
90
+ "helpGroup": "GLOBAL",
91
+ "name": "no-color",
92
+ "allowNo": false,
93
+ "type": "boolean"
94
+ },
95
+ "verbose": {
96
+ "description": "Verbose output",
97
+ "helpGroup": "GLOBAL",
98
+ "name": "verbose",
99
+ "allowNo": false,
100
+ "type": "boolean"
101
+ }
102
+ },
103
+ "hasDynamicHelp": false,
104
+ "hiddenAliases": [],
105
+ "id": "audit-log",
106
+ "pluginAlias": "@quonfig/cli",
107
+ "pluginName": "@quonfig/cli",
108
+ "pluginType": "core",
109
+ "strict": false,
110
+ "enableJsonFlag": true,
111
+ "isESM": true,
112
+ "relativePath": [
113
+ "dist",
114
+ "commands",
115
+ "audit-log.js"
116
+ ]
117
+ },
3
118
  "config-schema": {
4
119
  "aliases": [],
5
120
  "args": {},
@@ -519,6 +634,65 @@
519
634
  "get.js"
520
635
  ]
521
636
  },
637
+ "history": {
638
+ "aliases": [],
639
+ "args": {
640
+ "name": {
641
+ "description": "Config key to inspect",
642
+ "name": "name",
643
+ "required": true
644
+ }
645
+ },
646
+ "description": "Alias: `qfg history NAME` → `qfg activity history NAME`.",
647
+ "examples": [
648
+ "<%= config.bin %> <%= command.id %> my.flag"
649
+ ],
650
+ "flags": {
651
+ "json": {
652
+ "description": "Format output as json.",
653
+ "helpGroup": "GLOBAL",
654
+ "name": "json",
655
+ "allowNo": false,
656
+ "type": "boolean"
657
+ },
658
+ "interactive": {
659
+ "description": "Force interactive mode",
660
+ "helpGroup": "GLOBAL",
661
+ "name": "interactive",
662
+ "allowNo": true,
663
+ "type": "boolean"
664
+ },
665
+ "no-color": {
666
+ "description": "Do not colorize output",
667
+ "env": "NO_COLOR",
668
+ "helpGroup": "GLOBAL",
669
+ "name": "no-color",
670
+ "allowNo": false,
671
+ "type": "boolean"
672
+ },
673
+ "verbose": {
674
+ "description": "Verbose output",
675
+ "helpGroup": "GLOBAL",
676
+ "name": "verbose",
677
+ "allowNo": false,
678
+ "type": "boolean"
679
+ }
680
+ },
681
+ "hasDynamicHelp": false,
682
+ "hiddenAliases": [],
683
+ "id": "history",
684
+ "pluginAlias": "@quonfig/cli",
685
+ "pluginName": "@quonfig/cli",
686
+ "pluginType": "core",
687
+ "strict": false,
688
+ "enableJsonFlag": true,
689
+ "isESM": true,
690
+ "relativePath": [
691
+ "dist",
692
+ "commands",
693
+ "history.js"
694
+ ]
695
+ },
522
696
  "info": {
523
697
  "aliases": [
524
698
  "flag:show",
@@ -964,6 +1138,60 @@
964
1138
  "log-level.js"
965
1139
  ]
966
1140
  },
1141
+ "log": {
1142
+ "aliases": [],
1143
+ "args": {},
1144
+ "description": "Alias: `qfg log` → `qfg activity feed`.",
1145
+ "examples": [
1146
+ "<%= config.bin %> <%= command.id %>",
1147
+ "<%= config.bin %> <%= command.id %> --limit 5"
1148
+ ],
1149
+ "flags": {
1150
+ "json": {
1151
+ "description": "Format output as json.",
1152
+ "helpGroup": "GLOBAL",
1153
+ "name": "json",
1154
+ "allowNo": false,
1155
+ "type": "boolean"
1156
+ },
1157
+ "interactive": {
1158
+ "description": "Force interactive mode",
1159
+ "helpGroup": "GLOBAL",
1160
+ "name": "interactive",
1161
+ "allowNo": true,
1162
+ "type": "boolean"
1163
+ },
1164
+ "no-color": {
1165
+ "description": "Do not colorize output",
1166
+ "env": "NO_COLOR",
1167
+ "helpGroup": "GLOBAL",
1168
+ "name": "no-color",
1169
+ "allowNo": false,
1170
+ "type": "boolean"
1171
+ },
1172
+ "verbose": {
1173
+ "description": "Verbose output",
1174
+ "helpGroup": "GLOBAL",
1175
+ "name": "verbose",
1176
+ "allowNo": false,
1177
+ "type": "boolean"
1178
+ }
1179
+ },
1180
+ "hasDynamicHelp": false,
1181
+ "hiddenAliases": [],
1182
+ "id": "log",
1183
+ "pluginAlias": "@quonfig/cli",
1184
+ "pluginName": "@quonfig/cli",
1185
+ "pluginType": "core",
1186
+ "strict": false,
1187
+ "enableJsonFlag": true,
1188
+ "isESM": true,
1189
+ "relativePath": [
1190
+ "dist",
1191
+ "commands",
1192
+ "log.js"
1193
+ ]
1194
+ },
967
1195
  "login": {
968
1196
  "aliases": [],
969
1197
  "args": {},
@@ -2207,6 +2435,351 @@
2207
2435
  "workspace.js"
2208
2436
  ]
2209
2437
  },
2438
+ "activity:deleted": {
2439
+ "aliases": [],
2440
+ "args": {},
2441
+ "description": "List configs that were deleted from the workspace and have not been restored.\n\nUseful for \"did somebody delete X?\" — pair with `qfg activity restore NAME`\nto undelete a tombstoned config.",
2442
+ "examples": [
2443
+ "<%= config.bin %> <%= command.id %>",
2444
+ "<%= config.bin %> <%= command.id %> --json"
2445
+ ],
2446
+ "flags": {
2447
+ "json": {
2448
+ "description": "Format output as json.",
2449
+ "helpGroup": "GLOBAL",
2450
+ "name": "json",
2451
+ "allowNo": false,
2452
+ "type": "boolean"
2453
+ },
2454
+ "interactive": {
2455
+ "description": "Force interactive mode",
2456
+ "helpGroup": "GLOBAL",
2457
+ "name": "interactive",
2458
+ "allowNo": true,
2459
+ "type": "boolean"
2460
+ },
2461
+ "no-color": {
2462
+ "description": "Do not colorize output",
2463
+ "env": "NO_COLOR",
2464
+ "helpGroup": "GLOBAL",
2465
+ "name": "no-color",
2466
+ "allowNo": false,
2467
+ "type": "boolean"
2468
+ },
2469
+ "verbose": {
2470
+ "description": "Verbose output",
2471
+ "helpGroup": "GLOBAL",
2472
+ "name": "verbose",
2473
+ "allowNo": false,
2474
+ "type": "boolean"
2475
+ },
2476
+ "workspace": {
2477
+ "char": "w",
2478
+ "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
2479
+ "helpGroup": "GLOBAL",
2480
+ "name": "workspace",
2481
+ "required": false,
2482
+ "hasDynamicHelp": false,
2483
+ "multiple": false,
2484
+ "type": "option"
2485
+ },
2486
+ "profile": {
2487
+ "char": "p",
2488
+ "description": "Deprecated: use --workspace instead",
2489
+ "helpGroup": "GLOBAL",
2490
+ "hidden": true,
2491
+ "name": "profile",
2492
+ "required": false,
2493
+ "hasDynamicHelp": false,
2494
+ "multiple": false,
2495
+ "type": "option"
2496
+ }
2497
+ },
2498
+ "hasDynamicHelp": false,
2499
+ "hiddenAliases": [],
2500
+ "id": "activity:deleted",
2501
+ "pluginAlias": "@quonfig/cli",
2502
+ "pluginName": "@quonfig/cli",
2503
+ "pluginType": "core",
2504
+ "strict": true,
2505
+ "enableJsonFlag": true,
2506
+ "isESM": true,
2507
+ "relativePath": [
2508
+ "dist",
2509
+ "commands",
2510
+ "activity",
2511
+ "deleted.js"
2512
+ ]
2513
+ },
2514
+ "activity:feed": {
2515
+ "aliases": [],
2516
+ "args": {},
2517
+ "description": "Recent activity across the workspace, newest first.\n\nEach entry shows who changed which config, the action (created/updated/deleted/restored),\nand the human-readable audit message produced by the server. The server already\ntranslates JSON diffs into messages — this command does not re-translate.",
2518
+ "examples": [
2519
+ "<%= config.bin %> <%= command.id %>",
2520
+ "<%= config.bin %> <%= command.id %> --limit 5",
2521
+ "<%= config.bin %> <%= command.id %> --json"
2522
+ ],
2523
+ "flags": {
2524
+ "json": {
2525
+ "description": "Format output as json.",
2526
+ "helpGroup": "GLOBAL",
2527
+ "name": "json",
2528
+ "allowNo": false,
2529
+ "type": "boolean"
2530
+ },
2531
+ "interactive": {
2532
+ "description": "Force interactive mode",
2533
+ "helpGroup": "GLOBAL",
2534
+ "name": "interactive",
2535
+ "allowNo": true,
2536
+ "type": "boolean"
2537
+ },
2538
+ "no-color": {
2539
+ "description": "Do not colorize output",
2540
+ "env": "NO_COLOR",
2541
+ "helpGroup": "GLOBAL",
2542
+ "name": "no-color",
2543
+ "allowNo": false,
2544
+ "type": "boolean"
2545
+ },
2546
+ "verbose": {
2547
+ "description": "Verbose output",
2548
+ "helpGroup": "GLOBAL",
2549
+ "name": "verbose",
2550
+ "allowNo": false,
2551
+ "type": "boolean"
2552
+ },
2553
+ "workspace": {
2554
+ "char": "w",
2555
+ "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
2556
+ "helpGroup": "GLOBAL",
2557
+ "name": "workspace",
2558
+ "required": false,
2559
+ "hasDynamicHelp": false,
2560
+ "multiple": false,
2561
+ "type": "option"
2562
+ },
2563
+ "profile": {
2564
+ "char": "p",
2565
+ "description": "Deprecated: use --workspace instead",
2566
+ "helpGroup": "GLOBAL",
2567
+ "hidden": true,
2568
+ "name": "profile",
2569
+ "required": false,
2570
+ "hasDynamicHelp": false,
2571
+ "multiple": false,
2572
+ "type": "option"
2573
+ },
2574
+ "limit": {
2575
+ "description": "Maximum number of feed entries (1-100)",
2576
+ "name": "limit",
2577
+ "default": 30,
2578
+ "hasDynamicHelp": false,
2579
+ "multiple": false,
2580
+ "type": "option"
2581
+ }
2582
+ },
2583
+ "hasDynamicHelp": false,
2584
+ "hiddenAliases": [],
2585
+ "id": "activity:feed",
2586
+ "pluginAlias": "@quonfig/cli",
2587
+ "pluginName": "@quonfig/cli",
2588
+ "pluginType": "core",
2589
+ "strict": true,
2590
+ "enableJsonFlag": true,
2591
+ "isESM": true,
2592
+ "relativePath": [
2593
+ "dist",
2594
+ "commands",
2595
+ "activity",
2596
+ "feed.js"
2597
+ ]
2598
+ },
2599
+ "activity:history": {
2600
+ "aliases": [],
2601
+ "args": {
2602
+ "name": {
2603
+ "description": "config/feature-flag/etc. name",
2604
+ "name": "name"
2605
+ }
2606
+ },
2607
+ "description": "Per-config audit trail for a flag, config, log-level, segment, or schema.\n\nResolves NAME against the workspace metadata (no need to specify type) and\nreturns the full commit history for that file with audit messages translated\nby the server. Restored entries are rendered distinctly so a recovery doesn't\nlook like a fresh create.",
2608
+ "examples": [
2609
+ "<%= config.bin %> <%= command.id %> my.flag",
2610
+ "<%= config.bin %> <%= command.id %> request.timeout --json"
2611
+ ],
2612
+ "flags": {
2613
+ "json": {
2614
+ "description": "Format output as json.",
2615
+ "helpGroup": "GLOBAL",
2616
+ "name": "json",
2617
+ "allowNo": false,
2618
+ "type": "boolean"
2619
+ },
2620
+ "interactive": {
2621
+ "description": "Force interactive mode",
2622
+ "helpGroup": "GLOBAL",
2623
+ "name": "interactive",
2624
+ "allowNo": true,
2625
+ "type": "boolean"
2626
+ },
2627
+ "no-color": {
2628
+ "description": "Do not colorize output",
2629
+ "env": "NO_COLOR",
2630
+ "helpGroup": "GLOBAL",
2631
+ "name": "no-color",
2632
+ "allowNo": false,
2633
+ "type": "boolean"
2634
+ },
2635
+ "verbose": {
2636
+ "description": "Verbose output",
2637
+ "helpGroup": "GLOBAL",
2638
+ "name": "verbose",
2639
+ "allowNo": false,
2640
+ "type": "boolean"
2641
+ },
2642
+ "workspace": {
2643
+ "char": "w",
2644
+ "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
2645
+ "helpGroup": "GLOBAL",
2646
+ "name": "workspace",
2647
+ "required": false,
2648
+ "hasDynamicHelp": false,
2649
+ "multiple": false,
2650
+ "type": "option"
2651
+ },
2652
+ "profile": {
2653
+ "char": "p",
2654
+ "description": "Deprecated: use --workspace instead",
2655
+ "helpGroup": "GLOBAL",
2656
+ "hidden": true,
2657
+ "name": "profile",
2658
+ "required": false,
2659
+ "hasDynamicHelp": false,
2660
+ "multiple": false,
2661
+ "type": "option"
2662
+ }
2663
+ },
2664
+ "hasDynamicHelp": false,
2665
+ "hiddenAliases": [],
2666
+ "id": "activity:history",
2667
+ "pluginAlias": "@quonfig/cli",
2668
+ "pluginName": "@quonfig/cli",
2669
+ "pluginType": "core",
2670
+ "strict": true,
2671
+ "enableJsonFlag": true,
2672
+ "isESM": true,
2673
+ "relativePath": [
2674
+ "dist",
2675
+ "commands",
2676
+ "activity",
2677
+ "history.js"
2678
+ ]
2679
+ },
2680
+ "activity:restore": {
2681
+ "aliases": [],
2682
+ "args": {
2683
+ "name": {
2684
+ "description": "config/feature-flag/etc. name",
2685
+ "name": "name"
2686
+ }
2687
+ },
2688
+ "description": "Undelete a config that was previously removed.\n\nLooks up the most recent deletion for the key (so you see who deleted it and when),\nthen asks for confirmation before re-creating the file from the prior content.\nSchemas cannot be restored — use git history instead.",
2689
+ "examples": [
2690
+ "<%= config.bin %> <%= command.id %> my.flag --yes",
2691
+ "<%= config.bin %> <%= command.id %> request.timeout --type config --yes"
2692
+ ],
2693
+ "flags": {
2694
+ "json": {
2695
+ "description": "Format output as json.",
2696
+ "helpGroup": "GLOBAL",
2697
+ "name": "json",
2698
+ "allowNo": false,
2699
+ "type": "boolean"
2700
+ },
2701
+ "interactive": {
2702
+ "description": "Force interactive mode",
2703
+ "helpGroup": "GLOBAL",
2704
+ "name": "interactive",
2705
+ "allowNo": true,
2706
+ "type": "boolean"
2707
+ },
2708
+ "no-color": {
2709
+ "description": "Do not colorize output",
2710
+ "env": "NO_COLOR",
2711
+ "helpGroup": "GLOBAL",
2712
+ "name": "no-color",
2713
+ "allowNo": false,
2714
+ "type": "boolean"
2715
+ },
2716
+ "verbose": {
2717
+ "description": "Verbose output",
2718
+ "helpGroup": "GLOBAL",
2719
+ "name": "verbose",
2720
+ "allowNo": false,
2721
+ "type": "boolean"
2722
+ },
2723
+ "workspace": {
2724
+ "char": "w",
2725
+ "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
2726
+ "helpGroup": "GLOBAL",
2727
+ "name": "workspace",
2728
+ "required": false,
2729
+ "hasDynamicHelp": false,
2730
+ "multiple": false,
2731
+ "type": "option"
2732
+ },
2733
+ "profile": {
2734
+ "char": "p",
2735
+ "description": "Deprecated: use --workspace instead",
2736
+ "helpGroup": "GLOBAL",
2737
+ "hidden": true,
2738
+ "name": "profile",
2739
+ "required": false,
2740
+ "hasDynamicHelp": false,
2741
+ "multiple": false,
2742
+ "type": "option"
2743
+ },
2744
+ "type": {
2745
+ "description": "Config type. Optional — inferred from history when omitted.",
2746
+ "name": "type",
2747
+ "required": false,
2748
+ "hasDynamicHelp": false,
2749
+ "multiple": false,
2750
+ "options": [
2751
+ "feature_flag",
2752
+ "config",
2753
+ "log_level",
2754
+ "segment",
2755
+ "flag",
2756
+ "log-level"
2757
+ ],
2758
+ "type": "option"
2759
+ },
2760
+ "yes": {
2761
+ "description": "Skip the confirmation prompt",
2762
+ "name": "yes",
2763
+ "allowNo": false,
2764
+ "type": "boolean"
2765
+ }
2766
+ },
2767
+ "hasDynamicHelp": false,
2768
+ "hiddenAliases": [],
2769
+ "id": "activity:restore",
2770
+ "pluginAlias": "@quonfig/cli",
2771
+ "pluginName": "@quonfig/cli",
2772
+ "pluginType": "core",
2773
+ "strict": true,
2774
+ "enableJsonFlag": true,
2775
+ "isESM": true,
2776
+ "relativePath": [
2777
+ "dist",
2778
+ "commands",
2779
+ "activity",
2780
+ "restore.js"
2781
+ ]
2782
+ },
2210
2783
  "migrate:doctor": {
2211
2784
  "aliases": [],
2212
2785
  "args": {},
@@ -2916,5 +3489,5 @@
2916
3489
  ]
2917
3490
  }
2918
3491
  },
2919
- "version": "0.0.37"
3492
+ "version": "0.0.38"
2920
3493
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "packageManager": "yarn@4.11.0+sha512.4e54aeace9141df2f0177c266b05ec50dc044638157dae128c471ba65994ac802122d7ab35bcd9e81641228b7dcf24867d28e750e0bcae8a05277d600008ad54",
3
3
  "name": "@quonfig/cli",
4
- "version": "0.0.37",
4
+ "version": "0.0.38",
5
5
  "bugs": {
6
6
  "url": "https://github.com/quonfig/cli/issues"
7
7
  },
@@ -21,7 +21,7 @@
21
21
  "@oclif/core": "^3.18.2",
22
22
  "@oclif/plugin-help": "^6",
23
23
  "@oclif/plugin-plugins": "^4",
24
- "@quonfig/node": "^0.0.11",
24
+ "@quonfig/node": "^0.0.24",
25
25
  "acorn": "^8.10.0",
26
26
  "acorn-walk": "^8.2.0",
27
27
  "chalk": "^5.4.1",
@@ -99,7 +99,8 @@
99
99
  "test": "NODE_ENV=test mocha \"test/**/*.test.ts\" --exit",
100
100
  "test:ci": "NODE_ENV=test mocha --forbid-only \"test/**/*.test.ts\" --exit",
101
101
  "test:debug:single": "node --inspect-brk --loader ts-node/esm --no-warnings=ExperimentalWarning ./node_modules/.bin/mocha --exit",
102
- "update-submodule": "git submodule update --remote src/quonfig-common"
102
+ "update-submodule": "git submodule update --remote src/quonfig-common",
103
+ "version": "prettier --write CHANGELOG.md README.md && git add CHANGELOG.md README.md"
103
104
  },
104
105
  "types": "dist/index.d.ts",
105
106
  "exports": "./dist/index.js",