archondev 2.8.6 → 2.8.8
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/dist/{auth-N4PZXJCN.js → auth-TCHSNDMW.js} +2 -2
- package/dist/{chunk-P5TXD443.js → chunk-5LKY7FVH.js} +14 -9
- package/dist/{chunk-J25XJ4KZ.js → chunk-L5W442DX.js} +15 -9
- package/dist/{chunk-J6JDRSGJ.js → chunk-S5IE2JOX.js} +1 -1
- package/dist/index.js +11 -11
- package/dist/{preferences-IHSBP6AR.js → preferences-IKYBWCE6.js} +3 -3
- package/dist/{tier-selection-DZEZNFHK.js → tier-selection-5R23JN2N.js} +1 -1
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
login,
|
|
3
3
|
logout,
|
|
4
4
|
status
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5LKY7FVH.js";
|
|
6
6
|
import "./chunk-M4LGRTLC.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-L5W442DX.js";
|
|
8
8
|
import "./chunk-SVU7MLG6.js";
|
|
9
9
|
import "./chunk-QGM4M3NI.js";
|
|
10
10
|
export {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
handleTierSetup,
|
|
7
7
|
promptTierSelection,
|
|
8
8
|
updateUserTier
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L5W442DX.js";
|
|
10
10
|
import {
|
|
11
11
|
clearConfig,
|
|
12
12
|
loadConfig,
|
|
@@ -173,14 +173,19 @@ function startCallbackServer(authUrl, spinner) {
|
|
|
173
173
|
}
|
|
174
174
|
function waitForEnter() {
|
|
175
175
|
return new Promise((resolve) => {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
176
|
+
setTimeout(() => {
|
|
177
|
+
const rl = readline.createInterface({
|
|
178
|
+
input: process.stdin,
|
|
179
|
+
output: process.stdout
|
|
180
|
+
});
|
|
181
|
+
if (process.stdin.readable) {
|
|
182
|
+
process.stdin.resume();
|
|
183
|
+
}
|
|
184
|
+
rl.question("", () => {
|
|
185
|
+
rl.close();
|
|
186
|
+
resolve();
|
|
187
|
+
});
|
|
188
|
+
}, 100);
|
|
184
189
|
});
|
|
185
190
|
}
|
|
186
191
|
async function logout() {
|
|
@@ -43,7 +43,7 @@ async function offerReauthentication(reason) {
|
|
|
43
43
|
return false;
|
|
44
44
|
}
|
|
45
45
|
console.log();
|
|
46
|
-
const { login } = await import("./auth-
|
|
46
|
+
const { login } = await import("./auth-TCHSNDMW.js");
|
|
47
47
|
await login({ skipTierSelection: true });
|
|
48
48
|
const { loadConfig: reload } = await import("./config-BBQW726O.js");
|
|
49
49
|
const config = await reload();
|
|
@@ -263,26 +263,29 @@ async function showUpgradeMenu() {
|
|
|
263
263
|
console.log(chalk.dim("Already using this tier."));
|
|
264
264
|
return;
|
|
265
265
|
}
|
|
266
|
-
|
|
266
|
+
console.log(chalk.dim(`
|
|
267
|
+
Switching to ${selectedName}...`));
|
|
267
268
|
const result = await updateUserTier(selectedTier);
|
|
268
269
|
if (result.success) {
|
|
269
|
-
|
|
270
|
+
console.log(chalk.green(`\u2713 Switched to ${selectedName}`));
|
|
270
271
|
await handleTierSetup(selectedTier);
|
|
271
272
|
} else {
|
|
272
|
-
|
|
273
|
+
console.log(chalk.red(result.error || "Failed to update tier"));
|
|
273
274
|
}
|
|
274
275
|
}
|
|
275
276
|
var showTierSwitchMenu = showUpgradeMenu;
|
|
276
|
-
async function updateUserTier(tier) {
|
|
277
|
+
async function updateUserTier(tier, _alreadyRetried = false) {
|
|
277
278
|
try {
|
|
278
|
-
const { ensureValidSession } = await import("./config-BBQW726O.js");
|
|
279
|
+
const { ensureValidSession, loadConfig: reload } = await import("./config-BBQW726O.js");
|
|
279
280
|
let config = await ensureValidSession();
|
|
280
281
|
if (!config || !config.accessToken) {
|
|
282
|
+
if (_alreadyRetried) {
|
|
283
|
+
return { success: false, error: "Authentication failed after retry." };
|
|
284
|
+
}
|
|
281
285
|
const reauth = await offerReauthentication("Your session has expired.");
|
|
282
286
|
if (!reauth) {
|
|
283
287
|
return { success: false, error: "Authentication required to update tier." };
|
|
284
288
|
}
|
|
285
|
-
const { loadConfig: reload } = await import("./config-BBQW726O.js");
|
|
286
289
|
config = await reload();
|
|
287
290
|
if (!config || !config.accessToken) {
|
|
288
291
|
return { success: false, error: "Authentication failed." };
|
|
@@ -299,13 +302,16 @@ async function updateUserTier(tier) {
|
|
|
299
302
|
});
|
|
300
303
|
if (!response.ok) {
|
|
301
304
|
const data = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
302
|
-
if (response.status === 401) {
|
|
305
|
+
if (response.status === 401 && !_alreadyRetried) {
|
|
303
306
|
const reauth = await offerReauthentication("Your session has expired.");
|
|
304
307
|
if (reauth) {
|
|
305
|
-
return updateUserTier(tier);
|
|
308
|
+
return updateUserTier(tier, true);
|
|
306
309
|
}
|
|
307
310
|
return { success: false, error: "Authentication required to update tier." };
|
|
308
311
|
}
|
|
312
|
+
if (response.status === 401) {
|
|
313
|
+
return { success: false, error: "Authentication failed. Please run `archon login` manually." };
|
|
314
|
+
}
|
|
309
315
|
return { success: false, error: data.error || `Server error: ${response.status}` };
|
|
310
316
|
}
|
|
311
317
|
await saveConfig({ ...config, tier });
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
setPreference,
|
|
19
19
|
showExecutionPreferences,
|
|
20
20
|
showPreferences
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-S5IE2JOX.js";
|
|
22
22
|
import {
|
|
23
23
|
parallelClean,
|
|
24
24
|
parallelMerge,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
login,
|
|
63
63
|
logout,
|
|
64
64
|
status
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-5LKY7FVH.js";
|
|
66
66
|
import {
|
|
67
67
|
API_URL,
|
|
68
68
|
SUPABASE_ANON_KEY,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
handleTierSetup,
|
|
73
73
|
promptTierSelection,
|
|
74
74
|
updateUserTier
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-L5W442DX.js";
|
|
76
76
|
import {
|
|
77
77
|
getAuthToken,
|
|
78
78
|
loadConfig,
|
|
@@ -3245,7 +3245,7 @@ async function showMainMenu() {
|
|
|
3245
3245
|
{ key: "6", label: "Code Review", action: () => reviewCode() },
|
|
3246
3246
|
{ key: "7", label: "Settings & Preferences", action: () => settingsMenu() },
|
|
3247
3247
|
{ key: "8", label: "Upgrade tier", action: async () => {
|
|
3248
|
-
const { showUpgradeMenu } = await import("./tier-selection-
|
|
3248
|
+
const { showUpgradeMenu } = await import("./tier-selection-5R23JN2N.js");
|
|
3249
3249
|
await showUpgradeMenu();
|
|
3250
3250
|
await showMainMenu();
|
|
3251
3251
|
} },
|
|
@@ -3297,7 +3297,7 @@ async function listAtoms() {
|
|
|
3297
3297
|
async function executeNext() {
|
|
3298
3298
|
const { listLocalAtoms: listLocalAtoms2 } = await import("./plan-UZNWCUQI.js");
|
|
3299
3299
|
const { analyzeProject, getComplexityDescription, getModeDescription } = await import("./orchestration-X6LHSHBJ.js");
|
|
3300
|
-
const { loadExecutionPreferences } = await import("./preferences-
|
|
3300
|
+
const { loadExecutionPreferences } = await import("./preferences-IKYBWCE6.js");
|
|
3301
3301
|
const cwd = process.cwd();
|
|
3302
3302
|
const atoms = await listLocalAtoms2();
|
|
3303
3303
|
const pendingAtoms = atoms.filter((a) => a.status === "READY" || a.status === "IN_PROGRESS");
|
|
@@ -3344,11 +3344,11 @@ async function reportBug() {
|
|
|
3344
3344
|
}
|
|
3345
3345
|
}
|
|
3346
3346
|
async function viewStatus() {
|
|
3347
|
-
const { status: status2 } = await import("./auth-
|
|
3347
|
+
const { status: status2 } = await import("./auth-TCHSNDMW.js");
|
|
3348
3348
|
await status2();
|
|
3349
3349
|
}
|
|
3350
3350
|
async function settingsMenu() {
|
|
3351
|
-
const { interactiveSettings } = await import("./preferences-
|
|
3351
|
+
const { interactiveSettings } = await import("./preferences-IKYBWCE6.js");
|
|
3352
3352
|
await interactiveSettings();
|
|
3353
3353
|
await showMainMenu();
|
|
3354
3354
|
}
|
|
@@ -3407,12 +3407,12 @@ async function reviewCode() {
|
|
|
3407
3407
|
async function handleInSessionCommand(input) {
|
|
3408
3408
|
const normalized = input.toLowerCase().trim();
|
|
3409
3409
|
if (normalized === "upgrade" || normalized === "archon upgrade" || normalized === "pricing" || normalized === "archon pricing") {
|
|
3410
|
-
const { showUpgradeMenu } = await import("./tier-selection-
|
|
3410
|
+
const { showUpgradeMenu } = await import("./tier-selection-5R23JN2N.js");
|
|
3411
3411
|
await showUpgradeMenu();
|
|
3412
3412
|
return true;
|
|
3413
3413
|
}
|
|
3414
3414
|
if (normalized === "status" || normalized === "archon status") {
|
|
3415
|
-
const { status: status2 } = await import("./auth-
|
|
3415
|
+
const { status: status2 } = await import("./auth-TCHSNDMW.js");
|
|
3416
3416
|
await status2();
|
|
3417
3417
|
return true;
|
|
3418
3418
|
}
|
|
@@ -7525,11 +7525,11 @@ program.command("status").description("Show current user and project status").ac
|
|
|
7525
7525
|
await status();
|
|
7526
7526
|
});
|
|
7527
7527
|
program.command("upgrade").description("Upgrade your tier (BYOK for free unlimited, or Managed plan)").action(async () => {
|
|
7528
|
-
const { showUpgradeMenu } = await import("./tier-selection-
|
|
7528
|
+
const { showUpgradeMenu } = await import("./tier-selection-5R23JN2N.js");
|
|
7529
7529
|
await showUpgradeMenu();
|
|
7530
7530
|
});
|
|
7531
7531
|
program.command("pricing", { hidden: true }).action(async () => {
|
|
7532
|
-
const { showUpgradeMenu } = await import("./tier-selection-
|
|
7532
|
+
const { showUpgradeMenu } = await import("./tier-selection-5R23JN2N.js");
|
|
7533
7533
|
await showUpgradeMenu();
|
|
7534
7534
|
});
|
|
7535
7535
|
program.command("init").description("Initialize ArchonDev in current project").option("--analyze", "Run enhanced analysis of codebase").option("--no-git", "Skip git initialization").action(async (options) => {
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
setPreference,
|
|
8
8
|
showExecutionPreferences,
|
|
9
9
|
showPreferences
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S5IE2JOX.js";
|
|
11
11
|
import "./chunk-QN65APWL.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-5LKY7FVH.js";
|
|
13
13
|
import "./chunk-M4LGRTLC.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-L5W442DX.js";
|
|
15
15
|
import "./chunk-SVU7MLG6.js";
|
|
16
16
|
import "./chunk-WH6IKTYF.js";
|
|
17
17
|
import "./chunk-QGM4M3NI.js";
|