@milo4jo/contextkit 0.3.0 → 0.5.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 +43 -11
- package/dist/commands/cache.d.ts +3 -0
- package/dist/commands/cache.d.ts.map +1 -0
- package/dist/commands/cache.js +50 -0
- package/dist/commands/cache.js.map +1 -0
- package/dist/commands/select.d.ts.map +1 -1
- package/dist/commands/select.js +17 -9
- package/dist/commands/select.js.map +1 -1
- package/dist/config/index.d.ts +11 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +11 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/validation.d.ts +33 -0
- package/dist/config/validation.d.ts.map +1 -0
- package/dist/config/validation.js +241 -0
- package/dist/config/validation.js.map +1 -0
- package/dist/db/index.d.ts +47 -0
- package/dist/db/index.d.ts.map +1 -1
- package/dist/db/index.js +98 -0
- package/dist/db/index.js.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/indexer/chunker.d.ts +15 -2
- package/dist/indexer/chunker.d.ts.map +1 -1
- package/dist/indexer/chunker.js +222 -3
- package/dist/indexer/chunker.js.map +1 -1
- package/dist/parsers/index.d.ts +45 -0
- package/dist/parsers/index.d.ts.map +1 -0
- package/dist/parsers/index.js +71 -0
- package/dist/parsers/index.js.map +1 -0
- package/dist/parsers/typescript.d.ts +43 -0
- package/dist/parsers/typescript.d.ts.map +1 -0
- package/dist/parsers/typescript.js +306 -0
- package/dist/parsers/typescript.js.map +1 -0
- package/dist/retrieval/imports.d.ts +76 -0
- package/dist/retrieval/imports.d.ts.map +1 -0
- package/dist/retrieval/imports.js +258 -0
- package/dist/retrieval/imports.js.map +1 -0
- package/dist/selector/formatter.d.ts +15 -0
- package/dist/selector/formatter.d.ts.map +1 -1
- package/dist/selector/formatter.js +132 -0
- package/dist/selector/formatter.js.map +1 -1
- package/dist/selector/index.d.ts +15 -4
- package/dist/selector/index.d.ts.map +1 -1
- package/dist/selector/index.js +100 -12
- package/dist/selector/index.js.map +1 -1
- package/dist/selector/scoring.d.ts +20 -0
- package/dist/selector/scoring.d.ts.map +1 -1
- package/dist/selector/scoring.js +103 -10
- package/dist/selector/scoring.js.map +1 -1
- package/package.json +1 -1
- package/dist/commands/source.d.ts +0 -3
- package/dist/commands/source.d.ts.map +0 -1
- package/dist/commands/source.js +0 -153
- package/dist/commands/source.js.map +0 -1
- package/dist/utils/output.d.ts +0 -42
- package/dist/utils/output.d.ts.map +0 -1
- package/dist/utils/output.js +0 -62
- package/dist/utils/output.js.map +0 -1
package/dist/utils/output.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import chalk from 'chalk';
|
|
2
|
-
/**
|
|
3
|
-
* Output utilities for consistent CLI formatting
|
|
4
|
-
*/
|
|
5
|
-
export const output = {
|
|
6
|
-
/**
|
|
7
|
-
* Print a success message with checkmark
|
|
8
|
-
*/
|
|
9
|
-
success(message) {
|
|
10
|
-
console.log(chalk.green('✓') + ' ' + message);
|
|
11
|
-
},
|
|
12
|
-
/**
|
|
13
|
-
* Print an error message
|
|
14
|
-
*/
|
|
15
|
-
error(message) {
|
|
16
|
-
console.error(chalk.red('Error:') + ' ' + message);
|
|
17
|
-
},
|
|
18
|
-
/**
|
|
19
|
-
* Print a warning message
|
|
20
|
-
*/
|
|
21
|
-
warn(message) {
|
|
22
|
-
console.warn(chalk.yellow('⚠') + ' ' + message);
|
|
23
|
-
},
|
|
24
|
-
/**
|
|
25
|
-
* Print an info message
|
|
26
|
-
*/
|
|
27
|
-
info(message) {
|
|
28
|
-
console.log(chalk.blue('ℹ') + ' ' + message);
|
|
29
|
-
},
|
|
30
|
-
/**
|
|
31
|
-
* Print a dim/secondary message
|
|
32
|
-
*/
|
|
33
|
-
dim(message) {
|
|
34
|
-
console.log(chalk.dim(message));
|
|
35
|
-
},
|
|
36
|
-
/**
|
|
37
|
-
* Print a heading
|
|
38
|
-
*/
|
|
39
|
-
heading(message) {
|
|
40
|
-
console.log();
|
|
41
|
-
console.log(chalk.bold(message));
|
|
42
|
-
},
|
|
43
|
-
/**
|
|
44
|
-
* Print a key-value pair
|
|
45
|
-
*/
|
|
46
|
-
keyValue(key, value) {
|
|
47
|
-
console.log(` ${chalk.gray(key + ':')} ${value}`);
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* Check if stdout is a TTY (for progress bars, colors, etc.)
|
|
52
|
-
*/
|
|
53
|
-
export function isTTY() {
|
|
54
|
-
return process.stdout.isTTY === true;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Check if colors should be disabled
|
|
58
|
-
*/
|
|
59
|
-
export function isNoColor() {
|
|
60
|
-
return process.env.NO_COLOR !== undefined || process.env.TERM === 'dumb';
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=output.js.map
|
package/dist/utils/output.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/utils/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB;;OAEG;IACH,OAAO,CAAC,OAAe;QACrB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,OAAO,CAAC,CAAC;IAChD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAe;QACnB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,GAAG,GAAG,OAAO,CAAC,CAAC;IACrD,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAe;QAClB,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAe;QAClB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