flightdesk 0.1.13 → 0.1.14
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 +4 -7
- package/main.js.map +2 -2
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -3052,8 +3052,7 @@ function setApiUrl(url) {
|
|
|
3052
3052
|
apiUrlOverride = url;
|
|
3053
3053
|
}
|
|
3054
3054
|
function getApiUrl() {
|
|
3055
|
-
|
|
3056
|
-
return apiUrlOverride ?? config.apiUrl ?? DEFAULT_API_URL;
|
|
3055
|
+
return apiUrlOverride ?? DEFAULT_API_URL;
|
|
3057
3056
|
}
|
|
3058
3057
|
function loadConfig() {
|
|
3059
3058
|
try {
|
|
@@ -3064,7 +3063,6 @@ function loadConfig() {
|
|
|
3064
3063
|
return migrateOldConfig(parsed);
|
|
3065
3064
|
}
|
|
3066
3065
|
return {
|
|
3067
|
-
apiUrl: DEFAULT_API_URL,
|
|
3068
3066
|
organizations: [],
|
|
3069
3067
|
repoMapping: {},
|
|
3070
3068
|
...parsed
|
|
@@ -3074,7 +3072,6 @@ function loadConfig() {
|
|
|
3074
3072
|
console.error("Warning: Failed to load config file:", error);
|
|
3075
3073
|
}
|
|
3076
3074
|
return {
|
|
3077
|
-
apiUrl: DEFAULT_API_URL,
|
|
3078
3075
|
organizations: [],
|
|
3079
3076
|
repoMapping: {}
|
|
3080
3077
|
};
|
|
@@ -3084,7 +3081,6 @@ function migrateOldConfig(oldConfig) {
|
|
|
3084
3081
|
const defaultOrg = oldConfig.defaultOrganization ? oldConfig.organizations.find((o) => o.id === oldConfig.defaultOrganization) : oldConfig.organizations[0];
|
|
3085
3082
|
const newConfig = {
|
|
3086
3083
|
apiKey: defaultOrg?.apiKey,
|
|
3087
|
-
apiUrl: defaultOrg?.apiUrl || DEFAULT_API_URL,
|
|
3088
3084
|
activeOrganization: defaultOrg?.id,
|
|
3089
3085
|
organizations: oldConfig.organizations.map((o) => ({
|
|
3090
3086
|
id: o.id,
|
|
@@ -3276,6 +3272,7 @@ var FlightDeskAPI = class _FlightDeskAPI {
|
|
|
3276
3272
|
status
|
|
3277
3273
|
branchName
|
|
3278
3274
|
prUrl
|
|
3275
|
+
sessionViewUrl
|
|
3279
3276
|
createdAt
|
|
3280
3277
|
project {
|
|
3281
3278
|
id
|
|
@@ -3996,7 +3993,7 @@ async function reconcileTaskStatus(api, task2) {
|
|
|
3996
3993
|
let expectedStatus = null;
|
|
3997
3994
|
let reason = "";
|
|
3998
3995
|
if (task2.prUrl) {
|
|
3999
|
-
if (!["PR_OPEN", "MERGED", "ARCHIVED", "REVIEW_RUNNING", "REVIEW_DONE", "QA_READY", "QA_APPROVED"].includes(task2.status)) {
|
|
3996
|
+
if (!["PR_OPEN", "PREVIEW_STARTING", "PREVIEW_READY", "MERGED", "ARCHIVED", "REVIEW_RUNNING", "REVIEW_DONE", "QA_READY", "QA_APPROVED"].includes(task2.status)) {
|
|
4000
3997
|
expectedStatus = "PR_OPEN";
|
|
4001
3998
|
reason = `has PR URL but status is ${task2.status}`;
|
|
4002
3999
|
}
|
|
@@ -4880,7 +4877,7 @@ ${projects.length} project(s)`);
|
|
|
4880
4877
|
|
|
4881
4878
|
// apps/cli/src/main.ts
|
|
4882
4879
|
var program2 = new Command();
|
|
4883
|
-
program2.name("flightdesk").description("FlightDesk CLI - AI task management for Claude Code sessions").version("0.1.
|
|
4880
|
+
program2.name("flightdesk").description("FlightDesk CLI - AI task management for Claude Code sessions").version("0.1.14").option("--dev", "Use local development API (localhost:3000)").option("--api <url>", "Use custom API URL");
|
|
4884
4881
|
program2.hook("preAction", () => {
|
|
4885
4882
|
const opts = program2.opts();
|
|
4886
4883
|
if (opts.api) {
|