@jvittechs/j 1.0.52 → 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.52",
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: {
@@ -11757,36 +11757,8 @@ function createTaskDepCommand() {
11757
11757
  import { Command as Command66 } from "commander";
11758
11758
  import chalk39 from "chalk";
11759
11759
  function createTaskSyncCommand() {
11760
- 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) => {
11761
- const service = new TaskService();
11762
- const branch = service.getSyncBranch();
11763
- const doPull = options.pull || !options.pull && !options.push;
11764
- const doPush = options.push || !options.pull && !options.push;
11765
- if (doPull) {
11766
- console.log(chalk39.dim(`\u23F3 Pulling tasks from origin/${branch}...`));
11767
- try {
11768
- const result = await service.syncPull();
11769
- if (result.merged > 0) {
11770
- console.log(chalk39.green(` \u2193 ${result.merged} tasks merged`));
11771
- } else {
11772
- console.log(chalk39.dim(` \u2193 Already up to date`));
11773
- }
11774
- } catch (error) {
11775
- console.error(chalk39.red(`\u274C Pull failed: ${error instanceof Error ? error.message : String(error)}`));
11776
- process.exit(1);
11777
- }
11778
- }
11779
- if (doPush) {
11780
- console.log(chalk39.dim(`\u23F3 Pushing tasks to origin/${branch}...`));
11781
- try {
11782
- await service.syncPush();
11783
- console.log(chalk39.green(` \u2191 Tasks pushed to origin/${branch}`));
11784
- } catch (error) {
11785
- console.error(chalk39.red(`\u274C Push failed: ${error instanceof Error ? error.message : String(error)}`));
11786
- process.exit(1);
11787
- }
11788
- }
11789
- 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."));
11790
11762
  });
11791
11763
  }
11792
11764