repowise 0.1.51 → 0.1.53

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.
@@ -73,6 +73,10 @@ import { readFile as readFile2, writeFile as writeFile2, mkdir as mkdir2, chmod,
73
73
  import http from "http";
74
74
  import { homedir as homedir2 } from "os";
75
75
  import { join as join2 } from "path";
76
+ function getCognitoConfigForStorage() {
77
+ const { domain, clientId, region, customDomain } = getCognitoConfig();
78
+ return { domain, clientId, region, customDomain };
79
+ }
76
80
  function getCognitoConfig() {
77
81
  const env = getEnvConfig();
78
82
  return {
@@ -1813,6 +1817,7 @@ Waiting for authentication...`);
1813
1817
  }
1814
1818
  spinner.start("Exchanging authorization code...");
1815
1819
  const credentials = await exchangeCodeForTokens(code, codeVerifier);
1820
+ credentials.cognito = getCognitoConfigForStorage();
1816
1821
  await storeCredentials(credentials);
1817
1822
  const { email } = decodeIdToken(credentials.idToken);
1818
1823
  spinner.succeed(chalk6.green(`Logged in as ${chalk6.bold(email)}`));
@@ -3034,6 +3039,12 @@ program.command("config").description("Manage configuration").action(async () =>
3034
3039
  await config2();
3035
3040
  });
3036
3041
  if (process.argv[2] === "__listener") {
3042
+ process.on("uncaughtException", (err) => {
3043
+ console.error("Listener uncaught exception:", err);
3044
+ });
3045
+ process.on("unhandledRejection", (reason) => {
3046
+ console.error("Listener unhandled rejection:", reason);
3047
+ });
3037
3048
  const { startListener: startListener2 } = await Promise.resolve().then(() => (init_main(), main_exports));
3038
3049
  startListener2({ skipPidCheck: true }).catch((err) => {
3039
3050
  console.error("Listener fatal error:", err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repowise",
3
- "version": "0.1.51",
3
+ "version": "0.1.53",
4
4
  "type": "module",
5
5
  "description": "AI-optimized codebase context generator",
6
6
  "bin": {