flightdesk 0.3.1 → 0.3.3
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/main.js +12 -3
- package/main.js.map +2 -2
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -3948,7 +3948,16 @@ async function handleUpdate(api, options) {
|
|
|
3948
3948
|
const input = {};
|
|
3949
3949
|
if (options.status) input.status = options.status;
|
|
3950
3950
|
if (options.branch) input.branchName = options.branch;
|
|
3951
|
-
if (options.prUrl)
|
|
3951
|
+
if (options.prUrl) {
|
|
3952
|
+
input.prUrl = options.prUrl;
|
|
3953
|
+
const prNumberMatch = options.prUrl.match(/\/pull\/(\d+)/);
|
|
3954
|
+
if (prNumberMatch) {
|
|
3955
|
+
input.prNumber = parseInt(prNumberMatch[1], 10);
|
|
3956
|
+
}
|
|
3957
|
+
}
|
|
3958
|
+
if (options.prNumber) {
|
|
3959
|
+
input.prNumber = parseInt(options.prNumber, 10);
|
|
3960
|
+
}
|
|
3952
3961
|
if (options.session) {
|
|
3953
3962
|
const sessionId = parseSessionId(options.session);
|
|
3954
3963
|
input.sessionViewUrl = `https://claude.ai/code/${sessionId}`;
|
|
@@ -4563,7 +4572,7 @@ async function handleTeardown(api, options) {
|
|
|
4563
4572
|
|
|
4564
4573
|
// apps/cli/src/main.ts
|
|
4565
4574
|
var program2 = new Command();
|
|
4566
|
-
program2.name("flightdesk").description("FlightDesk CLI - AI task management for Claude Code sessions").version("0.3.
|
|
4575
|
+
program2.name("flightdesk").description("FlightDesk CLI - AI task management for Claude Code sessions").version("0.3.3").option("--dev", "Use local development API (localhost:3000)").option("--api <url>", "Use custom API URL");
|
|
4567
4576
|
program2.hook("preAction", () => {
|
|
4568
4577
|
const opts = program2.opts();
|
|
4569
4578
|
if (opts.api) {
|
|
@@ -4583,7 +4592,7 @@ var task = program2.command("task").description("Task management commands");
|
|
|
4583
4592
|
task.command("create").description("Create a new task").requiredOption("-p, --project <id>", "Project ID").requiredOption("-t, --title <title>", "Task title").option("-d, --description <description>", "Task description").action((options) => taskCommand("create", options));
|
|
4584
4593
|
task.command("list").description("List tasks").option("-p, --project <id>", "Filter by project ID").option("--status <status>", "Filter by status").action((options) => taskCommand("list", options));
|
|
4585
4594
|
task.command("status <task-id>").description("Get task status").action((taskId) => taskCommand("status", { taskId }));
|
|
4586
|
-
task.command("update <task-id>").description("Update task").option("-s, --status <status>", "New status").option("--branch <branch>", "Branch name").option("--pr-url <url>", "Pull request URL").option("--session <session>", "Claude Code session (URL or session ID)").action((taskId, options) => taskCommand("update", { taskId, ...options }));
|
|
4595
|
+
task.command("update <task-id>").description("Update task").option("-s, --status <status>", "New status").option("--branch <branch>", "Branch name").option("--pr-url <url>", "Pull request URL").option("--pr-number <number>", "Pull request number (use if --pr-url is not enough)").option("--session <session>", "Claude Code session (URL or session ID)").action((taskId, options) => taskCommand("update", { taskId, ...options }));
|
|
4587
4596
|
program2.command("status").description("Show status of all active tasks").option("-p, --project <id>", "Filter by project").action(statusCommand);
|
|
4588
4597
|
program2.command("prompt <task-id>").description("Get a prompt for a task (ready to paste into Claude)").option("--type <type>", "Prompt type: review, test_plan, summary, handoff", "review").action(promptCommand);
|
|
4589
4598
|
var org = program2.command("org").description("Organization management");
|