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 +18 -9
- package/dist/assets/{index-6VLueHY2.js → index-BK9vtnsx.js} +84 -82
- package/dist/index.html +1 -1
- package/drizzle/0012_previous_norrin_radd.sql +2 -0
- package/drizzle/meta/0012_snapshot.json +543 -0
- package/drizzle/meta/_journal.json +7 -0
- package/package.json +1 -1
- package/server/index.js +4 -0
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
|
|
32114
|
-
if (!
|
|
32115
|
-
throw new CliError("
|
|
32116
|
-
}
|
|
32117
|
-
|
|
32118
|
-
|
|
32119
|
-
|
|
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:
|
|
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.
|
|
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",
|