@quonfig/cli 0.0.36 → 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.
- package/README.md +288 -35
- package/dist/commands/activity/deleted.d.ts +7 -0
- package/dist/commands/activity/deleted.js +32 -0
- package/dist/commands/activity/feed.d.ts +10 -0
- package/dist/commands/activity/feed.js +77 -0
- package/dist/commands/activity/history.d.ts +10 -0
- package/dist/commands/activity/history.js +61 -0
- package/dist/commands/activity/restore.d.ts +21 -0
- package/dist/commands/activity/restore.js +113 -0
- package/dist/commands/activity.d.ts +6 -0
- package/dist/commands/activity.js +17 -0
- package/dist/commands/audit-log.d.ts +19 -0
- package/dist/commands/audit-log.js +30 -0
- package/dist/commands/config-schema.d.ts +1 -0
- package/dist/commands/config-schema.js +4 -1
- package/dist/commands/history.d.ts +14 -0
- package/dist/commands/history.js +19 -0
- package/dist/commands/info.js +1 -1
- package/dist/commands/log.d.ts +11 -0
- package/dist/commands/log.js +15 -0
- package/dist/commands/push.js +9 -1
- package/dist/init/schema.js +1 -24
- package/dist/push/run-push.d.ts +10 -0
- package/dist/push/run-push.js +6 -0
- package/dist/quonfig.js +1 -1
- package/dist/util/activity-lookup.d.ts +25 -0
- package/dist/util/activity-lookup.js +36 -0
- package/dist/util/git-ops.d.ts +16 -0
- package/dist/util/git-ops.js +25 -0
- package/dist/verify/validate.d.ts +1 -0
- package/dist/verify/validate.js +3 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/oclif.manifest.json +574 -1
- package/package.json +4 -3
package/dist/util/git-ops.d.ts
CHANGED
|
@@ -160,3 +160,19 @@ export type GitPullRebaseResult = {
|
|
|
160
160
|
* only reports the outcome.
|
|
161
161
|
*/
|
|
162
162
|
export declare const gitPullRebase: (dir: string) => Promise<GitPullRebaseResult>;
|
|
163
|
+
/**
|
|
164
|
+
* Returns the local SHA of `origin/main` (i.e. the remote tip we last
|
|
165
|
+
* fetched), or undefined if the repo has no `origin/main` ref.
|
|
166
|
+
*
|
|
167
|
+
* Used as the `expectedSha` passed to the server-side `configs.push`
|
|
168
|
+
* optimistic lock (qfg-gj3i): the server compares the value we send
|
|
169
|
+
* against the current Gitea workspace HEAD and rejects the push if
|
|
170
|
+
* origin advanced between fetch and push. Belt-and-suspenders next to
|
|
171
|
+
* the CLI-side stale-HEAD guard from qfg-fboj — closes the gap for
|
|
172
|
+
* non-CLI clients and CLI regressions.
|
|
173
|
+
*
|
|
174
|
+
* Returns undefined on bare-path pushes (no `.git/`) and on any git
|
|
175
|
+
* error so the caller can fall back to other locks rather than aborting
|
|
176
|
+
* on an opaque rev-parse failure.
|
|
177
|
+
*/
|
|
178
|
+
export declare const getOriginMainSha: (dir: string) => Promise<string | undefined>;
|
package/dist/util/git-ops.js
CHANGED
|
@@ -392,3 +392,28 @@ export const gitPullRebase = async (dir) => {
|
|
|
392
392
|
return { kind: 'failed', reason };
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
|
+
/**
|
|
396
|
+
* Returns the local SHA of `origin/main` (i.e. the remote tip we last
|
|
397
|
+
* fetched), or undefined if the repo has no `origin/main` ref.
|
|
398
|
+
*
|
|
399
|
+
* Used as the `expectedSha` passed to the server-side `configs.push`
|
|
400
|
+
* optimistic lock (qfg-gj3i): the server compares the value we send
|
|
401
|
+
* against the current Gitea workspace HEAD and rejects the push if
|
|
402
|
+
* origin advanced between fetch and push. Belt-and-suspenders next to
|
|
403
|
+
* the CLI-side stale-HEAD guard from qfg-fboj — closes the gap for
|
|
404
|
+
* non-CLI clients and CLI regressions.
|
|
405
|
+
*
|
|
406
|
+
* Returns undefined on bare-path pushes (no `.git/`) and on any git
|
|
407
|
+
* error so the caller can fall back to other locks rather than aborting
|
|
408
|
+
* on an opaque rev-parse failure.
|
|
409
|
+
*/
|
|
410
|
+
export const getOriginMainSha = async (dir) => {
|
|
411
|
+
try {
|
|
412
|
+
const { stdout } = await runGit(['-C', dir, 'rev-parse', 'origin/main']);
|
|
413
|
+
const sha = stdout.trim();
|
|
414
|
+
return sha.length > 0 ? sha : undefined;
|
|
415
|
+
}
|
|
416
|
+
catch {
|
|
417
|
+
return undefined;
|
|
418
|
+
}
|
|
419
|
+
};
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* - Value type consistency
|
|
20
20
|
* - Weighted values non-empty and consistent
|
|
21
21
|
*/
|
|
22
|
+
export declare const OPERATORS: readonly ["ALWAYS_TRUE", "PROP_IS_ONE_OF", "PROP_IS_NOT_ONE_OF", "PROP_STARTS_WITH_ONE_OF", "PROP_DOES_NOT_START_WITH_ONE_OF", "PROP_ENDS_WITH_ONE_OF", "PROP_DOES_NOT_END_WITH_ONE_OF", "PROP_CONTAINS_ONE_OF", "PROP_DOES_NOT_CONTAIN_ONE_OF", "PROP_LESS_THAN", "PROP_LESS_THAN_OR_EQUAL", "PROP_GREATER_THAN", "PROP_GREATER_THAN_OR_EQUAL", "PROP_SEMVER_LESS_THAN", "PROP_SEMVER_EQUAL", "PROP_SEMVER_GREATER_THAN", "PROP_BEFORE", "PROP_AFTER", "PROP_MATCHES", "PROP_DOES_NOT_MATCH", "IN_SEG", "NOT_IN_SEG", "IN_INT_RANGE", "LOOKUP_KEY_IN", "LOOKUP_KEY_NOT_IN"];
|
|
22
23
|
export type Severity = 'error' | 'warning';
|
|
23
24
|
export interface ValidationIssue {
|
|
24
25
|
file: string;
|
package/dist/verify/validate.js
CHANGED
|
@@ -28,7 +28,7 @@ const LOG_LEVELS = ['TRACE', 'DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL'];
|
|
|
28
28
|
// ── Schemas (subset of app-quonfig config-schemas.ts) ───────────────────
|
|
29
29
|
const ConfigTypeSchema = z.enum(['feature_flag', 'config', 'log_level', 'segment', 'schema']);
|
|
30
30
|
const ValueTypeSchema = z.enum(['bool', 'string', 'int', 'double', 'json', 'string_list', 'duration', 'log_level']);
|
|
31
|
-
const
|
|
31
|
+
export const OPERATORS = [
|
|
32
32
|
'ALWAYS_TRUE',
|
|
33
33
|
'PROP_IS_ONE_OF',
|
|
34
34
|
'PROP_IS_NOT_ONE_OF',
|
|
@@ -54,7 +54,8 @@ const OperatorSchema = z.enum([
|
|
|
54
54
|
'IN_INT_RANGE',
|
|
55
55
|
'LOOKUP_KEY_IN',
|
|
56
56
|
'LOOKUP_KEY_NOT_IN',
|
|
57
|
-
]
|
|
57
|
+
];
|
|
58
|
+
const OperatorSchema = z.enum(OPERATORS);
|
|
58
59
|
const LogLevelSchema = z.enum(LOG_LEVELS);
|
|
59
60
|
const BoolValueSchema = z.object({ type: z.literal('bool'), value: z.boolean() });
|
|
60
61
|
const StringValueSchema = z.object({ type: z.literal('string'), value: z.string() });
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.0.
|
|
1
|
+
declare const _default: "0.0.38";
|
|
2
2
|
export default _default;
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// AUTO-GENERATED from package.json by scripts/generate-version.mjs — do not edit.
|
|
2
|
-
export default '0.0.
|
|
2
|
+
export default '0.0.38';
|
package/oclif.manifest.json
CHANGED
|
@@ -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.
|
|
3492
|
+
"version": "0.0.38"
|
|
2920
3493
|
}
|