@nuucognition/cli-core 0.0.1-beta.0 → 0.0.1-beta.1
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/dist/index.d.ts +9 -1
- package/dist/index.js +8 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -86,6 +86,14 @@ declare function ensureConfigDirSync(cliname: string): string;
|
|
|
86
86
|
declare function resolveConfig(options: ConfigOptions): Promise<Record<string, unknown>>;
|
|
87
87
|
declare function resolveConfigSync(options: ConfigOptions): Record<string, unknown>;
|
|
88
88
|
|
|
89
|
+
declare function readConfigFile(path: string): Promise<Record<string, unknown> | null>;
|
|
90
|
+
declare function readConfigFileSync(path: string): Record<string, unknown> | null;
|
|
91
|
+
declare function writeConfigFile(path: string, data: Record<string, unknown>): Promise<void>;
|
|
92
|
+
declare function setConfigField(path: string, key: string, value: unknown): Promise<void>;
|
|
93
|
+
declare function removeConfigField(path: string, key: string): Promise<void>;
|
|
94
|
+
declare function setFeatureOverride(path: string, featureId: string, enabled: boolean): Promise<void>;
|
|
95
|
+
declare function removeFeatureOverride(path: string, featureId: string): Promise<void>;
|
|
96
|
+
|
|
89
97
|
declare function createFeatureRegistry(features: FeatureDefinition[]): FeatureRegistry;
|
|
90
98
|
declare function getFeature(registry: FeatureRegistry, id: string): FeatureDefinition | undefined;
|
|
91
99
|
declare function getFeaturesByTier(registry: FeatureRegistry, tier: FeatureTier): FeatureDefinition[];
|
|
@@ -147,4 +155,4 @@ declare class AuthRequiredError extends CliError {
|
|
|
147
155
|
constructor(featureId: string, cliname: string);
|
|
148
156
|
}
|
|
149
157
|
|
|
150
|
-
export { type AuthCommandFactoryConfig, type AuthEnvironment, AuthRequiredError, CliError, type ConfigOptions, type FeatureCheck, type FeatureContext, type FeatureDefinition, FeatureNotAvailableError, type FeatureRegistry, type FeatureTier, type FeatureType, type LoginConfig, type ModeConfig, NUU_ACCOUNT_URL_DEV, NUU_ACCOUNT_URL_PROD, type NuuCredentials, type ResolvedRuntime, type RuntimeMode, TIER_ALIASES, bold, checkFeature, clearAuth, createFeatureRegistry, createLoginCommand, createLogoutCommand, createWhoamiCommand, dim, ensureConfigDir, ensureConfigDirSync, ensureNuuDir, error, getCommandFeatures, getConfigDir, getConfigPath, getFeature, getFeaturesByTier, getFeaturesByType, getNuuDir, getValidAuth, hasAuth, hasFeature, info, isAuthExpired, isFeatureEnabled, isTierEnabled, isValidTier, loadAuth, loadAuthSync, normalizeRuntimeMode, normalizeTier, refreshAuth, requireFeature, requireValidAuth, resetExperimental, resetFeatureEnabled, resetMode, resolveConfig, resolveConfigSync, resolveRuntime, resolveRuntimeSync, saveAuth, scopedEnvVar, scopedEnvVarTrue, setAuthVerbose, setExperimental, setFeatureEnabled, setMode, shouldRefreshAuth, startLoginFlow, success, warn };
|
|
158
|
+
export { type AuthCommandFactoryConfig, type AuthEnvironment, AuthRequiredError, CliError, type ConfigOptions, type FeatureCheck, type FeatureContext, type FeatureDefinition, FeatureNotAvailableError, type FeatureRegistry, type FeatureTier, type FeatureType, type LoginConfig, type ModeConfig, NUU_ACCOUNT_URL_DEV, NUU_ACCOUNT_URL_PROD, type NuuCredentials, type ResolvedRuntime, type RuntimeMode, TIER_ALIASES, bold, checkFeature, clearAuth, createFeatureRegistry, createLoginCommand, createLogoutCommand, createWhoamiCommand, dim, ensureConfigDir, ensureConfigDirSync, ensureNuuDir, error, getCommandFeatures, getConfigDir, getConfigPath, getFeature, getFeaturesByTier, getFeaturesByType, getNuuDir, getValidAuth, hasAuth, hasFeature, info, isAuthExpired, isFeatureEnabled, isTierEnabled, isValidTier, loadAuth, loadAuthSync, normalizeRuntimeMode, normalizeTier, readConfigFile, readConfigFileSync, refreshAuth, removeConfigField, removeFeatureOverride, requireFeature, requireValidAuth, resetExperimental, resetFeatureEnabled, resetMode, resolveConfig, resolveConfigSync, resolveRuntime, resolveRuntimeSync, saveAuth, scopedEnvVar, scopedEnvVarTrue, setAuthVerbose, setConfigField, setExperimental, setFeatureEnabled, setFeatureOverride, setMode, shouldRefreshAuth, startLoginFlow, success, warn, writeConfigFile };
|
package/dist/index.js
CHANGED
|
@@ -984,7 +984,11 @@ export {
|
|
|
984
984
|
loadAuthSync,
|
|
985
985
|
normalizeRuntimeMode,
|
|
986
986
|
normalizeTier,
|
|
987
|
+
readConfigFile,
|
|
988
|
+
readConfigFileSync,
|
|
987
989
|
refreshAuth,
|
|
990
|
+
removeConfigField,
|
|
991
|
+
removeFeatureOverride,
|
|
988
992
|
requireFeature,
|
|
989
993
|
requireValidAuth,
|
|
990
994
|
resetExperimental,
|
|
@@ -998,11 +1002,14 @@ export {
|
|
|
998
1002
|
scopedEnvVar,
|
|
999
1003
|
scopedEnvVarTrue,
|
|
1000
1004
|
setAuthVerbose,
|
|
1005
|
+
setConfigField,
|
|
1001
1006
|
setExperimental,
|
|
1002
1007
|
setFeatureEnabled,
|
|
1008
|
+
setFeatureOverride,
|
|
1003
1009
|
setMode,
|
|
1004
1010
|
shouldRefreshAuth,
|
|
1005
1011
|
startLoginFlow,
|
|
1006
1012
|
success,
|
|
1007
|
-
warn
|
|
1013
|
+
warn,
|
|
1014
|
+
writeConfigFile
|
|
1008
1015
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuucognition/cli-core",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.1",
|
|
4
4
|
"description": "Shared CLI infrastructure for the NUU ecosystem",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"eslint": "^9.32.0",
|
|
34
34
|
"tsup": "^8.3.5",
|
|
35
35
|
"typescript": "^5.9.2",
|
|
36
|
-
"@nuucognition/
|
|
37
|
-
"@nuucognition/
|
|
36
|
+
"@nuucognition/typescript-config": "0.0.0",
|
|
37
|
+
"@nuucognition/eslint-config": "0.0.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsup",
|