@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 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.18",
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 validIDEs = ["cursor", "windsurf", "antigravity"];
3069
+ const allIDEs = ["cursor", "windsurf", "antigravity"];
3070
3070
  if (ideArg) {
3071
- if (!validIDEs.includes(ideArg)) {
3071
+ if (!allIDEs.includes(ideArg)) {
3072
3072
  console.error(chalk6.red(`\u274C Invalid IDE: ${ideArg}`));
3073
- console.error(chalk6.dim(` Valid IDEs: ${validIDEs.join(", ")}`));
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 targetIDEs = ideArg ? [ideArg] : validIDEs;
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;