@quonfig/cli 0.0.58 → 0.0.60

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 CHANGED
@@ -17,7 +17,7 @@ $ npm install -g @quonfig/cli
17
17
  $ qfg COMMAND
18
18
  running command...
19
19
  $ qfg (--version)
20
- @quonfig/cli/0.0.58 linux-x64 node-v24.4.1
20
+ @quonfig/cli/0.0.60 linux-x64 node-v24.4.1
21
21
  $ qfg --help [COMMAND]
22
22
  USAGE
23
23
  $ qfg COMMAND
@@ -201,7 +201,7 @@ EXAMPLES
201
201
  $ qfg activity restore my.flag --yes
202
202
  ```
203
203
 
204
- _See code: [src/commands/activity.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/activity.ts)_
204
+ _See code: [src/commands/activity.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/activity.ts)_
205
205
 
206
206
  ## `qfg activity deleted`
207
207
 
@@ -230,7 +230,7 @@ EXAMPLES
230
230
  $ qfg activity deleted --json
231
231
  ```
232
232
 
233
- _See code: [src/commands/activity/deleted.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/activity/deleted.ts)_
233
+ _See code: [src/commands/activity/deleted.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/activity/deleted.ts)_
234
234
 
235
235
  ## `qfg activity feed`
236
236
 
@@ -265,7 +265,7 @@ EXAMPLES
265
265
  $ qfg activity feed --json
266
266
  ```
267
267
 
268
- _See code: [src/commands/activity/feed.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/activity/feed.ts)_
268
+ _See code: [src/commands/activity/feed.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/activity/feed.ts)_
269
269
 
270
270
  ## `qfg activity history [NAME]`
271
271
 
@@ -299,7 +299,7 @@ EXAMPLES
299
299
  $ qfg activity history request.timeout --json
300
300
  ```
301
301
 
302
- _See code: [src/commands/activity/history.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/activity/history.ts)_
302
+ _See code: [src/commands/activity/history.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/activity/history.ts)_
303
303
 
304
304
  ## `qfg activity restore [NAME]`
305
305
 
@@ -338,7 +338,7 @@ EXAMPLES
338
338
  $ qfg activity restore request.timeout --type config --yes
339
339
  ```
340
340
 
341
- _See code: [src/commands/activity/restore.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/activity/restore.ts)_
341
+ _See code: [src/commands/activity/restore.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/activity/restore.ts)_
342
342
 
343
343
  ## `qfg audit-log [NAME]`
344
344
 
@@ -366,7 +366,7 @@ EXAMPLES
366
366
  $ qfg audit-log my.flag
367
367
  ```
368
368
 
369
- _See code: [src/commands/audit-log.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/audit-log.ts)_
369
+ _See code: [src/commands/audit-log.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/audit-log.ts)_
370
370
 
371
371
  ## `qfg cleanup`
372
372
 
@@ -407,7 +407,7 @@ EXAMPLES
407
407
  $ qfg cleanup status my.flag.key
408
408
  ```
409
409
 
410
- _See code: [src/commands/cleanup.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/cleanup.ts)_
410
+ _See code: [src/commands/cleanup.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/cleanup.ts)_
411
411
 
412
412
  ## `qfg cleanup list`
413
413
 
@@ -453,7 +453,7 @@ EXAMPLES
453
453
  $ qfg cleanup list --json
454
454
  ```
455
455
 
456
- _See code: [src/commands/cleanup/list.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/cleanup/list.ts)_
456
+ _See code: [src/commands/cleanup/list.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/cleanup/list.ts)_
457
457
 
458
458
  ## `qfg cleanup remove [NAME]`
459
459
 
@@ -498,7 +498,7 @@ EXAMPLES
498
498
  $ qfg cleanup remove my.flag.key --json
499
499
  ```
500
500
 
501
- _See code: [src/commands/cleanup/remove.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/cleanup/remove.ts)_
501
+ _See code: [src/commands/cleanup/remove.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/cleanup/remove.ts)_
502
502
 
503
503
  ## `qfg cleanup status [NAME]`
504
504
 
@@ -538,7 +538,7 @@ EXAMPLES
538
538
  $ qfg cleanup status my.flag.key --json
539
539
  ```
540
540
 
541
- _See code: [src/commands/cleanup/status.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/cleanup/status.ts)_
541
+ _See code: [src/commands/cleanup/status.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/cleanup/status.ts)_
542
542
 
543
543
  ## `qfg cleanup verify [NAME]`
544
544
 
@@ -584,7 +584,7 @@ EXAMPLES
584
584
  $ qfg cleanup verify my.flag.key && qfg delete my.flag.key
585
585
  ```
586
586
 
587
- _See code: [src/commands/cleanup/verify.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/cleanup/verify.ts)_
587
+ _See code: [src/commands/cleanup/verify.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/cleanup/verify.ts)_
588
588
 
589
589
  ## `qfg config-schema`
590
590
 
@@ -613,7 +613,7 @@ EXAMPLES
613
613
  $ qfg config-schema --json-schema # full JSON Schema document (copy into your editor)
614
614
  ```
615
615
 
616
- _See code: [src/commands/config-schema.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/config-schema.ts)_
616
+ _See code: [src/commands/config-schema.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/config-schema.ts)_
617
617
 
618
618
  ## `qfg create NAME`
619
619
 
@@ -700,7 +700,7 @@ EXAMPLES
700
700
  $ qfg set-rollout my.new.flag --environment production --true-percent 20
701
701
  ```
702
702
 
703
- _See code: [src/commands/create.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/create.ts)_
703
+ _See code: [src/commands/create.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/create.ts)_
704
704
 
705
705
  ## `qfg delete NAME`
706
706
 
@@ -746,7 +746,7 @@ EXAMPLES
746
746
  $ qfg delete my.config --yes
747
747
  ```
748
748
 
749
- _See code: [src/commands/delete.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/delete.ts)_
749
+ _See code: [src/commands/delete.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/delete.ts)_
750
750
 
751
751
  ## `qfg flag info [NAME]`
752
752
 
@@ -950,7 +950,7 @@ EXAMPLES
950
950
  $ qfg generate --targets node-ts -o ./dist # combine with targets
951
951
  ```
952
952
 
953
- _See code: [src/commands/generate.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/generate.ts)_
953
+ _See code: [src/commands/generate.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/generate.ts)_
954
954
 
955
955
  ## `qfg generate-new-hex-key`
956
956
 
@@ -973,7 +973,7 @@ EXAMPLES
973
973
  $ qfg generate-new-hex-key
974
974
  ```
975
975
 
976
- _See code: [src/commands/generate-new-hex-key.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/generate-new-hex-key.ts)_
976
+ _See code: [src/commands/generate-new-hex-key.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/generate-new-hex-key.ts)_
977
977
 
978
978
  ## `qfg get [NAME]`
979
979
 
@@ -1005,7 +1005,7 @@ EXAMPLES
1005
1005
  $ qfg get my.config.name --environment=production
1006
1006
  ```
1007
1007
 
1008
- _See code: [src/commands/get.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/get.ts)_
1008
+ _See code: [src/commands/get.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/get.ts)_
1009
1009
 
1010
1010
  ## `qfg history NAME`
1011
1011
 
@@ -1031,7 +1031,7 @@ EXAMPLES
1031
1031
  $ qfg history my.flag
1032
1032
  ```
1033
1033
 
1034
- _See code: [src/commands/history.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/history.ts)_
1034
+ _See code: [src/commands/history.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/history.ts)_
1035
1035
 
1036
1036
  ## `qfg info [NAME]`
1037
1037
 
@@ -1079,7 +1079,7 @@ EXAMPLES
1079
1079
  $ qfg info my.config.name --exclude-evaluations # skip 24h stats
1080
1080
  ```
1081
1081
 
1082
- _See code: [src/commands/info.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/info.ts)_
1082
+ _See code: [src/commands/info.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/info.ts)_
1083
1083
 
1084
1084
  ## `qfg init [DIRECTORY]`
1085
1085
 
@@ -1119,7 +1119,7 @@ EXAMPLES
1119
1119
  $ qfg init --dry-run
1120
1120
  ```
1121
1121
 
1122
- _See code: [src/commands/init.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/init.ts)_
1122
+ _See code: [src/commands/init.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/init.ts)_
1123
1123
 
1124
1124
  ## `qfg interactive`
1125
1125
 
@@ -1149,7 +1149,7 @@ EXAMPLES
1149
1149
  $ qfg
1150
1150
  ```
1151
1151
 
1152
- _See code: [src/commands/interactive.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/interactive.ts)_
1152
+ _See code: [src/commands/interactive.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/interactive.ts)_
1153
1153
 
1154
1154
  ## `qfg list`
1155
1155
 
@@ -1189,7 +1189,7 @@ EXAMPLES
1189
1189
  $ qfg list --feature-flags
1190
1190
  ```
1191
1191
 
1192
- _See code: [src/commands/list.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/list.ts)_
1192
+ _See code: [src/commands/list.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/list.ts)_
1193
1193
 
1194
1194
  ## `qfg log`
1195
1195
 
@@ -1214,7 +1214,7 @@ EXAMPLES
1214
1214
  $ qfg log --limit 5
1215
1215
  ```
1216
1216
 
1217
- _See code: [src/commands/log.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/log.ts)_
1217
+ _See code: [src/commands/log.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/log.ts)_
1218
1218
 
1219
1219
  ## `qfg log-level NAME`
1220
1220
 
@@ -1279,7 +1279,7 @@ EXAMPLES
1279
1279
  $ qfg log-level log-level.my-app --target=Chatty --value=INFO --environment=production
1280
1280
  ```
1281
1281
 
1282
- _See code: [src/commands/log-level.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/log-level.ts)_
1282
+ _See code: [src/commands/log-level.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/log-level.ts)_
1283
1283
 
1284
1284
  ## `qfg login`
1285
1285
 
@@ -1304,7 +1304,7 @@ EXAMPLES
1304
1304
  $ qfg login --profile myprofile
1305
1305
  ```
1306
1306
 
1307
- _See code: [src/commands/login.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/login.ts)_
1307
+ _See code: [src/commands/login.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/login.ts)_
1308
1308
 
1309
1309
  ## `qfg logout`
1310
1310
 
@@ -1327,7 +1327,7 @@ EXAMPLES
1327
1327
  $ qfg logout
1328
1328
  ```
1329
1329
 
1330
- _See code: [src/commands/logout.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/logout.ts)_
1330
+ _See code: [src/commands/logout.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/logout.ts)_
1331
1331
 
1332
1332
  ## `qfg migrate`
1333
1333
 
@@ -1390,7 +1390,7 @@ EXAMPLES
1390
1390
  $ qfg migrate --from launch --source-api-key $LAUNCH_API_KEY --dir ./quonfig-repo --staging
1391
1391
  ```
1392
1392
 
1393
- _See code: [src/commands/migrate.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/migrate.ts)_
1393
+ _See code: [src/commands/migrate.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/migrate.ts)_
1394
1394
 
1395
1395
  ## `qfg migrate doctor`
1396
1396
 
@@ -1428,7 +1428,7 @@ EXAMPLES
1428
1428
  $ qfg migrate doctor --json
1429
1429
  ```
1430
1430
 
1431
- _See code: [src/commands/migrate/doctor.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/migrate/doctor.ts)_
1431
+ _See code: [src/commands/migrate/doctor.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/migrate/doctor.ts)_
1432
1432
 
1433
1433
  ## `qfg migrate my-code`
1434
1434
 
@@ -1460,7 +1460,7 @@ EXAMPLES
1460
1460
  $ qfg migrate my-code --dry-run
1461
1461
  ```
1462
1462
 
1463
- _See code: [src/commands/migrate/my-code.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/migrate/my-code.ts)_
1463
+ _See code: [src/commands/migrate/my-code.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/migrate/my-code.ts)_
1464
1464
 
1465
1465
  ## `qfg migrate status`
1466
1466
 
@@ -1491,7 +1491,7 @@ EXAMPLES
1491
1491
  $ qfg migrate status --json
1492
1492
  ```
1493
1493
 
1494
- _See code: [src/commands/migrate/status.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/migrate/status.ts)_
1494
+ _See code: [src/commands/migrate/status.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/migrate/status.ts)_
1495
1495
 
1496
1496
  ## `qfg override [NAME] [VALUE]`
1497
1497
 
@@ -1546,7 +1546,7 @@ EXAMPLES
1546
1546
  $ qfg override my.flag true --env=staging
1547
1547
  ```
1548
1548
 
1549
- _See code: [src/commands/override.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/override.ts)_
1549
+ _See code: [src/commands/override.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/override.ts)_
1550
1550
 
1551
1551
  ## `qfg pull`
1552
1552
 
@@ -1594,7 +1594,7 @@ EXAMPLES
1594
1594
  $ qfg pull # uses QUONFIG_DIR env var
1595
1595
  ```
1596
1596
 
1597
- _See code: [src/commands/pull.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/pull.ts)_
1597
+ _See code: [src/commands/pull.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/pull.ts)_
1598
1598
 
1599
1599
  ## `qfg push`
1600
1600
 
@@ -1643,7 +1643,7 @@ EXAMPLES
1643
1643
  $ qfg push --dir ./our-config --yes
1644
1644
  ```
1645
1645
 
1646
- _See code: [src/commands/push.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/push.ts)_
1646
+ _See code: [src/commands/push.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/push.ts)_
1647
1647
 
1648
1648
  ## `qfg run [COMMAND]`
1649
1649
 
@@ -1694,7 +1694,7 @@ EXAMPLES
1694
1694
  $ qfg run --env DATABASE_URL=db.url --preserve-env --environment=staging -- npm test
1695
1695
  ```
1696
1696
 
1697
- _See code: [src/commands/run.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/run.ts)_
1697
+ _See code: [src/commands/run.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/run.ts)_
1698
1698
 
1699
1699
  ## `qfg schema NAME`
1700
1700
 
@@ -1732,7 +1732,7 @@ EXAMPLES
1732
1732
  $ qfg schema my-schema --set-json-schema=@schemas/my-schema.json --protected
1733
1733
  ```
1734
1734
 
1735
- _See code: [src/commands/schema.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/schema.ts)_
1735
+ _See code: [src/commands/schema.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/schema.ts)_
1736
1736
 
1737
1737
  ## `qfg sdk-key`
1738
1738
 
@@ -1759,7 +1759,7 @@ EXAMPLES
1759
1759
  $ qfg sdk-key revoke <key-id>
1760
1760
  ```
1761
1761
 
1762
- _See code: [src/commands/sdk-key.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/sdk-key.ts)_
1762
+ _See code: [src/commands/sdk-key.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/sdk-key.ts)_
1763
1763
 
1764
1764
  ## `qfg sdk-key create`
1765
1765
 
@@ -1791,7 +1791,7 @@ EXAMPLES
1791
1791
  $ qfg sdk-key create --environment staging --type browser
1792
1792
  ```
1793
1793
 
1794
- _See code: [src/commands/sdk-key/create.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/sdk-key/create.ts)_
1794
+ _See code: [src/commands/sdk-key/create.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/sdk-key/create.ts)_
1795
1795
 
1796
1796
  ## `qfg sdk-key list`
1797
1797
 
@@ -1820,7 +1820,7 @@ EXAMPLES
1820
1820
  $ qfg sdk-key list --environment production
1821
1821
  ```
1822
1822
 
1823
- _See code: [src/commands/sdk-key/list.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/sdk-key/list.ts)_
1823
+ _See code: [src/commands/sdk-key/list.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/sdk-key/list.ts)_
1824
1824
 
1825
1825
  ## `qfg sdk-key revoke KEYID`
1826
1826
 
@@ -1847,7 +1847,7 @@ EXAMPLES
1847
1847
  $ qfg sdk-key revoke a1b2c3d4-e5f6-7890-abcd-ef1234567890
1848
1848
  ```
1849
1849
 
1850
- _See code: [src/commands/sdk-key/revoke.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/sdk-key/revoke.ts)_
1850
+ _See code: [src/commands/sdk-key/revoke.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/sdk-key/revoke.ts)_
1851
1851
 
1852
1852
  ## `qfg serve`
1853
1853
 
@@ -1904,7 +1904,7 @@ EXAMPLES
1904
1904
  $ qfg serve --port 6581 --frontend-sdk-key PUBLIC_KEY
1905
1905
  ```
1906
1906
 
1907
- _See code: [src/commands/serve.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/serve.ts)_
1907
+ _See code: [src/commands/serve.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/serve.ts)_
1908
1908
 
1909
1909
  ## `qfg set-default [NAME]`
1910
1910
 
@@ -1975,7 +1975,7 @@ EXAMPLES
1975
1975
  $ qfg pull && qfg config-schema
1976
1976
  ```
1977
1977
 
1978
- _See code: [src/commands/set-default.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/set-default.ts)_
1978
+ _See code: [src/commands/set-default.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/set-default.ts)_
1979
1979
 
1980
1980
  ## `qfg set-rollout [NAME]`
1981
1981
 
@@ -2052,7 +2052,7 @@ EXAMPLES
2052
2052
  $ qfg set-rollout my.variant.flag --environment production --weights "a:33,b:33,c:34" --hash-by user.id
2053
2053
  ```
2054
2054
 
2055
- _See code: [src/commands/set-rollout.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/set-rollout.ts)_
2055
+ _See code: [src/commands/set-rollout.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/set-rollout.ts)_
2056
2056
 
2057
2057
  ## `qfg sync`
2058
2058
 
@@ -2084,7 +2084,7 @@ EXAMPLES
2084
2084
  $ qfg sync --watch --dir ./our-config --interval 30
2085
2085
  ```
2086
2086
 
2087
- _See code: [src/commands/sync.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/sync.ts)_
2087
+ _See code: [src/commands/sync.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/sync.ts)_
2088
2088
 
2089
2089
  ## `qfg toggle [NAME]`
2090
2090
 
@@ -2186,7 +2186,7 @@ EXAMPLES
2186
2186
  $ qfg verify --json
2187
2187
  ```
2188
2188
 
2189
- _See code: [src/commands/verify.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/verify.ts)_
2189
+ _See code: [src/commands/verify.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/verify.ts)_
2190
2190
 
2191
2191
  ## `qfg whoami`
2192
2192
 
@@ -2209,7 +2209,7 @@ EXAMPLES
2209
2209
  $ qfg whoami
2210
2210
  ```
2211
2211
 
2212
- _See code: [src/commands/whoami.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/whoami.ts)_
2212
+ _See code: [src/commands/whoami.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/whoami.ts)_
2213
2213
 
2214
2214
  ## `qfg workspace`
2215
2215
 
@@ -2232,7 +2232,7 @@ EXAMPLES
2232
2232
  $ qfg workspace
2233
2233
  ```
2234
2234
 
2235
- _See code: [src/commands/workspace.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/workspace.ts)_
2235
+ _See code: [src/commands/workspace.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/workspace.ts)_
2236
2236
 
2237
2237
  ## `qfg workspace bootstrap`
2238
2238
 
@@ -2265,7 +2265,7 @@ EXAMPLES
2265
2265
  $ qfg workspace bootstrap --dir ./our-config --skip-validate
2266
2266
  ```
2267
2267
 
2268
- _See code: [src/commands/workspace/bootstrap.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/workspace/bootstrap.ts)_
2268
+ _See code: [src/commands/workspace/bootstrap.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/workspace/bootstrap.ts)_
2269
2269
 
2270
2270
  ## `qfg workspace create SLUG`
2271
2271
 
@@ -2299,7 +2299,7 @@ EXAMPLES
2299
2299
  $ qfg workspace create my-team --org 11111111-1111-1111-1111-111111111111
2300
2300
  ```
2301
2301
 
2302
- _See code: [src/commands/workspace/create.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/workspace/create.ts)_
2302
+ _See code: [src/commands/workspace/create.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/workspace/create.ts)_
2303
2303
 
2304
2304
  ## `qfg workspace switch [SLUG]`
2305
2305
 
@@ -2327,7 +2327,7 @@ EXAMPLES
2327
2327
  $ qfg workspace switch acme/production
2328
2328
  ```
2329
2329
 
2330
- _See code: [src/commands/workspace/switch.ts](https://github.com/quonfig/cli/blob/v0.0.58/src/commands/workspace/switch.ts)_
2330
+ _See code: [src/commands/workspace/switch.ts](https://github.com/quonfig/cli/blob/v0.0.60/src/commands/workspace/switch.ts)_
2331
2331
  <!-- commandsstop -->
2332
2332
 
2333
2333
  ## Local Development
@@ -2,6 +2,8 @@ import type { LaunchChangeEntry, LaunchChangeHistoryResponse } from './types.js'
2
2
  export declare function setLaunchBaseUrl(url: string): void;
3
3
  export declare function selectLaunchBaseUrl(staging: boolean): string;
4
4
  export declare function applyLaunchBaseUrl(staging: boolean): void;
5
+ export declare function __setSleepForTests(fn: (ms: number) => Promise<void>): void;
6
+ export declare function __resetSleepForTests(): void;
5
7
  export declare function fetchEnvironments(apiKey: string): Promise<Record<string, string>>;
6
8
  export declare function fetchChangeHistoryPage(apiKey: string, cursor?: string): Promise<LaunchChangeHistoryResponse>;
7
9
  export declare function fetchAllChangeHistory(apiKey: string, sinceEpochMs?: number, onProgress?: (fetched: number) => void): Promise<LaunchChangeEntry[]>;
@@ -1,6 +1,20 @@
1
1
  const PROD_BASE_URL = 'https://api.reforge.com';
2
2
  const STAGING_BASE_URL = 'https://api.goatsofreforge.com';
3
3
  const PAGE_LIMIT = 50;
4
+ /**
5
+ * Hard cap on retries for a single request before we give up. Mirrors the
6
+ * launchdarkly/flagsmith adapters.
7
+ */
8
+ const MAX_RETRIES = 6;
9
+ /** Fallback wait when a response carries no usable backoff header. */
10
+ const DEFAULT_BACKOFF_MS = 2000;
11
+ /**
12
+ * Politeness pause between history pages. On a large account this endpoint is
13
+ * walked for hundreds of sequential pages; a small fixed delay keeps us from
14
+ * tripping a rate limit. (Reforge sends no rate-budget headers to pre-throttle
15
+ * against, unlike LaunchDarkly/Flagsmith.)
16
+ */
17
+ const INTER_PAGE_THROTTLE_MS = 300;
4
18
  let baseUrl = PROD_BASE_URL;
5
19
  export function setLaunchBaseUrl(url) {
6
20
  baseUrl = url;
@@ -14,20 +28,87 @@ export function applyLaunchBaseUrl(staging) {
14
28
  function makeToken(apiKey) {
15
29
  return Buffer.from(`authuser:${apiKey}`).toString('base64');
16
30
  }
31
+ /** Real timer-backed sleep — swapped out in tests so MSW runs don't actually wait. */
32
+ function timerSleep(ms) {
33
+ return new Promise((resolve) => {
34
+ setTimeout(resolve, ms);
35
+ });
36
+ }
37
+ /** Test seam: a no-op sleep is swapped in so MSW tests don't actually wait. */
38
+ let sleepImpl = timerSleep;
39
+ export function __setSleepForTests(fn) {
40
+ sleepImpl = fn;
41
+ }
42
+ export function __resetSleepForTests() {
43
+ sleepImpl = timerSleep;
44
+ }
45
+ /**
46
+ * Only transient errors are retried: 429 (throttling) and 5xx (availability).
47
+ *
48
+ * A 403 is NOT retried. It is either a genuine authorization failure (a bad or
49
+ * under-scoped key) or a hard edge/WAF block — neither clears by waiting, so
50
+ * retrying just burns the whole backoff budget (~2 min) before surfacing the
51
+ * same error. Fail fast with a clear message instead. (Observed: Reforge's
52
+ * edge WAF blocked change-history cursors whose flag key contained certain
53
+ * substrings; that is a server-side rule, fixed upstream, not something the
54
+ * client can retry past.)
55
+ */
56
+ function isRetryable(status) {
57
+ return status === 429 || status === 502 || status === 503 || status === 504;
58
+ }
59
+ /**
60
+ * Exponential backoff with jitter: ~2s, 4s, 8s … clamped to 60s, ±20% jitter
61
+ * so concurrent/retried requests don't resynchronize into the next block. A
62
+ * standard `Retry-After` header, if present, raises (never lowers) the wait.
63
+ */
64
+ function backoffMs(headers, attempt) {
65
+ let wait = Math.min(60_000, DEFAULT_BACKOFF_MS * 2 ** attempt);
66
+ const retryAfter = headers.get('Retry-After');
67
+ if (retryAfter !== null) {
68
+ const sec = Number(retryAfter);
69
+ if (Number.isFinite(sec))
70
+ wait = Math.max(wait, sec * 1000);
71
+ }
72
+ // ±20% jitter. Math.random is fine here (not a deterministic-replay context).
73
+ const jitter = wait * 0.2 * (Math.random() * 2 - 1);
74
+ return Math.min(60_000, Math.max(0, Math.round(wait + jitter)));
75
+ }
76
+ /** Trim a (potentially large HTML) error body so the thrown message stays readable. */
77
+ function truncateBody(body) {
78
+ const flat = body.replaceAll(/\s+/g, ' ').trim();
79
+ return flat.length > 300 ? `${flat.slice(0, 300)}…` : flat;
80
+ }
81
+ /**
82
+ * Single GET with HTTP Basic auth, retrying transient errors (429, 5xx) with
83
+ * exponential backoff. 403 and other non-ok statuses throw immediately — only
84
+ * throttling/availability errors are retried.
85
+ */
17
86
  async function apiFetch(path, apiKey) {
18
87
  const url = `${baseUrl}${path}`;
19
88
  const token = makeToken(apiKey);
20
- const res = await fetch(url, {
21
- headers: {
22
- Accept: 'application/json',
23
- Authorization: `Basic ${token}`,
24
- },
25
- });
26
- if (!res.ok) {
89
+ for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
90
+ // eslint-disable-next-line no-await-in-loop
91
+ const res = await fetch(url, {
92
+ headers: {
93
+ Accept: 'application/json',
94
+ Authorization: `Basic ${token}`,
95
+ },
96
+ });
97
+ if (res.ok)
98
+ return res.json();
99
+ const retryable = isRetryable(res.status);
100
+ if (retryable && attempt < MAX_RETRIES) {
101
+ // eslint-disable-next-line no-await-in-loop
102
+ await sleepImpl(backoffMs(res.headers, attempt));
103
+ continue;
104
+ }
105
+ // eslint-disable-next-line no-await-in-loop
27
106
  const body = await res.text().catch(() => '(no body)');
28
- throw new Error(`Launch API request failed: ${res.status} ${res.statusText} — ${url}\n${body}`);
107
+ const hint = retryable ? ` (gave up after ${MAX_RETRIES + 1} attempts)` : '';
108
+ throw new Error(`Launch API request failed: ${res.status} ${res.statusText}${hint} — ${url}\n${truncateBody(body)}`);
29
109
  }
30
- return res.json();
110
+ // Unreachable — the loop either returns or throws.
111
+ throw new Error(`Launch API request failed: retries exhausted — ${url}`);
31
112
  }
32
113
  export async function fetchEnvironments(apiKey) {
33
114
  const data = (await apiFetch('/api/v1/project-environments', apiKey));
@@ -73,6 +154,10 @@ export async function fetchAllChangeHistory(apiKey, sinceEpochMs, onProgress) {
73
154
  break;
74
155
  seenCursors.add(page.cursor);
75
156
  cursor = page.cursor;
157
+ // Smooth the request burst so we don't trip Reforge's edge rate-limit in
158
+ // the first place (it has no rate-budget headers to pre-throttle against).
159
+ // eslint-disable-next-line no-await-in-loop
160
+ await sleepImpl(INTER_PAGE_THROTTLE_MS);
76
161
  }
77
162
  return collected.reverse();
78
163
  }
@@ -39,7 +39,7 @@ const getClient = async (command, sdkKey, profile) => {
39
39
  }
40
40
  const workspaceOverride = profile ?? process.env.QUONFIG_WORKSPACE;
41
41
  if (!workspaceOverride) {
42
- command.error('QUONFIG_API_KEY is set but QUONFIG_WORKSPACE is not. Set QUONFIG_WORKSPACE=<workspace-slug> (UUIDs also work).', { exit: 1 });
42
+ command.error('QUONFIG_API_KEY is set but QUONFIG_WORKSPACE is not. Set QUONFIG_WORKSPACE=<org>/<workspace> (e.g. acme/foo). (UUIDs also work.)', { exit: 1 });
43
43
  }
44
44
  const uuidPattern = /^[\da-f]{8}(?:-[\da-f]{4}){3}-[\da-f]{12}$/i;
45
45
  if (uuidPattern.test(workspaceOverride)) {
@@ -47,6 +47,13 @@ const getClient = async (command, sdkKey, profile) => {
47
47
  command.verboseLog('ApiKey auth', { source: 'uuid', workspaceId });
48
48
  }
49
49
  else {
50
+ // QUONFIG_WORKSPACE must be org-qualified, the same single form used by
51
+ // quonfig.json, the interactive shell, and error messages (qfg-dl87).
52
+ // Bare slugs are rejected so there is no per-surface special case.
53
+ const pin = tryParseWorkspacePin(workspaceOverride);
54
+ if (!pin) {
55
+ command.error(BARE_SLUG_ENV_MIGRATION_MESSAGE, { exit: 1 });
56
+ }
50
57
  let res;
51
58
  try {
52
59
  res = await fetch(`${getApiUrl()}/api/v1/userWorkspaces/list`, {
@@ -56,20 +63,24 @@ const getClient = async (command, sdkKey, profile) => {
56
63
  });
57
64
  }
58
65
  catch (error) {
59
- command.error(`Failed to resolve workspace slug "${workspaceOverride}": ${error instanceof Error ? error.message : String(error)}`, { exit: 1 });
66
+ command.error(`Failed to resolve workspace "${workspaceOverride}": ${error instanceof Error ? error.message : String(error)}`, { exit: 1 });
60
67
  }
61
68
  if (!res.ok) {
62
- command.error(`Failed to resolve workspace slug "${workspaceOverride}" (HTTP ${res.status}). Check that QUONFIG_API_KEY is valid.`, { exit: 1 });
69
+ command.error(`Failed to resolve workspace "${workspaceOverride}" (HTTP ${res.status}). Check that QUONFIG_API_KEY is valid.`, { exit: 1 });
63
70
  }
64
71
  const body = (await res.json());
65
72
  const entries = body.json ?? body ?? [];
66
- const match = entries.find((w) => w.workspaceSlug === workspaceOverride);
73
+ // Match on the org-qualified pin so a slug shared across orgs resolves
74
+ // to the right workspace.
75
+ const match = entries.find((w) => w.organizationSlug === pin.orgSlug && w.workspaceSlug === pin.workspaceSlug);
67
76
  if (!match) {
68
- const available = entries.map((w) => w.workspaceSlug).join(', ') || '(none)';
69
- command.error(`No workspace with slug "${workspaceOverride}" is accessible with this API key. Available: ${available}.`, { exit: 1 });
77
+ const available = entries
78
+ .map((w) => (w.organizationSlug ? `${w.organizationSlug}/${w.workspaceSlug}` : w.workspaceSlug))
79
+ .join(', ') || '(none)';
80
+ command.error(`No workspace matching "${workspaceOverride}" is accessible with this API key. Available: ${available}.`, { exit: 1 });
70
81
  }
71
82
  workspaceId = match.workspaceId;
72
- command.verboseLog('ApiKey auth', { source: 'slug', slug: workspaceOverride, workspaceId });
83
+ command.verboseLog('ApiKey auth', { source: 'org/ws', pin, workspaceId });
73
84
  }
74
85
  }
75
86
  else {
@@ -22,13 +22,20 @@ export async function resolveWorkspaceUuid(command, flagOverride) {
22
22
  const apiKey = process.env.QUONFIG_API_KEY;
23
23
  if (apiKey && apiKey.length > 0) {
24
24
  if (!override) {
25
- command.error('QUONFIG_API_KEY is set but QUONFIG_WORKSPACE is not. Set QUONFIG_WORKSPACE=<workspace-slug> or pass --workspace=<slug>. (UUIDs also work.)', { exit: 1 });
25
+ command.error('QUONFIG_API_KEY is set but QUONFIG_WORKSPACE is not. Set QUONFIG_WORKSPACE=<org>/<workspace> (e.g. acme/foo) or pass --workspace=<org>/<workspace>. (UUIDs also work.)', { exit: 1 });
26
26
  }
27
27
  if (UUID_PATTERN.test(override)) {
28
28
  command.verboseLog('ApiKey auth', { source: 'uuid', workspaceId: override });
29
29
  return { workspaceId: override, orgSlug: '' };
30
30
  }
31
- // Slug — resolve via the server since there's no local auth config in CI mode.
31
+ // QUONFIG_WORKSPACE must be org-qualified, the same single form used by
32
+ // quonfig.json, the interactive shell, and every error message (qfg-dl87).
33
+ // Bare slugs are rejected here too so there is no per-surface special case.
34
+ const pin = tryParseWorkspacePin(override);
35
+ if (!pin) {
36
+ command.error(BARE_SLUG_ENV_MIGRATION_MESSAGE, { exit: 1 });
37
+ }
38
+ // Resolve via the server since there's no local auth config in CI mode.
32
39
  // API-key path short-circuits before consulting the orgId.
33
40
  const jwt = await getValidAccessToken('', command.verboseLog);
34
41
  let res;
@@ -40,21 +47,25 @@ export async function resolveWorkspaceUuid(command, flagOverride) {
40
47
  });
41
48
  }
42
49
  catch (error) {
43
- command.error(`Failed to resolve workspace slug "${override}": ${error instanceof Error ? error.message : String(error)}`, { exit: 1 });
50
+ command.error(`Failed to resolve workspace "${override}": ${error instanceof Error ? error.message : String(error)}`, { exit: 1 });
44
51
  }
45
52
  if (!res.ok) {
46
- command.error(`Failed to resolve workspace slug "${override}" (HTTP ${res.status}). Check that QUONFIG_API_KEY is valid.`, { exit: 1 });
53
+ command.error(`Failed to resolve workspace "${override}" (HTTP ${res.status}). Check that QUONFIG_API_KEY is valid.`, { exit: 1 });
47
54
  }
48
55
  const body = (await res.json());
49
56
  const entries = body.json ?? body ?? [];
50
- const match = entries.find((w) => w.workspaceSlug === override);
57
+ // Match on the org-qualified pin so a slug shared across orgs resolves
58
+ // to the right workspace.
59
+ const match = entries.find((w) => w.organizationSlug === pin.orgSlug && w.workspaceSlug === pin.workspaceSlug);
51
60
  if (!match) {
52
- const available = entries.map((w) => w.workspaceSlug).join(', ') || '(none)';
53
- command.error(`No workspace with slug "${override}" is accessible with this API key. Available: ${available}.`, {
61
+ const available = entries
62
+ .map((w) => (w.organizationSlug ? `${w.organizationSlug}/${w.workspaceSlug}` : w.workspaceSlug))
63
+ .join(', ') || '(none)';
64
+ command.error(`No workspace matching "${override}" is accessible with this API key. Available: ${available}.`, {
54
65
  exit: 1,
55
66
  });
56
67
  }
57
- command.verboseLog('ApiKey auth', { source: 'slug', slug: override, workspaceId: match.workspaceId });
68
+ command.verboseLog('ApiKey auth', { source: 'org/ws', pin, workspaceId: match.workspaceId });
58
69
  return { workspaceId: match.workspaceId, orgSlug: '' };
59
70
  }
60
71
  // OAuth path with an explicit override → must be in org/ws form.
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.0.58";
1
+ declare const _default: "0.0.60";
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.58';
2
+ export default '0.0.60';
@@ -3417,15 +3417,13 @@
3417
3417
  "verify.js"
3418
3418
  ]
3419
3419
  },
3420
- "migrate:doctor": {
3420
+ "sdk-key:create": {
3421
3421
  "aliases": [],
3422
3422
  "args": {},
3423
- "description": "Preflight health checks for `qfg migrate`. Verifies auth, workspace provisioning, working tree, and identifier collisions.",
3423
+ "description": "Create a new SDK key",
3424
3424
  "examples": [
3425
- "<%= config.bin %> <%= command.id %>",
3426
- "<%= config.bin %> <%= command.id %> --from launch --api-key $LAUNCH_API_KEY",
3427
- "<%= config.bin %> <%= command.id %> --dir ./my-workspace --language node",
3428
- "<%= config.bin %> <%= command.id %> --json"
3425
+ "<%= config.bin %> <%= command.id %> --environment production --type server",
3426
+ "<%= config.bin %> <%= command.id %> --environment staging --type browser"
3429
3427
  ],
3430
3428
  "flags": {
3431
3429
  "json": {
@@ -3457,45 +3455,53 @@
3457
3455
  "allowNo": false,
3458
3456
  "type": "boolean"
3459
3457
  },
3460
- "api-key": {
3461
- "description": "Legacy SDK API key to validate against the source",
3462
- "name": "api-key",
3458
+ "workspace": {
3459
+ "char": "w",
3460
+ "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3461
+ "helpGroup": "GLOBAL",
3462
+ "name": "workspace",
3463
3463
  "required": false,
3464
3464
  "hasDynamicHelp": false,
3465
3465
  "multiple": false,
3466
3466
  "type": "option"
3467
3467
  },
3468
- "dir": {
3469
- "description": "Workspace directory to check (git clean / identifier map)",
3470
- "name": "dir",
3471
- "default": ".",
3468
+ "profile": {
3469
+ "char": "p",
3470
+ "description": "Deprecated: use --workspace instead",
3471
+ "helpGroup": "GLOBAL",
3472
+ "hidden": true,
3473
+ "name": "profile",
3474
+ "required": false,
3472
3475
  "hasDynamicHelp": false,
3473
3476
  "multiple": false,
3474
3477
  "type": "option"
3475
3478
  },
3476
- "from": {
3477
- "description": "Legacy SDK to migrate from",
3478
- "name": "from",
3479
- "default": "launch",
3479
+ "environment": {
3480
+ "char": "e",
3481
+ "description": "Environment name (e.g. production, staging)",
3482
+ "name": "environment",
3483
+ "required": false,
3480
3484
  "hasDynamicHelp": false,
3481
3485
  "multiple": false,
3482
- "options": [
3483
- "launch"
3484
- ],
3485
3486
  "type": "option"
3486
3487
  },
3487
- "language": {
3488
- "description": "Customer SDK language — used to warn when datadir mode is unavailable (e.g. javascript-browser)",
3489
- "name": "language",
3488
+ "type": {
3489
+ "char": "t",
3490
+ "description": "Key type: server (backend) or browser (frontend)",
3491
+ "name": "type",
3490
3492
  "required": false,
3491
3493
  "hasDynamicHelp": false,
3492
3494
  "multiple": false,
3495
+ "options": [
3496
+ "server",
3497
+ "browser"
3498
+ ],
3493
3499
  "type": "option"
3494
3500
  }
3495
3501
  },
3496
3502
  "hasDynamicHelp": false,
3497
3503
  "hiddenAliases": [],
3498
- "id": "migrate:doctor",
3504
+ "id": "sdk-key:create",
3499
3505
  "pluginAlias": "@quonfig/cli",
3500
3506
  "pluginName": "@quonfig/cli",
3501
3507
  "pluginType": "core",
@@ -3505,18 +3511,17 @@
3505
3511
  "relativePath": [
3506
3512
  "dist",
3507
3513
  "commands",
3508
- "migrate",
3509
- "doctor.js"
3514
+ "sdk-key",
3515
+ "create.js"
3510
3516
  ]
3511
3517
  },
3512
- "migrate:my-code": {
3518
+ "sdk-key:list": {
3513
3519
  "aliases": [],
3514
3520
  "args": {},
3515
- "description": "Migrate Launch SDK call sites in your codebase to Quonfig SDK call sites (invokes the qfg-migrate-code Claude skill)",
3521
+ "description": "List SDK keys for your workspace",
3516
3522
  "examples": [
3517
3523
  "<%= config.bin %> <%= command.id %>",
3518
- "<%= config.bin %> <%= command.id %> --from launch",
3519
- "<%= config.bin %> <%= command.id %> --dry-run"
3524
+ "<%= config.bin %> <%= command.id %> --environment production"
3520
3525
  ],
3521
3526
  "flags": {
3522
3527
  "json": {
@@ -3548,27 +3553,40 @@
3548
3553
  "allowNo": false,
3549
3554
  "type": "boolean"
3550
3555
  },
3551
- "dry-run": {
3552
- "description": "Show what would be migrated without editing any files",
3553
- "name": "dry-run",
3554
- "allowNo": false,
3555
- "type": "boolean"
3556
+ "workspace": {
3557
+ "char": "w",
3558
+ "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3559
+ "helpGroup": "GLOBAL",
3560
+ "name": "workspace",
3561
+ "required": false,
3562
+ "hasDynamicHelp": false,
3563
+ "multiple": false,
3564
+ "type": "option"
3556
3565
  },
3557
- "from": {
3558
- "description": "Legacy SDK to migrate from",
3559
- "name": "from",
3560
- "default": "launch",
3566
+ "profile": {
3567
+ "char": "p",
3568
+ "description": "Deprecated: use --workspace instead",
3569
+ "helpGroup": "GLOBAL",
3570
+ "hidden": true,
3571
+ "name": "profile",
3572
+ "required": false,
3573
+ "hasDynamicHelp": false,
3574
+ "multiple": false,
3575
+ "type": "option"
3576
+ },
3577
+ "environment": {
3578
+ "char": "e",
3579
+ "description": "Filter by environment name",
3580
+ "name": "environment",
3581
+ "required": false,
3561
3582
  "hasDynamicHelp": false,
3562
3583
  "multiple": false,
3563
- "options": [
3564
- "launch"
3565
- ],
3566
3584
  "type": "option"
3567
3585
  }
3568
3586
  },
3569
3587
  "hasDynamicHelp": false,
3570
3588
  "hiddenAliases": [],
3571
- "id": "migrate:my-code",
3589
+ "id": "sdk-key:list",
3572
3590
  "pluginAlias": "@quonfig/cli",
3573
3591
  "pluginName": "@quonfig/cli",
3574
3592
  "pluginType": "core",
@@ -3578,18 +3596,22 @@
3578
3596
  "relativePath": [
3579
3597
  "dist",
3580
3598
  "commands",
3581
- "migrate",
3582
- "my-code.js"
3599
+ "sdk-key",
3600
+ "list.js"
3583
3601
  ]
3584
3602
  },
3585
- "migrate:status": {
3603
+ "sdk-key:revoke": {
3586
3604
  "aliases": [],
3587
- "args": {},
3588
- "description": "Show the status of a workspace migrated with `qfg migrate`. Reads .qf/import-state.json and summarizes source, counts, and next steps.",
3605
+ "args": {
3606
+ "keyId": {
3607
+ "description": "ID of the SDK key to revoke",
3608
+ "name": "keyId",
3609
+ "required": true
3610
+ }
3611
+ },
3612
+ "description": "Revoke an SDK key by its ID",
3589
3613
  "examples": [
3590
- "<%= config.bin %> <%= command.id %>",
3591
- "<%= config.bin %> <%= command.id %> --dir ./my-workspace",
3592
- "<%= config.bin %> <%= command.id %> --json"
3614
+ "<%= config.bin %> <%= command.id %> a1b2c3d4-e5f6-7890-abcd-ef1234567890"
3593
3615
  ],
3594
3616
  "flags": {
3595
3617
  "json": {
@@ -3621,10 +3643,23 @@
3621
3643
  "allowNo": false,
3622
3644
  "type": "boolean"
3623
3645
  },
3624
- "dir": {
3625
- "description": "Workspace directory to inspect",
3626
- "name": "dir",
3627
- "default": ".",
3646
+ "workspace": {
3647
+ "char": "w",
3648
+ "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3649
+ "helpGroup": "GLOBAL",
3650
+ "name": "workspace",
3651
+ "required": false,
3652
+ "hasDynamicHelp": false,
3653
+ "multiple": false,
3654
+ "type": "option"
3655
+ },
3656
+ "profile": {
3657
+ "char": "p",
3658
+ "description": "Deprecated: use --workspace instead",
3659
+ "helpGroup": "GLOBAL",
3660
+ "hidden": true,
3661
+ "name": "profile",
3662
+ "required": false,
3628
3663
  "hasDynamicHelp": false,
3629
3664
  "multiple": false,
3630
3665
  "type": "option"
@@ -3632,7 +3667,7 @@
3632
3667
  },
3633
3668
  "hasDynamicHelp": false,
3634
3669
  "hiddenAliases": [],
3635
- "id": "migrate:status",
3670
+ "id": "sdk-key:revoke",
3636
3671
  "pluginAlias": "@quonfig/cli",
3637
3672
  "pluginName": "@quonfig/cli",
3638
3673
  "pluginType": "core",
@@ -3642,17 +3677,19 @@
3642
3677
  "relativePath": [
3643
3678
  "dist",
3644
3679
  "commands",
3645
- "migrate",
3646
- "status.js"
3680
+ "sdk-key",
3681
+ "revoke.js"
3647
3682
  ]
3648
3683
  },
3649
- "sdk-key:create": {
3684
+ "migrate:doctor": {
3650
3685
  "aliases": [],
3651
3686
  "args": {},
3652
- "description": "Create a new SDK key",
3687
+ "description": "Preflight health checks for `qfg migrate`. Verifies auth, workspace provisioning, working tree, and identifier collisions.",
3653
3688
  "examples": [
3654
- "<%= config.bin %> <%= command.id %> --environment production --type server",
3655
- "<%= config.bin %> <%= command.id %> --environment staging --type browser"
3689
+ "<%= config.bin %> <%= command.id %>",
3690
+ "<%= config.bin %> <%= command.id %> --from launch --api-key $LAUNCH_API_KEY",
3691
+ "<%= config.bin %> <%= command.id %> --dir ./my-workspace --language node",
3692
+ "<%= config.bin %> <%= command.id %> --json"
3656
3693
  ],
3657
3694
  "flags": {
3658
3695
  "json": {
@@ -3684,53 +3721,45 @@
3684
3721
  "allowNo": false,
3685
3722
  "type": "boolean"
3686
3723
  },
3687
- "workspace": {
3688
- "char": "w",
3689
- "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3690
- "helpGroup": "GLOBAL",
3691
- "name": "workspace",
3724
+ "api-key": {
3725
+ "description": "Legacy SDK API key to validate against the source",
3726
+ "name": "api-key",
3692
3727
  "required": false,
3693
3728
  "hasDynamicHelp": false,
3694
3729
  "multiple": false,
3695
3730
  "type": "option"
3696
3731
  },
3697
- "profile": {
3698
- "char": "p",
3699
- "description": "Deprecated: use --workspace instead",
3700
- "helpGroup": "GLOBAL",
3701
- "hidden": true,
3702
- "name": "profile",
3703
- "required": false,
3732
+ "dir": {
3733
+ "description": "Workspace directory to check (git clean / identifier map)",
3734
+ "name": "dir",
3735
+ "default": ".",
3704
3736
  "hasDynamicHelp": false,
3705
3737
  "multiple": false,
3706
3738
  "type": "option"
3707
3739
  },
3708
- "environment": {
3709
- "char": "e",
3710
- "description": "Environment name (e.g. production, staging)",
3711
- "name": "environment",
3712
- "required": false,
3740
+ "from": {
3741
+ "description": "Legacy SDK to migrate from",
3742
+ "name": "from",
3743
+ "default": "launch",
3713
3744
  "hasDynamicHelp": false,
3714
3745
  "multiple": false,
3746
+ "options": [
3747
+ "launch"
3748
+ ],
3715
3749
  "type": "option"
3716
3750
  },
3717
- "type": {
3718
- "char": "t",
3719
- "description": "Key type: server (backend) or browser (frontend)",
3720
- "name": "type",
3751
+ "language": {
3752
+ "description": "Customer SDK language — used to warn when datadir mode is unavailable (e.g. javascript-browser)",
3753
+ "name": "language",
3721
3754
  "required": false,
3722
3755
  "hasDynamicHelp": false,
3723
3756
  "multiple": false,
3724
- "options": [
3725
- "server",
3726
- "browser"
3727
- ],
3728
3757
  "type": "option"
3729
3758
  }
3730
3759
  },
3731
3760
  "hasDynamicHelp": false,
3732
3761
  "hiddenAliases": [],
3733
- "id": "sdk-key:create",
3762
+ "id": "migrate:doctor",
3734
3763
  "pluginAlias": "@quonfig/cli",
3735
3764
  "pluginName": "@quonfig/cli",
3736
3765
  "pluginType": "core",
@@ -3740,17 +3769,18 @@
3740
3769
  "relativePath": [
3741
3770
  "dist",
3742
3771
  "commands",
3743
- "sdk-key",
3744
- "create.js"
3772
+ "migrate",
3773
+ "doctor.js"
3745
3774
  ]
3746
3775
  },
3747
- "sdk-key:list": {
3776
+ "migrate:my-code": {
3748
3777
  "aliases": [],
3749
3778
  "args": {},
3750
- "description": "List SDK keys for your workspace",
3779
+ "description": "Migrate Launch SDK call sites in your codebase to Quonfig SDK call sites (invokes the qfg-migrate-code Claude skill)",
3751
3780
  "examples": [
3752
3781
  "<%= config.bin %> <%= command.id %>",
3753
- "<%= config.bin %> <%= command.id %> --environment production"
3782
+ "<%= config.bin %> <%= command.id %> --from launch",
3783
+ "<%= config.bin %> <%= command.id %> --dry-run"
3754
3784
  ],
3755
3785
  "flags": {
3756
3786
  "json": {
@@ -3782,40 +3812,27 @@
3782
3812
  "allowNo": false,
3783
3813
  "type": "boolean"
3784
3814
  },
3785
- "workspace": {
3786
- "char": "w",
3787
- "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3788
- "helpGroup": "GLOBAL",
3789
- "name": "workspace",
3790
- "required": false,
3791
- "hasDynamicHelp": false,
3792
- "multiple": false,
3793
- "type": "option"
3794
- },
3795
- "profile": {
3796
- "char": "p",
3797
- "description": "Deprecated: use --workspace instead",
3798
- "helpGroup": "GLOBAL",
3799
- "hidden": true,
3800
- "name": "profile",
3801
- "required": false,
3802
- "hasDynamicHelp": false,
3803
- "multiple": false,
3804
- "type": "option"
3815
+ "dry-run": {
3816
+ "description": "Show what would be migrated without editing any files",
3817
+ "name": "dry-run",
3818
+ "allowNo": false,
3819
+ "type": "boolean"
3805
3820
  },
3806
- "environment": {
3807
- "char": "e",
3808
- "description": "Filter by environment name",
3809
- "name": "environment",
3810
- "required": false,
3821
+ "from": {
3822
+ "description": "Legacy SDK to migrate from",
3823
+ "name": "from",
3824
+ "default": "launch",
3811
3825
  "hasDynamicHelp": false,
3812
3826
  "multiple": false,
3827
+ "options": [
3828
+ "launch"
3829
+ ],
3813
3830
  "type": "option"
3814
3831
  }
3815
3832
  },
3816
3833
  "hasDynamicHelp": false,
3817
3834
  "hiddenAliases": [],
3818
- "id": "sdk-key:list",
3835
+ "id": "migrate:my-code",
3819
3836
  "pluginAlias": "@quonfig/cli",
3820
3837
  "pluginName": "@quonfig/cli",
3821
3838
  "pluginType": "core",
@@ -3825,22 +3842,18 @@
3825
3842
  "relativePath": [
3826
3843
  "dist",
3827
3844
  "commands",
3828
- "sdk-key",
3829
- "list.js"
3845
+ "migrate",
3846
+ "my-code.js"
3830
3847
  ]
3831
3848
  },
3832
- "sdk-key:revoke": {
3849
+ "migrate:status": {
3833
3850
  "aliases": [],
3834
- "args": {
3835
- "keyId": {
3836
- "description": "ID of the SDK key to revoke",
3837
- "name": "keyId",
3838
- "required": true
3839
- }
3840
- },
3841
- "description": "Revoke an SDK key by its ID",
3851
+ "args": {},
3852
+ "description": "Show the status of a workspace migrated with `qfg migrate`. Reads .qf/import-state.json and summarizes source, counts, and next steps.",
3842
3853
  "examples": [
3843
- "<%= config.bin %> <%= command.id %> a1b2c3d4-e5f6-7890-abcd-ef1234567890"
3854
+ "<%= config.bin %> <%= command.id %>",
3855
+ "<%= config.bin %> <%= command.id %> --dir ./my-workspace",
3856
+ "<%= config.bin %> <%= command.id %> --json"
3844
3857
  ],
3845
3858
  "flags": {
3846
3859
  "json": {
@@ -3872,23 +3885,10 @@
3872
3885
  "allowNo": false,
3873
3886
  "type": "boolean"
3874
3887
  },
3875
- "workspace": {
3876
- "char": "w",
3877
- "description": "Workspace slug to use (overrides QUONFIG_WORKSPACE env var and saved default)",
3878
- "helpGroup": "GLOBAL",
3879
- "name": "workspace",
3880
- "required": false,
3881
- "hasDynamicHelp": false,
3882
- "multiple": false,
3883
- "type": "option"
3884
- },
3885
- "profile": {
3886
- "char": "p",
3887
- "description": "Deprecated: use --workspace instead",
3888
- "helpGroup": "GLOBAL",
3889
- "hidden": true,
3890
- "name": "profile",
3891
- "required": false,
3888
+ "dir": {
3889
+ "description": "Workspace directory to inspect",
3890
+ "name": "dir",
3891
+ "default": ".",
3892
3892
  "hasDynamicHelp": false,
3893
3893
  "multiple": false,
3894
3894
  "type": "option"
@@ -3896,7 +3896,7 @@
3896
3896
  },
3897
3897
  "hasDynamicHelp": false,
3898
3898
  "hiddenAliases": [],
3899
- "id": "sdk-key:revoke",
3899
+ "id": "migrate:status",
3900
3900
  "pluginAlias": "@quonfig/cli",
3901
3901
  "pluginName": "@quonfig/cli",
3902
3902
  "pluginType": "core",
@@ -3906,8 +3906,8 @@
3906
3906
  "relativePath": [
3907
3907
  "dist",
3908
3908
  "commands",
3909
- "sdk-key",
3910
- "revoke.js"
3909
+ "migrate",
3910
+ "status.js"
3911
3911
  ]
3912
3912
  },
3913
3913
  "workspace:bootstrap": {
@@ -4126,5 +4126,5 @@
4126
4126
  ]
4127
4127
  }
4128
4128
  },
4129
- "version": "0.0.58"
4129
+ "version": "0.0.60"
4130
4130
  }
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.58",
4
+ "version": "0.0.60",
5
5
  "bugs": {
6
6
  "url": "https://github.com/quonfig/cli/issues"
7
7
  },