@quonfig/cli 0.0.13 → 0.0.14

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
@@ -14,7 +14,7 @@ $ npm install -g @quonfig/cli
14
14
  $ qfg COMMAND
15
15
  running command...
16
16
  $ qfg (--version)
17
- @quonfig/cli/0.0.13 linux-x64 node-v24.4.1
17
+ @quonfig/cli/0.0.14 linux-x64 node-v24.4.1
18
18
  $ qfg --help [COMMAND]
19
19
  USAGE
20
20
  $ qfg COMMAND
@@ -88,7 +88,7 @@ EXAMPLES
88
88
  $ qfg config-schema --json-schema # full JSON Schema document (copy into your editor)
89
89
  ```
90
90
 
91
- _See code: [src/commands/config-schema.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/config-schema.ts)_
91
+ _See code: [src/commands/config-schema.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/config-schema.ts)_
92
92
 
93
93
  ## `qfg create NAME`
94
94
 
@@ -160,7 +160,7 @@ EXAMPLES
160
160
  $ qfg set-rollout my.new.flag --environment production --true-percent 20
161
161
  ```
162
162
 
163
- _See code: [src/commands/create.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/create.ts)_
163
+ _See code: [src/commands/create.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/create.ts)_
164
164
 
165
165
  ## `qfg flag info [NAME]`
166
166
 
@@ -360,7 +360,7 @@ EXAMPLES
360
360
  $ qfg generate --targets node-ts -o ./dist # combine with targets
361
361
  ```
362
362
 
363
- _See code: [src/commands/generate.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/generate.ts)_
363
+ _See code: [src/commands/generate.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/generate.ts)_
364
364
 
365
365
  ## `qfg generate-new-hex-key`
366
366
 
@@ -383,7 +383,7 @@ EXAMPLES
383
383
  $ qfg generate-new-hex-key
384
384
  ```
385
385
 
386
- _See code: [src/commands/generate-new-hex-key.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/generate-new-hex-key.ts)_
386
+ _See code: [src/commands/generate-new-hex-key.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/generate-new-hex-key.ts)_
387
387
 
388
388
  ## `qfg get [NAME]`
389
389
 
@@ -415,7 +415,7 @@ EXAMPLES
415
415
  $ qfg get my.config.name --environment=production
416
416
  ```
417
417
 
418
- _See code: [src/commands/get.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/get.ts)_
418
+ _See code: [src/commands/get.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/get.ts)_
419
419
 
420
420
  ## `qfg info [NAME]`
421
421
 
@@ -463,7 +463,7 @@ EXAMPLES
463
463
  $ qfg info my.config.name --exclude-evaluations # skip 24h stats
464
464
  ```
465
465
 
466
- _See code: [src/commands/info.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/info.ts)_
466
+ _See code: [src/commands/info.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/info.ts)_
467
467
 
468
468
  ## `qfg init [DIRECTORY]`
469
469
 
@@ -501,7 +501,7 @@ EXAMPLES
501
501
  $ qfg init --dry-run
502
502
  ```
503
503
 
504
- _See code: [src/commands/init.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/init.ts)_
504
+ _See code: [src/commands/init.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/init.ts)_
505
505
 
506
506
  ## `qfg interactive`
507
507
 
@@ -531,7 +531,7 @@ EXAMPLES
531
531
  $ qfg
532
532
  ```
533
533
 
534
- _See code: [src/commands/interactive.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/interactive.ts)_
534
+ _See code: [src/commands/interactive.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/interactive.ts)_
535
535
 
536
536
  ## `qfg list`
537
537
 
@@ -571,7 +571,7 @@ EXAMPLES
571
571
  $ qfg list --feature-flags
572
572
  ```
573
573
 
574
- _See code: [src/commands/list.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/list.ts)_
574
+ _See code: [src/commands/list.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/list.ts)_
575
575
 
576
576
  ## `qfg login`
577
577
 
@@ -596,7 +596,7 @@ EXAMPLES
596
596
  $ qfg login --profile myprofile
597
597
  ```
598
598
 
599
- _See code: [src/commands/login.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/login.ts)_
599
+ _See code: [src/commands/login.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/login.ts)_
600
600
 
601
601
  ## `qfg logout`
602
602
 
@@ -619,7 +619,7 @@ EXAMPLES
619
619
  $ qfg logout
620
620
  ```
621
621
 
622
- _See code: [src/commands/logout.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/logout.ts)_
622
+ _See code: [src/commands/logout.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/logout.ts)_
623
623
 
624
624
  ## `qfg mcp`
625
625
 
@@ -652,7 +652,7 @@ EXAMPLES
652
652
  $ qfg mcp --url http://local-app.quonfig-staging.com:3003/api/v1/mcp
653
653
  ```
654
654
 
655
- _See code: [src/commands/mcp.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/mcp.ts)_
655
+ _See code: [src/commands/mcp.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/mcp.ts)_
656
656
 
657
657
  ## `qfg migrate`
658
658
 
@@ -706,7 +706,7 @@ EXAMPLES
706
706
  $ qfg migrate --from launch --api-key $LAUNCH_API_KEY --dir ./quonfig-config --staging
707
707
  ```
708
708
 
709
- _See code: [src/commands/migrate.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/migrate.ts)_
709
+ _See code: [src/commands/migrate.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/migrate.ts)_
710
710
 
711
711
  ## `qfg migrate doctor`
712
712
 
@@ -744,7 +744,7 @@ EXAMPLES
744
744
  $ qfg migrate doctor --json
745
745
  ```
746
746
 
747
- _See code: [src/commands/migrate/doctor.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/migrate/doctor.ts)_
747
+ _See code: [src/commands/migrate/doctor.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/migrate/doctor.ts)_
748
748
 
749
749
  ## `qfg migrate my-code`
750
750
 
@@ -776,7 +776,7 @@ EXAMPLES
776
776
  $ qfg migrate my-code --dry-run
777
777
  ```
778
778
 
779
- _See code: [src/commands/migrate/my-code.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/migrate/my-code.ts)_
779
+ _See code: [src/commands/migrate/my-code.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/migrate/my-code.ts)_
780
780
 
781
781
  ## `qfg migrate status`
782
782
 
@@ -807,7 +807,7 @@ EXAMPLES
807
807
  $ qfg migrate status --json
808
808
  ```
809
809
 
810
- _See code: [src/commands/migrate/status.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/migrate/status.ts)_
810
+ _See code: [src/commands/migrate/status.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/migrate/status.ts)_
811
811
 
812
812
  ## `qfg override [NAME]`
813
813
 
@@ -851,7 +851,7 @@ EXAMPLES
851
851
  $ qfg override my.double.config --value=3.14159
852
852
  ```
853
853
 
854
- _See code: [src/commands/override.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/override.ts)_
854
+ _See code: [src/commands/override.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/override.ts)_
855
855
 
856
856
  ## `qfg pull`
857
857
 
@@ -895,7 +895,7 @@ EXAMPLES
895
895
  $ qfg pull # uses QUONFIG_DIR env var
896
896
  ```
897
897
 
898
- _See code: [src/commands/pull.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/pull.ts)_
898
+ _See code: [src/commands/pull.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/pull.ts)_
899
899
 
900
900
  ## `qfg schema NAME`
901
901
 
@@ -933,7 +933,7 @@ EXAMPLES
933
933
  $ qfg schema my-schema --set-json-schema=@schemas/my-schema.json --protected
934
934
  ```
935
935
 
936
- _See code: [src/commands/schema.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/schema.ts)_
936
+ _See code: [src/commands/schema.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/schema.ts)_
937
937
 
938
938
  ## `qfg sdk-key`
939
939
 
@@ -960,7 +960,7 @@ EXAMPLES
960
960
  $ qfg sdk-key revoke <key-id>
961
961
  ```
962
962
 
963
- _See code: [src/commands/sdk-key.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/sdk-key.ts)_
963
+ _See code: [src/commands/sdk-key.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/sdk-key.ts)_
964
964
 
965
965
  ## `qfg sdk-key create`
966
966
 
@@ -992,7 +992,7 @@ EXAMPLES
992
992
  $ qfg sdk-key create --environment staging --type browser
993
993
  ```
994
994
 
995
- _See code: [src/commands/sdk-key/create.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/sdk-key/create.ts)_
995
+ _See code: [src/commands/sdk-key/create.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/sdk-key/create.ts)_
996
996
 
997
997
  ## `qfg sdk-key list`
998
998
 
@@ -1021,7 +1021,7 @@ EXAMPLES
1021
1021
  $ qfg sdk-key list --environment production
1022
1022
  ```
1023
1023
 
1024
- _See code: [src/commands/sdk-key/list.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/sdk-key/list.ts)_
1024
+ _See code: [src/commands/sdk-key/list.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/sdk-key/list.ts)_
1025
1025
 
1026
1026
  ## `qfg sdk-key revoke KEYID`
1027
1027
 
@@ -1048,7 +1048,7 @@ EXAMPLES
1048
1048
  $ qfg sdk-key revoke a1b2c3d4-e5f6-7890-abcd-ef1234567890
1049
1049
  ```
1050
1050
 
1051
- _See code: [src/commands/sdk-key/revoke.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/sdk-key/revoke.ts)_
1051
+ _See code: [src/commands/sdk-key/revoke.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/sdk-key/revoke.ts)_
1052
1052
 
1053
1053
  ## `qfg set-default [NAME]`
1054
1054
 
@@ -1119,7 +1119,7 @@ EXAMPLES
1119
1119
  $ qfg pull && qfg config-schema
1120
1120
  ```
1121
1121
 
1122
- _See code: [src/commands/set-default.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/set-default.ts)_
1122
+ _See code: [src/commands/set-default.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/set-default.ts)_
1123
1123
 
1124
1124
  ## `qfg set-rollout [NAME]`
1125
1125
 
@@ -1196,7 +1196,7 @@ EXAMPLES
1196
1196
  $ qfg set-rollout my.variant.flag --environment production --weights "a:33,b:33,c:34" --hash-by user.id
1197
1197
  ```
1198
1198
 
1199
- _See code: [src/commands/set-rollout.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/set-rollout.ts)_
1199
+ _See code: [src/commands/set-rollout.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/set-rollout.ts)_
1200
1200
 
1201
1201
  ## `qfg sync`
1202
1202
 
@@ -1228,7 +1228,7 @@ EXAMPLES
1228
1228
  $ qfg sync --watch --dir ./our-config --interval 30
1229
1229
  ```
1230
1230
 
1231
- _See code: [src/commands/sync.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/sync.ts)_
1231
+ _See code: [src/commands/sync.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/sync.ts)_
1232
1232
 
1233
1233
  ## `qfg toggle [NAME]`
1234
1234
 
@@ -1330,7 +1330,7 @@ EXAMPLES
1330
1330
  $ qfg verify --json
1331
1331
  ```
1332
1332
 
1333
- _See code: [src/commands/verify.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/verify.ts)_
1333
+ _See code: [src/commands/verify.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/verify.ts)_
1334
1334
 
1335
1335
  ## `qfg whoami`
1336
1336
 
@@ -1353,7 +1353,7 @@ EXAMPLES
1353
1353
  $ qfg whoami
1354
1354
  ```
1355
1355
 
1356
- _See code: [src/commands/whoami.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/whoami.ts)_
1356
+ _See code: [src/commands/whoami.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/whoami.ts)_
1357
1357
 
1358
1358
  ## `qfg workspace`
1359
1359
 
@@ -1376,7 +1376,7 @@ EXAMPLES
1376
1376
  $ qfg workspace
1377
1377
  ```
1378
1378
 
1379
- _See code: [src/commands/workspace.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/workspace.ts)_
1379
+ _See code: [src/commands/workspace.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/workspace.ts)_
1380
1380
 
1381
1381
  ## `qfg workspace bootstrap`
1382
1382
 
@@ -1409,7 +1409,7 @@ EXAMPLES
1409
1409
  $ qfg workspace bootstrap --dir ./our-config --skip-validate
1410
1410
  ```
1411
1411
 
1412
- _See code: [src/commands/workspace/bootstrap.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/workspace/bootstrap.ts)_
1412
+ _See code: [src/commands/workspace/bootstrap.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/workspace/bootstrap.ts)_
1413
1413
 
1414
1414
  ## `qfg workspace switch`
1415
1415
 
@@ -1432,7 +1432,7 @@ EXAMPLES
1432
1432
  $ qfg workspace switch
1433
1433
  ```
1434
1434
 
1435
- _See code: [src/commands/workspace/switch.ts](https://github.com/quonfig/cli/blob/v0.0.13/src/commands/workspace/switch.ts)_
1435
+ _See code: [src/commands/workspace/switch.ts](https://github.com/quonfig/cli/blob/v0.0.14/src/commands/workspace/switch.ts)_
1436
1436
  <!-- commandsstop -->
1437
1437
 
1438
1438
  ## Local Development
@@ -5,7 +5,7 @@ import { BaseCommand } from '../index.js';
5
5
  import { getActiveProfile, loadAuthConfig } from '../util/token-storage.js';
6
6
  import { loadGiteaToken, isGiteaTokenExpired, saveGiteaToken } from '../util/gitea-token-storage.js';
7
7
  import { mintAndStoreGiteaReadToken, mintGiteaToken } from '../util/gitea-api.js';
8
- import { isGitRepo, getRemoteUrl, isWorkingTreeClean, gitFetch, gitSetRemote, canFastForward, hasDivergedFromRemote, gitMergeFfOnly, gitClone, displayUrl, } from '../util/git-ops.js';
8
+ import { isGitRepo, getRemoteUrl, gitFetch, gitSetRemote, canFastForward, hasDivergedFromRemote, gitMergeFfOnly, gitClone, displayUrl, } from '../util/git-ops.js';
9
9
  export default class Pull extends BaseCommand {
10
10
  static description = `Clone or update a local copy of your workspace config files.
11
11
 
@@ -68,11 +68,12 @@ CLI shortcuts (no JSON editing needed for simple cases):
68
68
  }
69
69
  // Update the remote URL to use current (possibly refreshed) token
70
70
  await gitSetRemote(resolvedDir, repoUrl);
71
- // Check working tree
72
- const clean = await isWorkingTreeClean(resolvedDir);
73
- if (!clean) {
74
- return this.err('Local changes present — commit, stash, or run `git reset --hard origin/main` to discard.');
75
- }
71
+ // Note: we intentionally don't pre-check for untracked or modified files.
72
+ // Plain `git pull` is fine with untracked files, and `git merge --ff-only`
73
+ // below will fail loudly on real conflicts (tracked modifications, or an
74
+ // incoming commit that would overwrite an untracked file). Pre-checking
75
+ // just creates a self-trap when qfg itself writes files like
76
+ // `.qfg-friction.log` into the workspace dir (qfg-q2l).
76
77
  // Fetch
77
78
  this.log('Fetching from remote...');
78
79
  try {
@@ -2579,5 +2579,5 @@
2579
2579
  ]
2580
2580
  }
2581
2581
  },
2582
- "version": "0.0.13"
2582
+ "version": "0.0.14"
2583
2583
  }
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.13",
4
+ "version": "0.0.14",
5
5
  "bugs": {
6
6
  "url": "https://github.com/quonfig/cli/issues"
7
7
  },