@quonfig/cli 0.0.12 → 0.0.13
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 +91 -33
- package/dist/codegen/json-schema-to-zod.js +7 -5
- package/dist/codegen/language-mappers/zod-base-mapper.d.ts +2 -2
- package/dist/codegen/language-mappers/zod-to-string-mapper.d.ts +2 -2
- package/dist/codegen/language-mappers/zod-to-string-mapper.js +6 -6
- package/dist/codegen/language-mappers/zod-to-typescript-mapper.d.ts +2 -2
- package/dist/codegen/language-mappers/zod-to-typescript-mapper.js +6 -6
- package/dist/codegen/language-mappers/zod-to-typescript-return-value-mapper.d.ts +2 -2
- package/dist/codegen/language-mappers/zod-to-typescript-return-value-mapper.js +5 -5
- package/dist/codegen/local-config-reader.js +0 -1
- package/dist/codegen/schema-extractor.js +5 -2
- package/dist/commands/info.js +4 -1
- package/dist/commands/init.js +12 -2
- package/dist/commands/interactive.d.ts +1 -0
- package/dist/commands/interactive.js +8 -0
- package/dist/commands/login.js +9 -3
- package/dist/commands/migrate/doctor.js +1 -1
- package/dist/commands/migrate/my-code.d.ts +11 -0
- package/dist/commands/migrate/my-code.js +80 -0
- package/dist/commands/migrate/status.js +3 -16
- package/dist/commands/migrate.js +29 -8
- package/dist/commands/override.js +6 -3
- package/dist/commands/profile.d.ts +1 -1
- package/dist/commands/profile.js +1 -1
- package/dist/commands/pull.d.ts +2 -2
- package/dist/commands/pull.js +38 -41
- package/dist/commands/schema.d.ts +3 -3
- package/dist/commands/schema.js +37 -37
- package/dist/commands/sdk-key/create.js +12 -14
- package/dist/commands/sdk-key/revoke.d.ts +1 -1
- package/dist/commands/sdk-key/revoke.js +2 -4
- package/dist/commands/set-default.js +7 -5
- package/dist/commands/set-rollout.d.ts +1 -1
- package/dist/commands/set-rollout.js +16 -13
- package/dist/commands/sync.d.ts +3 -3
- package/dist/commands/sync.js +30 -26
- package/dist/commands/whoami.js +1 -5
- package/dist/commands/workspace/bootstrap.js +7 -7
- package/dist/commands/workspace/switch.js +2 -2
- package/dist/init/init-workspace.d.ts +2 -2
- package/dist/init/init-workspace.js +32 -18
- package/dist/init/samples.d.ts +1 -1
- package/dist/init/samples.js +2 -2
- package/dist/init/schema.js +24 -15
- package/dist/interactive-prompt.js +1 -10
- package/dist/migrate/doctor.js +3 -1
- package/dist/migrate/local-write.d.ts +26 -0
- package/dist/migrate/local-write.js +85 -0
- package/dist/migrate/migration-report.js +1 -9
- package/dist/migrate/push-strategy.js +1 -7
- package/dist/migrate/push-to-cloud.js +1 -1
- package/dist/migrate/sources/flagsmith.js +10 -0
- package/dist/quonfig.d.ts +1 -1
- package/dist/quonfig.js +5 -9
- package/dist/ui/get-value.js +1 -1
- package/dist/util/config-value-dto.js +17 -1
- package/dist/util/encryption.js +4 -1
- package/dist/util/friction-log.d.ts +1 -1
- package/dist/util/friction-log.js +5 -1
- package/dist/util/get-client.js +51 -3
- package/dist/util/get-valid-token.d.ts +4 -0
- package/dist/util/get-valid-token.js +17 -2
- package/dist/util/git-ops.js +7 -7
- package/dist/util/gitea-api.d.ts +2 -2
- package/dist/util/gitea-api.js +5 -3
- package/dist/util/gitea-token-storage.d.ts +2 -2
- package/dist/util/gitea-token-storage.js +1 -1
- package/dist/util/oauth-client.js +1 -1
- package/dist/util/token-storage.js +2 -2
- package/dist/verify/standalone.d.ts +0 -1
- package/dist/verify/standalone.js +22 -23
- package/dist/verify/validate.d.ts +8 -8
- package/dist/verify/validate.js +252 -246
- package/oclif.manifest.json +79 -3
- package/package.json +6 -6
package/oclif.manifest.json
CHANGED
|
@@ -587,6 +587,7 @@
|
|
|
587
587
|
"interactive": {
|
|
588
588
|
"aliases": [],
|
|
589
589
|
"args": {},
|
|
590
|
+
"description": "Launch an interactive menu to browse and manage your workspace.\n\nCommon shortcuts:\n qfg set-default my.flag --environment production --value false # catch-all fallback\n qfg set-rollout my.flag --environment production --true-percent 20 # % rollout\n\nFor arbitrary targeting rules (e.g. user.email, plan, segment, custom property),\nrun 'qfg config-schema' then 'qfg pull' and edit the JSON config directly.",
|
|
590
591
|
"examples": [
|
|
591
592
|
"<%= config.bin %>"
|
|
592
593
|
],
|
|
@@ -1070,7 +1071,7 @@
|
|
|
1070
1071
|
"name": "name"
|
|
1071
1072
|
}
|
|
1072
1073
|
},
|
|
1073
|
-
"description": "Override the value of an item for your user/SDK key combo",
|
|
1074
|
+
"description": "Override the value of an item for your user/SDK key combo.\n\nTo target users other than yourself, or to express rules like \"user.email == X → value Y\",\nyou cannot use override — see:\n qfg config-schema # operator reference + worked multi-rule example\n qfg pull # clone the workspace so you can edit JSON directly",
|
|
1074
1075
|
"examples": [
|
|
1075
1076
|
"<%= config.bin %> <%= command.id %> # will prompt for name and value",
|
|
1076
1077
|
"<%= config.bin %> <%= command.id %> my.flag.name --value=true",
|
|
@@ -1467,7 +1468,9 @@
|
|
|
1467
1468
|
"<%= config.bin %> <%= command.id %> my.flag.name --value=true --secret",
|
|
1468
1469
|
"<%= config.bin %> <%= command.id %> my.config.name --env-var=MY_ENV_VAR_NAME --environment=production",
|
|
1469
1470
|
"# For a percentage rollout, use set-rollout instead:",
|
|
1470
|
-
"<%= config.bin %> set-rollout my.flag.name --environment production --true-percent 20"
|
|
1471
|
+
"<%= config.bin %> set-rollout my.flag.name --environment production --true-percent 20",
|
|
1472
|
+
"# For per-user / per-property targeting (e.g. user.email == X), edit JSON directly:",
|
|
1473
|
+
"<%= config.bin %> pull && <%= config.bin %> config-schema"
|
|
1471
1474
|
],
|
|
1472
1475
|
"flags": {
|
|
1473
1476
|
"json": {
|
|
@@ -2044,6 +2047,79 @@
|
|
|
2044
2047
|
"doctor.js"
|
|
2045
2048
|
]
|
|
2046
2049
|
},
|
|
2050
|
+
"migrate:my-code": {
|
|
2051
|
+
"aliases": [],
|
|
2052
|
+
"args": {},
|
|
2053
|
+
"description": "Migrate Launch SDK call sites in your codebase to Quonfig SDK call sites (invokes the qfg-migrate-code Claude skill)",
|
|
2054
|
+
"examples": [
|
|
2055
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2056
|
+
"<%= config.bin %> <%= command.id %> --from launch",
|
|
2057
|
+
"<%= config.bin %> <%= command.id %> --dry-run"
|
|
2058
|
+
],
|
|
2059
|
+
"flags": {
|
|
2060
|
+
"json": {
|
|
2061
|
+
"description": "Format output as json.",
|
|
2062
|
+
"helpGroup": "GLOBAL",
|
|
2063
|
+
"name": "json",
|
|
2064
|
+
"allowNo": false,
|
|
2065
|
+
"type": "boolean"
|
|
2066
|
+
},
|
|
2067
|
+
"interactive": {
|
|
2068
|
+
"description": "Force interactive mode",
|
|
2069
|
+
"helpGroup": "GLOBAL",
|
|
2070
|
+
"name": "interactive",
|
|
2071
|
+
"allowNo": true,
|
|
2072
|
+
"type": "boolean"
|
|
2073
|
+
},
|
|
2074
|
+
"no-color": {
|
|
2075
|
+
"description": "Do not colorize output",
|
|
2076
|
+
"env": "NO_COLOR",
|
|
2077
|
+
"helpGroup": "GLOBAL",
|
|
2078
|
+
"name": "no-color",
|
|
2079
|
+
"allowNo": false,
|
|
2080
|
+
"type": "boolean"
|
|
2081
|
+
},
|
|
2082
|
+
"verbose": {
|
|
2083
|
+
"description": "Verbose output",
|
|
2084
|
+
"helpGroup": "GLOBAL",
|
|
2085
|
+
"name": "verbose",
|
|
2086
|
+
"allowNo": false,
|
|
2087
|
+
"type": "boolean"
|
|
2088
|
+
},
|
|
2089
|
+
"dry-run": {
|
|
2090
|
+
"description": "Show what would be migrated without editing any files",
|
|
2091
|
+
"name": "dry-run",
|
|
2092
|
+
"allowNo": false,
|
|
2093
|
+
"type": "boolean"
|
|
2094
|
+
},
|
|
2095
|
+
"from": {
|
|
2096
|
+
"description": "Legacy SDK to migrate from",
|
|
2097
|
+
"name": "from",
|
|
2098
|
+
"default": "launch",
|
|
2099
|
+
"hasDynamicHelp": false,
|
|
2100
|
+
"multiple": false,
|
|
2101
|
+
"options": [
|
|
2102
|
+
"launch"
|
|
2103
|
+
],
|
|
2104
|
+
"type": "option"
|
|
2105
|
+
}
|
|
2106
|
+
},
|
|
2107
|
+
"hasDynamicHelp": false,
|
|
2108
|
+
"hiddenAliases": [],
|
|
2109
|
+
"id": "migrate:my-code",
|
|
2110
|
+
"pluginAlias": "@quonfig/cli",
|
|
2111
|
+
"pluginName": "@quonfig/cli",
|
|
2112
|
+
"pluginType": "core",
|
|
2113
|
+
"strict": true,
|
|
2114
|
+
"enableJsonFlag": true,
|
|
2115
|
+
"isESM": true,
|
|
2116
|
+
"relativePath": [
|
|
2117
|
+
"dist",
|
|
2118
|
+
"commands",
|
|
2119
|
+
"migrate",
|
|
2120
|
+
"my-code.js"
|
|
2121
|
+
]
|
|
2122
|
+
},
|
|
2047
2123
|
"migrate:status": {
|
|
2048
2124
|
"aliases": [],
|
|
2049
2125
|
"args": {},
|
|
@@ -2503,5 +2579,5 @@
|
|
|
2503
2579
|
]
|
|
2504
2580
|
}
|
|
2505
2581
|
},
|
|
2506
|
-
"version": "0.0.
|
|
2582
|
+
"version": "0.0.13"
|
|
2507
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.
|
|
4
|
+
"version": "0.0.13",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/quonfig/cli/issues"
|
|
7
7
|
},
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"@oclif/core": "^3.18.2",
|
|
22
22
|
"@oclif/plugin-help": "^6",
|
|
23
23
|
"@oclif/plugin-plugins": "^4",
|
|
24
|
-
"@quonfig/node": "^0.0.
|
|
24
|
+
"@quonfig/node": "^0.0.11",
|
|
25
25
|
"acorn": "^8.10.0",
|
|
26
26
|
"acorn-walk": "^8.2.0",
|
|
27
27
|
"chalk": "^5.4.1",
|
|
28
|
-
"comment-json": "^4.2
|
|
28
|
+
"comment-json": "^4.6.2",
|
|
29
29
|
"common-tags": "^1.8.2",
|
|
30
30
|
"fuzzy": "^0.1.3",
|
|
31
31
|
"inquirer-autocomplete-standalone": "^0.8.1",
|
|
32
32
|
"lodash.camelcase": "^4.3.0",
|
|
33
33
|
"mustache": "^4.2.0",
|
|
34
|
-
"node-forge": "^1.
|
|
34
|
+
"node-forge": "^1.4.0",
|
|
35
35
|
"zod": "^4.1.12"
|
|
36
36
|
},
|
|
37
|
-
"description": "Quonfig CLI",
|
|
37
|
+
"description": "Quonfig CLI. For arbitrary targeting rules (email, plan, segment, custom property), run `qfg config-schema` then `qfg pull`.",
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@oclif/prettier-config": "^0.2.1",
|
|
40
40
|
"@oclif/test": "^3",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"prettier": "^3.6.2",
|
|
59
59
|
"shx": "^0.3.4",
|
|
60
60
|
"ts-node": "^10.9.1",
|
|
61
|
-
"tsx": "^4.
|
|
61
|
+
"tsx": "^4.21.0",
|
|
62
62
|
"typescript": "^5"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|