@ncukondo/reference-manager 0.14.0 → 0.14.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/README.md +96 -0
- package/dist/chunks/{action-menu-DNlpGiwS.js → action-menu-CVSizwXm.js} +3 -3
- package/dist/chunks/{action-menu-DNlpGiwS.js.map → action-menu-CVSizwXm.js.map} +1 -1
- package/dist/chunks/{index-UpzsmbyY.js → index-CXoDLO8W.js} +869 -26
- package/dist/chunks/index-CXoDLO8W.js.map +1 -0
- package/dist/chunks/{index-4KSTJ3rp.js → index-DapYyqAC.js} +11 -7
- package/dist/chunks/index-DapYyqAC.js.map +1 -0
- package/dist/chunks/{style-select-CHjDTyq2.js → style-select-CYo0O7MZ.js} +2 -2
- package/dist/chunks/{style-select-CHjDTyq2.js.map → style-select-CYo0O7MZ.js.map} +1 -1
- package/dist/cli/commands/config.d.ts +9 -0
- package/dist/cli/commands/config.d.ts.map +1 -0
- package/dist/cli/completion.d.ts +8 -0
- package/dist/cli/completion.d.ts.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/config/env-override.d.ts +36 -0
- package/dist/config/env-override.d.ts.map +1 -0
- package/dist/config/key-parser.d.ts +46 -0
- package/dist/config/key-parser.d.ts.map +1 -0
- package/dist/config/toml-writer.d.ts +25 -0
- package/dist/config/toml-writer.d.ts.map +1 -0
- package/dist/config/value-validator.d.ts +21 -0
- package/dist/config/value-validator.d.ts.map +1 -0
- package/dist/features/config/edit.d.ts +38 -0
- package/dist/features/config/edit.d.ts.map +1 -0
- package/dist/features/config/get.d.ts +35 -0
- package/dist/features/config/get.d.ts.map +1 -0
- package/dist/features/config/list-keys.d.ts +16 -0
- package/dist/features/config/list-keys.d.ts.map +1 -0
- package/dist/features/config/path.d.ts +29 -0
- package/dist/features/config/path.d.ts.map +1 -0
- package/dist/features/config/set.d.ts +27 -0
- package/dist/features/config/set.d.ts.map +1 -0
- package/dist/features/config/show.d.ts +20 -0
- package/dist/features/config/show.d.ts.map +1 -0
- package/dist/features/config/unset.d.ts +17 -0
- package/dist/features/config/unset.d.ts.map +1 -0
- package/dist/features/config/write-target.d.ts +30 -0
- package/dist/features/config/write-target.d.ts.map +1 -0
- package/dist/features/import/importer.d.ts.map +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/index-4KSTJ3rp.js.map +0 -1
- package/dist/chunks/index-UpzsmbyY.js.map +0 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config key parser - handles dot-notation config keys and validates against schema
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Type of a configuration value
|
|
6
|
+
*/
|
|
7
|
+
export type ConfigValueType = "string" | "integer" | "boolean" | "enum" | "string[]";
|
|
8
|
+
/**
|
|
9
|
+
* Information about a configuration key
|
|
10
|
+
*/
|
|
11
|
+
export interface ConfigKeyInfo {
|
|
12
|
+
/** The full key path in snake_case */
|
|
13
|
+
key: string;
|
|
14
|
+
/** The value type */
|
|
15
|
+
type: ConfigValueType;
|
|
16
|
+
/** Description of the key */
|
|
17
|
+
description: string;
|
|
18
|
+
/** For enum types, the allowed values */
|
|
19
|
+
enumValues?: string[];
|
|
20
|
+
/** Whether the value is optional (can be unset) */
|
|
21
|
+
optional?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Parse a dot-notation config key into path segments.
|
|
25
|
+
*/
|
|
26
|
+
export declare function parseConfigKey(key: string): string[];
|
|
27
|
+
/**
|
|
28
|
+
* Check if a key is a valid configuration key.
|
|
29
|
+
* Only leaf keys (not sections) are valid.
|
|
30
|
+
*/
|
|
31
|
+
export declare function isValidConfigKey(key: string): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Get information about a configuration key.
|
|
34
|
+
* Returns null if the key is not valid.
|
|
35
|
+
*/
|
|
36
|
+
export declare function getConfigKeyInfo(key: string): ConfigKeyInfo | null;
|
|
37
|
+
/**
|
|
38
|
+
* Get all valid configuration keys, optionally filtered by section.
|
|
39
|
+
*/
|
|
40
|
+
export declare function getAllConfigKeys(section?: string): string[];
|
|
41
|
+
/**
|
|
42
|
+
* Convert a snake_case key to the internal camelCase path for accessing config values.
|
|
43
|
+
* e.g., "cli.interactive.debounce_ms" -> ["cli", "interactive", "debounceMs"]
|
|
44
|
+
*/
|
|
45
|
+
export declare function toInternalPath(key: string): string[];
|
|
46
|
+
//# sourceMappingURL=key-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-parser.d.ts","sourceRoot":"","sources":["../../src/config/key-parser.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;AAErF;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,sCAAsC;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,qBAAqB;IACrB,IAAI,EAAE,eAAe,CAAC;IACtB,6BAA6B;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAyGD;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAEpD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAKrD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAElE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAW3D;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAcpD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type TOMLValue = string | number | boolean | string[] | number[];
|
|
2
|
+
type TOMLObject = {
|
|
3
|
+
[key: string]: TOMLValue | TOMLObject;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Serialize an object to TOML format string.
|
|
7
|
+
*/
|
|
8
|
+
export declare function serializeToTOML(obj: TOMLObject): string;
|
|
9
|
+
/**
|
|
10
|
+
* Write a value to a TOML config file.
|
|
11
|
+
* Creates the file and parent directories if they don't exist.
|
|
12
|
+
* Preserves existing content.
|
|
13
|
+
*/
|
|
14
|
+
export declare function writeTOMLValue(filePath: string, key: string, value: TOMLValue): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Remove a key from a TOML config file.
|
|
17
|
+
* Does nothing if the file or key doesn't exist.
|
|
18
|
+
*/
|
|
19
|
+
export declare function removeTOMLKey(filePath: string, key: string): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Create a commented configuration template.
|
|
22
|
+
*/
|
|
23
|
+
export declare function createConfigTemplate(): string;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=toml-writer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toml-writer.d.ts","sourceRoot":"","sources":["../../src/config/toml-writer.ts"],"names":[],"mappings":"AAKA,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AACjE,KAAK,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAA;CAAE,CAAC;AAE5D;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,UAAU,GAAG,MAAM,CAEvD;AAiFD;;;;GAIG;AACH,wBAAsB,cAAc,CAClC,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,SAAS,GACf,OAAO,CAAC,IAAI,CAAC,CAef;AAED;;;GAGG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAchF;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CA4C7C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config value validator - validates values against key types
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Result of value validation
|
|
6
|
+
*/
|
|
7
|
+
export interface ValidationResult {
|
|
8
|
+
valid: boolean;
|
|
9
|
+
value?: unknown;
|
|
10
|
+
error?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Validate a value for a given config key.
|
|
14
|
+
*/
|
|
15
|
+
export declare function validateConfigValue(key: string, value: unknown): ValidationResult;
|
|
16
|
+
/**
|
|
17
|
+
* Parse a string value into the appropriate type for a key.
|
|
18
|
+
* Used when parsing command-line arguments.
|
|
19
|
+
*/
|
|
20
|
+
export declare function parseValueForKey(key: string, stringValue: string): unknown;
|
|
21
|
+
//# sourceMappingURL=value-validator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-validator.d.ts","sourceRoot":"","sources":["../../src/config/value-validator.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAOjF;AA+GD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CA8B1E"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config edit subcommand - opens configuration file in editor
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Options for editConfig
|
|
6
|
+
*/
|
|
7
|
+
export interface EditConfigOptions {
|
|
8
|
+
/** Edit local (project) config instead of user config */
|
|
9
|
+
local?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Context for config edit operation
|
|
13
|
+
*/
|
|
14
|
+
export interface EditContext {
|
|
15
|
+
/** Current working directory */
|
|
16
|
+
cwd?: string;
|
|
17
|
+
/** User config path (for testing) */
|
|
18
|
+
userConfigPath?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Target config file information
|
|
22
|
+
*/
|
|
23
|
+
export interface ConfigEditTarget {
|
|
24
|
+
/** Path to the config file */
|
|
25
|
+
path: string;
|
|
26
|
+
/** Whether the file exists */
|
|
27
|
+
exists: boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Get the target config file for editing.
|
|
31
|
+
*/
|
|
32
|
+
export declare function getConfigEditTarget(options: EditConfigOptions, context?: EditContext): ConfigEditTarget;
|
|
33
|
+
/**
|
|
34
|
+
* Create a config file template for new files.
|
|
35
|
+
* Returns a TOML template with all options commented out.
|
|
36
|
+
*/
|
|
37
|
+
export declare function createConfigTemplate(): string;
|
|
38
|
+
//# sourceMappingURL=edit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../src/features/config/edit.ts"],"names":[],"mappings":"AAAA;;GAEG;AASH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,yDAAyD;IACzD,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,gCAAgC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,8BAA8B;IAC9B,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,iBAAiB,EAC1B,OAAO,CAAC,EAAE,WAAW,GACpB,gBAAgB,CAclB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CA4C7C"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config get subcommand - retrieves a specific configuration value
|
|
3
|
+
*/
|
|
4
|
+
import type { Config } from "../../config/schema.js";
|
|
5
|
+
/**
|
|
6
|
+
* Options for getConfigValue
|
|
7
|
+
*/
|
|
8
|
+
export interface GetConfigOptions {
|
|
9
|
+
/** Environment variable override value, if set */
|
|
10
|
+
envOverride?: string;
|
|
11
|
+
/** Ignore environment variable override */
|
|
12
|
+
configOnly?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Result of getConfigValue
|
|
16
|
+
*/
|
|
17
|
+
export interface GetConfigResult {
|
|
18
|
+
/** Whether the value was found */
|
|
19
|
+
found: boolean;
|
|
20
|
+
/** The value (if found) */
|
|
21
|
+
value?: unknown;
|
|
22
|
+
/** Whether the value came from an environment variable */
|
|
23
|
+
fromEnv?: boolean;
|
|
24
|
+
/** Error message (if not found) */
|
|
25
|
+
error?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get a configuration value by key.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getConfigValue(config: Config, key: string, options: GetConfigOptions): GetConfigResult;
|
|
31
|
+
/**
|
|
32
|
+
* Format a value for output.
|
|
33
|
+
*/
|
|
34
|
+
export declare function formatValue(value: unknown): string;
|
|
35
|
+
//# sourceMappingURL=get.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/features/config/get.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,kCAAkC;IAClC,KAAK,EAAE,OAAO,CAAC;IACf,2BAA2B;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,gBAAgB,GACxB,eAAe,CAyBjB;AAqBD;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAQlD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config list-keys subcommand - lists all available configuration keys
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Options for listConfigKeys
|
|
6
|
+
*/
|
|
7
|
+
export interface ListKeysOptions {
|
|
8
|
+
/** Filter by section (e.g., "citation", "cli") */
|
|
9
|
+
section?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* List all available configuration keys with their types and descriptions.
|
|
13
|
+
* Output format: key type description (aligned columns)
|
|
14
|
+
*/
|
|
15
|
+
export declare function listConfigKeys(options: ListKeysOptions): string;
|
|
16
|
+
//# sourceMappingURL=list-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-keys.d.ts","sourceRoot":"","sources":["../../../src/features/config/list-keys.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CAkC/D"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config path subcommand - shows configuration file paths and their status
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Options for showConfigPaths
|
|
6
|
+
*/
|
|
7
|
+
export interface ShowPathsOptions {
|
|
8
|
+
/** Show only user config path */
|
|
9
|
+
user?: boolean;
|
|
10
|
+
/** Show only local config path */
|
|
11
|
+
local?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Context for config path resolution
|
|
15
|
+
*/
|
|
16
|
+
export interface PathContext {
|
|
17
|
+
/** Current working directory */
|
|
18
|
+
cwd?: string;
|
|
19
|
+
/** User config path (for testing) */
|
|
20
|
+
userConfigPath?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Show configuration file paths and their status.
|
|
24
|
+
*
|
|
25
|
+
* When --user or --local is provided, returns only that path (no label).
|
|
26
|
+
* Otherwise, shows all paths with labels and existence status.
|
|
27
|
+
*/
|
|
28
|
+
export declare function showConfigPaths(options: ShowPathsOptions, context?: PathContext): string;
|
|
29
|
+
//# sourceMappingURL=path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../src/features/config/path.ts"],"names":[],"mappings":"AAAA;;GAEG;AASH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,iCAAiC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,kCAAkC;IAClC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,gCAAgC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AASD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,CAgCxF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config set subcommand - sets a configuration value
|
|
3
|
+
*/
|
|
4
|
+
import type { EnvOverrideInfo } from "../../config/env-override.js";
|
|
5
|
+
/**
|
|
6
|
+
* Options for setConfigValue
|
|
7
|
+
*/
|
|
8
|
+
export interface SetConfigOptions {
|
|
9
|
+
/** Environment override info if active */
|
|
10
|
+
envOverrideInfo?: EnvOverrideInfo;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Result of setConfigValue
|
|
14
|
+
*/
|
|
15
|
+
export interface SetConfigResult {
|
|
16
|
+
/** Whether the operation succeeded */
|
|
17
|
+
success: boolean;
|
|
18
|
+
/** Error message if failed */
|
|
19
|
+
error?: string;
|
|
20
|
+
/** Warning message (e.g., env override active) */
|
|
21
|
+
warning?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Set a configuration value in a config file.
|
|
25
|
+
*/
|
|
26
|
+
export declare function setConfigValue(configPath: string, key: string, value: unknown, options?: SetConfigOptions): Promise<SetConfigResult>;
|
|
27
|
+
//# sourceMappingURL=set.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set.d.ts","sourceRoot":"","sources":["../../../src/features/config/set.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAKpE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,0CAA0C;IAC1C,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,sCAAsC;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAsB,cAAc,CAClC,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,eAAe,CAAC,CAkC1B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config show subcommand - displays effective configuration
|
|
3
|
+
*/
|
|
4
|
+
import type { Config } from "../../config/schema.js";
|
|
5
|
+
/**
|
|
6
|
+
* Options for showConfig
|
|
7
|
+
*/
|
|
8
|
+
export interface ShowConfigOptions {
|
|
9
|
+
/** Output in JSON format instead of TOML */
|
|
10
|
+
json?: boolean;
|
|
11
|
+
/** Show only a specific section */
|
|
12
|
+
section?: string;
|
|
13
|
+
/** Include source information for each value */
|
|
14
|
+
sources?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Show configuration in the specified format
|
|
18
|
+
*/
|
|
19
|
+
export declare function showConfig(config: Config, options: ShowConfigOptions): string;
|
|
20
|
+
//# sourceMappingURL=show.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.d.ts","sourceRoot":"","sources":["../../../src/features/config/show.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,4CAA4C;IAC5C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAmKD;;GAEG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAY7E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config unset subcommand - removes a configuration value
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Result of unsetConfigValue
|
|
6
|
+
*/
|
|
7
|
+
export interface UnsetConfigResult {
|
|
8
|
+
/** Whether the operation succeeded */
|
|
9
|
+
success: boolean;
|
|
10
|
+
/** Error message if failed */
|
|
11
|
+
error?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Remove a configuration value from a config file.
|
|
15
|
+
*/
|
|
16
|
+
export declare function unsetConfigValue(configPath: string, key: string): Promise<UnsetConfigResult>;
|
|
17
|
+
//# sourceMappingURL=unset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unset.d.ts","sourceRoot":"","sources":["../../../src/features/config/unset.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,sCAAsC;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,iBAAiB,CAAC,CAiB5B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Write target resolution for config set/unset commands
|
|
3
|
+
*
|
|
4
|
+
* Determines which config file to write to based on flags and file existence.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Options for resolving write target
|
|
8
|
+
*/
|
|
9
|
+
export interface ResolveWriteTargetOptions {
|
|
10
|
+
/** Force write to local config (create if not exists) */
|
|
11
|
+
local?: boolean;
|
|
12
|
+
/** Force write to user config (ignore local even if exists) */
|
|
13
|
+
user?: boolean;
|
|
14
|
+
/** Current working directory */
|
|
15
|
+
cwd: string;
|
|
16
|
+
/** User config file path */
|
|
17
|
+
userConfigPath: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Resolve the config file path to write to.
|
|
21
|
+
*
|
|
22
|
+
* Priority:
|
|
23
|
+
* 1. --local flag → local config (create if not exists)
|
|
24
|
+
* 2. --user flag → user config (ignore local even if exists)
|
|
25
|
+
* 3. No flags:
|
|
26
|
+
* - If local config exists → local config
|
|
27
|
+
* - Otherwise → user config
|
|
28
|
+
*/
|
|
29
|
+
export declare function resolveWriteTarget(options: ResolveWriteTargetOptions): string;
|
|
30
|
+
//# sourceMappingURL=write-target.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-target.d.ts","sourceRoot":"","sources":["../../../src/features/config/write-target.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,yDAAyD;IACzD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,4BAA4B;IAC5B,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,MAAM,CAoB7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importer.d.ts","sourceRoot":"","sources":["../../../src/features/import/importer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAW5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAKhE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAA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