uncompact 0.46.6 → 0.46.7
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/npm/install.js +9 -8
- package/package.json +1 -1
package/npm/install.js
CHANGED
|
@@ -212,14 +212,15 @@ async function main() {
|
|
|
212
212
|
const authStatus = execSync(checkAuthCmd).toString();
|
|
213
213
|
if (authStatus.includes("Status: not authenticated") || authStatus.includes("✗")) {
|
|
214
214
|
log("\n[uncompact] Authentication required. Starting login flow...\n");
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
215
|
+
try {
|
|
216
|
+
// Use 'auth login' which opens browser AND prompts for key
|
|
217
|
+
execFileSync(destPath, ["auth", "login"], { stdio: "inherit" });
|
|
218
|
+
log("\n[uncompact] Login successful.\n");
|
|
219
|
+
} catch (err) {
|
|
220
|
+
// Command failed (e.g. invalid key, 402, or user cancelled)
|
|
221
|
+
// We don't print the error message here because 'inherit' already showed it
|
|
222
|
+
log("\n[uncompact] Login incomplete or failed. You can run it manually later: uncompact auth login\n");
|
|
223
|
+
}
|
|
223
224
|
}
|
|
224
225
|
} catch (e) {}
|
|
225
226
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uncompact",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.7",
|
|
4
4
|
"description": "Stop Claude Code compaction from making your AI stupid. Re-inject project context after compaction via the Supermodel API.",
|
|
5
5
|
"author": "Supermodel <abe@supermodel.software>",
|
|
6
6
|
"license": "MIT",
|