@bragduck/cli 2.16.3 → 2.17.0

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.
@@ -4782,7 +4782,7 @@ async function syncSingleService(sourceType, options, TOTAL_STEPS) {
4782
4782
  fetchSpinner.start();
4783
4783
  const workItems = await adapter.fetchWorkItems({
4784
4784
  days,
4785
- author: options.all ? void 0 : await adapter.getCurrentUser() || void 0
4785
+ author: await adapter.getCurrentUser() || void 0
4786
4786
  });
4787
4787
  if (workItems.length === 0) {
4788
4788
  failStepSpinner(fetchSpinner, 3, TOTAL_STEPS, `No work items found in the last ${days} days`);
@@ -5089,7 +5089,10 @@ async function syncCommand(options = {}) {
5089
5089
  }
5090
5090
  logger.debug(`Subscription tier "${subscriptionStatus.tier}" - proceeding with sync`);
5091
5091
  let selectedSource;
5092
- if (options.source) {
5092
+ if (options.all) {
5093
+ selectedSource = "all";
5094
+ logger.debug("Using --all flag: syncing all authenticated services");
5095
+ } else if (options.source) {
5093
5096
  sourceType = options.source;
5094
5097
  if (!AdapterFactory.isSupported(sourceType)) {
5095
5098
  logger.log("");
@@ -5915,7 +5918,7 @@ program.command("auth [subcommand]").description("Manage authentication (subcomm
5915
5918
  process.exit(1);
5916
5919
  }
5917
5920
  });
5918
- program.command("sync").description("Sync work items and create brags").option("-d, --days <number>", "Number of days to scan", (val) => parseInt(val, 10)).option("-t, --today", "Scan the last 24 hours (shorthand for --days 1)").option("--turbo", "Turbo mode: skip all prompts, auto-select all items, auto-accept refinements").option("-a, --all", "Include all items (not just current user)").option("-s, --source <type>", "Explicit source type (github)").action(async (options) => {
5921
+ program.command("sync").description("Sync work items and create brags").option("-d, --days <number>", "Number of days to scan", (val) => parseInt(val, 10)).option("-t, --today", "Scan the last 24 hours (shorthand for --days 1)").option("--turbo", "Turbo mode: skip all prompts, auto-select all items, auto-accept refinements").option("-a, --all", "Sync all authenticated services (skip service selection)").option("-s, --source <type>", "Explicit source type (github)").action(async (options) => {
5919
5922
  try {
5920
5923
  await syncCommand(options);
5921
5924
  } catch (error) {