uncompact 0.46.1 → 0.46.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.
Files changed (2) hide show
  1. package/npm/install.js +13 -0
  2. package/package.json +1 -1
package/npm/install.js CHANGED
@@ -202,6 +202,19 @@ async function main() {
202
202
  try {
203
203
  console.log();
204
204
  execFileSync(destPath, ["status"], { stdio: "inherit" });
205
+
206
+ // If not authenticated, take them to the next step automatically
207
+ const config = require(path.join(__dirname, "..", "package.json")); // Need version check logic? No, just use binary
208
+ const checkAuthCmd = `"${destPath}" auth status`;
209
+ try {
210
+ const authStatus = execSync(checkAuthCmd).toString();
211
+ if (authStatus.includes("Status: not authenticated") || authStatus.includes("✗")) {
212
+ console.log("\n[uncompact] Authentication required. Taking you to the dashboard...");
213
+ try {
214
+ execFileSync(destPath, ["auth", "open"], { stdio: "inherit" });
215
+ } catch (e) {}
216
+ }
217
+ } catch (e) {}
205
218
  } catch (err) {
206
219
  // If status fails, show help as a fallback if we haven't shown anything yet
207
220
  if (!installSuccessful) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uncompact",
3
- "version": "0.46.1",
3
+ "version": "0.46.3",
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",