@jvittechs/j 1.0.18 → 1.0.19
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/cli.js +7 -5
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -169,7 +169,7 @@ import { basename as basename4 } from "path";
|
|
|
169
169
|
// package.json
|
|
170
170
|
var package_default = {
|
|
171
171
|
name: "@jvittechs/j",
|
|
172
|
-
version: "1.0.
|
|
172
|
+
version: "1.0.19",
|
|
173
173
|
description: "A unified CLI tool for JV-IT TECHS developers to manage Jai1 Framework. Supports both `j` and `jai1` commands. Please contact TeamAI for usage instructions.",
|
|
174
174
|
type: "module",
|
|
175
175
|
bin: {
|
|
@@ -3066,17 +3066,19 @@ function renderIDEContext(ideContext) {
|
|
|
3066
3066
|
function createContextCommand() {
|
|
3067
3067
|
const cmd = new Command7("context").description("Visualize IDE context window token budget").argument("[ide]", "Show specific IDE only (cursor, windsurf, antigravity)").action(async (ideArg) => {
|
|
3068
3068
|
const name = getCliName();
|
|
3069
|
-
const
|
|
3069
|
+
const allIDEs = ["cursor", "windsurf", "antigravity"];
|
|
3070
3070
|
if (ideArg) {
|
|
3071
|
-
if (!
|
|
3071
|
+
if (!allIDEs.includes(ideArg)) {
|
|
3072
3072
|
console.error(chalk6.red(`\u274C Invalid IDE: ${ideArg}`));
|
|
3073
|
-
console.error(chalk6.dim(` Valid IDEs: ${
|
|
3073
|
+
console.error(chalk6.dim(` Valid IDEs: ${allIDEs.join(", ")}`));
|
|
3074
3074
|
console.error(chalk6.dim(` Usage: ${name} context [ide]`));
|
|
3075
3075
|
process.exit(1);
|
|
3076
3076
|
}
|
|
3077
3077
|
}
|
|
3078
3078
|
const scanner = new ContextScannerService();
|
|
3079
|
-
const
|
|
3079
|
+
const detectedIDEs = await scanner.detectIDEs();
|
|
3080
|
+
const installedIDEs = detectedIDEs.filter((ide) => allIDEs.includes(ide));
|
|
3081
|
+
const targetIDEs = ideArg ? [ideArg] : installedIDEs;
|
|
3080
3082
|
console.log("");
|
|
3081
3083
|
console.log(` ${chalk6.bgGray.white.bold(" /context ")}`);
|
|
3082
3084
|
let found = false;
|