vibora 5.3.0 → 5.4.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.
package/bin/vibora.js CHANGED
@@ -32110,18 +32110,27 @@ async function handleCurrentTaskCommand(action, rest, flags) {
32110
32110
  return;
32111
32111
  }
32112
32112
  if (action === "linear") {
32113
- const linearUrl = rest[0];
32114
- if (!linearUrl) {
32115
- throw new CliError("MISSING_LINEAR_URL", "Usage: vibora current-task linear <url>", ExitCodes.INVALID_ARGS);
32116
- }
32117
- const ticketId = linearUrl.match(/\/issue\/([A-Z]+-\d+)/i)?.[1];
32118
- if (!ticketId) {
32119
- throw new CliError("INVALID_LINEAR_URL", "Invalid Linear URL. Expected format: https://linear.app/team/issue/TEAM-123", ExitCodes.INVALID_ARGS);
32113
+ const input = rest[0];
32114
+ if (!input) {
32115
+ throw new CliError("MISSING_LINEAR_INPUT", "Usage: vibora current-task linear <url-or-ticket>", ExitCodes.INVALID_ARGS);
32116
+ }
32117
+ let ticketId;
32118
+ let ticketUrl = null;
32119
+ const ticketMatch = input.match(/^([A-Z]+-\d+)$/i);
32120
+ if (ticketMatch) {
32121
+ ticketId = ticketMatch[1].toUpperCase();
32122
+ } else {
32123
+ const urlMatch = input.match(/\/issue\/([A-Z]+-\d+)/i);
32124
+ if (!urlMatch) {
32125
+ throw new CliError("INVALID_LINEAR_INPUT", "Invalid input. Expected ticket number (DAT-547) or URL (https://linear.app/team/issue/DAT-547)", ExitCodes.INVALID_ARGS);
32126
+ }
32127
+ ticketId = urlMatch[1].toUpperCase();
32128
+ ticketUrl = input;
32120
32129
  }
32121
32130
  const task2 = await findCurrentTask(client, pathOverride);
32122
32131
  const updatedTask2 = await client.updateTask(task2.id, {
32123
32132
  linearTicketId: ticketId,
32124
- linearTicketUrl: linearUrl
32133
+ linearTicketUrl: ticketUrl
32125
32134
  });
32126
32135
  if (isJsonOutput()) {
32127
32136
  output(updatedTask2);
@@ -32583,7 +32592,7 @@ function installUv() {
32583
32592
  var package_default = {
32584
32593
  name: "vibora",
32585
32594
  private: true,
32586
- version: "5.3.0",
32595
+ version: "5.4.0",
32587
32596
  description: "The Vibe Engineer's Cockpit",
32588
32597
  license: "PolyForm-Shield-1.0.0",
32589
32598
  type: "module",