flightdesk 0.1.9 → 0.1.10
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 +7 -3
- package/main.js.map +2 -2
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -3384,7 +3384,10 @@ async function fetchUserInfo(apiKey, apiUrl) {
|
|
|
3384
3384
|
query: `{
|
|
3385
3385
|
me {
|
|
3386
3386
|
id
|
|
3387
|
-
|
|
3387
|
+
emails {
|
|
3388
|
+
email
|
|
3389
|
+
primary
|
|
3390
|
+
}
|
|
3388
3391
|
organizations {
|
|
3389
3392
|
organization {
|
|
3390
3393
|
id
|
|
@@ -3453,8 +3456,9 @@ async function initCommand() {
|
|
|
3453
3456
|
console.log("Please make sure you are a member of at least one organization.");
|
|
3454
3457
|
return;
|
|
3455
3458
|
}
|
|
3459
|
+
const primaryEmail = userInfo.emails.find((e) => e.primary)?.email || userInfo.emails[0]?.email || "unknown";
|
|
3456
3460
|
console.log("\u2705 Connection successful!");
|
|
3457
|
-
console.log(` Logged in as: ${
|
|
3461
|
+
console.log(` Logged in as: ${primaryEmail}`);
|
|
3458
3462
|
console.log(` Organizations: ${userInfo.organizations.length}`);
|
|
3459
3463
|
const organizations = userInfo.organizations.map((m) => ({
|
|
3460
3464
|
id: m.organization.id,
|
|
@@ -4791,7 +4795,7 @@ async function scanClaudeSessions(options) {
|
|
|
4791
4795
|
|
|
4792
4796
|
// apps/cli/src/main.ts
|
|
4793
4797
|
var program2 = new Command();
|
|
4794
|
-
program2.name("flightdesk").description("FlightDesk CLI - AI task management for Claude Code sessions").version("0.1.
|
|
4798
|
+
program2.name("flightdesk").description("FlightDesk CLI - AI task management for Claude Code sessions").version("0.1.10").option("--dev", "Use local development API (localhost:3000)").option("--api <url>", "Use custom API URL");
|
|
4795
4799
|
program2.hook("preAction", () => {
|
|
4796
4800
|
const opts = program2.opts();
|
|
4797
4801
|
if (opts.api) {
|