@jvittechs/j 1.0.51 → 1.0.53

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
@@ -149,7 +149,7 @@ import { basename as basename5 } from "path";
149
149
  // package.json
150
150
  var package_default = {
151
151
  name: "@jvittechs/j",
152
- version: "1.0.51",
152
+ version: "1.0.53",
153
153
  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.",
154
154
  type: "module",
155
155
  bin: {
@@ -3371,6 +3371,8 @@ var IDE_FORMATS = {
3371
3371
  rulesPath: ".cursor/rules",
3372
3372
  workflowsPath: ".cursor/commands",
3373
3373
  fileExtension: ".mdc",
3374
+ workflowsFileExtension: ".md",
3375
+ // Commands use .md, not .mdc
3374
3376
  metadataFormat: "yaml-frontmatter",
3375
3377
  supportsReference: true
3376
3378
  },
@@ -3399,6 +3401,7 @@ var IDE_FORMATS = {
3399
3401
  name: "Claude Code",
3400
3402
  description: "Claude Code (.claude/rules/)",
3401
3403
  rulesPath: ".claude/rules",
3404
+ workflowsPath: ".claude/commands",
3402
3405
  fileExtension: ".md",
3403
3406
  metadataFormat: "yaml-frontmatter",
3404
3407
  supportsReference: true
@@ -3408,7 +3411,6 @@ var IDE_FORMATS = {
3408
3411
  name: "AGENTS.md",
3409
3412
  description: "Single AGENTS.md file",
3410
3413
  rulesPath: ".",
3411
- workflowsPath: void 0,
3412
3414
  fileExtension: ".md",
3413
3415
  metadataFormat: "none",
3414
3416
  supportsReference: false
@@ -3533,7 +3535,8 @@ var IdeDetectionService = class {
3533
3535
  const workflowsExist = await this.pathExists(workflowsPath);
3534
3536
  if (workflowsExist) {
3535
3537
  detection.hasWorkflows = true;
3536
- detection.workflowCount = await this.countFiles(workflowsPath, format.fileExtension);
3538
+ const wfExtension = format.workflowsFileExtension ?? format.fileExtension;
3539
+ detection.workflowCount = await this.countFiles(workflowsPath, wfExtension);
3537
3540
  if (detection.workflowCount > 0) {
3538
3541
  detection.detected = true;
3539
3542
  }
@@ -11754,36 +11757,8 @@ function createTaskDepCommand() {
11754
11757
  import { Command as Command66 } from "commander";
11755
11758
  import chalk39 from "chalk";
11756
11759
  function createTaskSyncCommand() {
11757
- return new Command66("sync").description("Sync tasks via git (default: pull \u2192 push)").option("--pull", "Pull only: merge tasks from origin/jai1").option("--push", "Push only: commit and push tasks to origin/jai1").action(async (options) => {
11758
- const service = new TaskService();
11759
- const branch = service.getSyncBranch();
11760
- const doPull = options.pull || !options.pull && !options.push;
11761
- const doPush = options.push || !options.pull && !options.push;
11762
- if (doPull) {
11763
- console.log(chalk39.dim(`\u23F3 Pulling tasks from origin/${branch}...`));
11764
- try {
11765
- const result = await service.syncPull();
11766
- if (result.merged > 0) {
11767
- console.log(chalk39.green(` \u2193 ${result.merged} tasks merged`));
11768
- } else {
11769
- console.log(chalk39.dim(` \u2193 Already up to date`));
11770
- }
11771
- } catch (error) {
11772
- console.error(chalk39.red(`\u274C Pull failed: ${error instanceof Error ? error.message : String(error)}`));
11773
- process.exit(1);
11774
- }
11775
- }
11776
- if (doPush) {
11777
- console.log(chalk39.dim(`\u23F3 Pushing tasks to origin/${branch}...`));
11778
- try {
11779
- await service.syncPush();
11780
- console.log(chalk39.green(` \u2191 Tasks pushed to origin/${branch}`));
11781
- } catch (error) {
11782
- console.error(chalk39.red(`\u274C Push failed: ${error instanceof Error ? error.message : String(error)}`));
11783
- process.exit(1);
11784
- }
11785
- }
11786
- console.log(chalk39.green("\u2705 Sync complete"));
11760
+ return new Command66("sync").description("Sync tasks via git (t\u1EA1m th\u1EDDi b\u1ECB disable)").option("--pull", "Pull only: merge tasks from origin/jai1").option("--push", "Push only: commit and push tasks to origin/jai1").action(async () => {
11761
+ console.log(chalk39.yellow("\u26A0\uFE0F Ch\u1EE9c n\u0103ng `j t sync` t\u1EA1m th\u1EDDi b\u1ECB disable."));
11787
11762
  });
11788
11763
  }
11789
11764