flightdesk 0.2.2 → 0.2.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 +19 -3
- package/main.js.map +2 -2
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -4015,6 +4015,7 @@ async function registerCommand(taskId, options) {
|
|
|
4015
4015
|
let viewUrl = options.viewUrl;
|
|
4016
4016
|
let teleportId = options.teleportId;
|
|
4017
4017
|
if (!process.stdin.isTTY) {
|
|
4018
|
+
console.log("\u23F3 Waiting for Claude session output...");
|
|
4018
4019
|
const input = await readStdin();
|
|
4019
4020
|
const parsed = parseClaudeOutput(input);
|
|
4020
4021
|
viewUrl = viewUrl || parsed.viewUrl;
|
|
@@ -4060,14 +4061,29 @@ Task ID: ${actualTaskId}`);
|
|
|
4060
4061
|
function readStdin() {
|
|
4061
4062
|
return new Promise((resolve) => {
|
|
4062
4063
|
let data = "";
|
|
4064
|
+
let resolved = false;
|
|
4063
4065
|
process.stdin.setEncoding("utf8");
|
|
4064
4066
|
process.stdin.on("data", (chunk) => {
|
|
4065
4067
|
data += chunk;
|
|
4066
4068
|
});
|
|
4067
4069
|
process.stdin.on("end", () => {
|
|
4068
|
-
|
|
4070
|
+
if (!resolved) {
|
|
4071
|
+
resolved = true;
|
|
4072
|
+
resolve(data);
|
|
4073
|
+
}
|
|
4074
|
+
});
|
|
4075
|
+
process.stdin.on("close", () => {
|
|
4076
|
+
if (!resolved) {
|
|
4077
|
+
resolved = true;
|
|
4078
|
+
resolve(data);
|
|
4079
|
+
}
|
|
4069
4080
|
});
|
|
4070
|
-
setTimeout(() =>
|
|
4081
|
+
setTimeout(() => {
|
|
4082
|
+
if (!resolved) {
|
|
4083
|
+
resolved = true;
|
|
4084
|
+
resolve(data);
|
|
4085
|
+
}
|
|
4086
|
+
}, 3e4);
|
|
4071
4087
|
});
|
|
4072
4088
|
}
|
|
4073
4089
|
function parseClaudeOutput(output) {
|
|
@@ -5498,7 +5514,7 @@ async function handleTeardown(api, options) {
|
|
|
5498
5514
|
|
|
5499
5515
|
// apps/cli/src/main.ts
|
|
5500
5516
|
var program2 = new Command();
|
|
5501
|
-
program2.name("flightdesk").description("FlightDesk CLI - AI task management for Claude Code sessions").version("0.2.
|
|
5517
|
+
program2.name("flightdesk").description("FlightDesk CLI - AI task management for Claude Code sessions").version("0.2.3").option("--dev", "Use local development API (localhost:3000)").option("--api <url>", "Use custom API URL");
|
|
5502
5518
|
program2.hook("preAction", () => {
|
|
5503
5519
|
const opts = program2.opts();
|
|
5504
5520
|
if (opts.api) {
|