repowisestage 0.0.73 → 0.0.75

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.
@@ -11064,6 +11064,14 @@ function decodeEmailFromIdToken(idToken) {
11064
11064
  return null;
11065
11065
  }
11066
11066
  }
11067
+ async function maybeRefreshOnWake(wakeDrift, pollIntervalMs) {
11068
+ if (wakeDrift <= pollIntervalMs + 6e4)
11069
+ return false;
11070
+ console.log(`[wake] ~${Math.round(wakeDrift / 1e3).toString()}s gap detected (likely sleep) \u2014 verifying token (refresh only if stale)`);
11071
+ await getValidCredentials().catch(() => {
11072
+ });
11073
+ return true;
11074
+ }
11067
11075
  async function handleSyncCompleted(notif, ctx) {
11068
11076
  if (!notif.commitSha) {
11069
11077
  console.warn(`sync.completed for ${notif.repoId} has no commitSha`);
@@ -11738,11 +11746,7 @@ async function startListener() {
11738
11746
  let lastCycleAt = Date.now();
11739
11747
  while (running) {
11740
11748
  const wakeDrift = Date.now() - lastCycleAt;
11741
- if (wakeDrift > pollIntervalMs + 6e4) {
11742
- console.log(`[wake] ~${Math.round(wakeDrift / 1e3).toString()}s gap detected (likely sleep) \u2014 refreshing credentials`);
11743
- await getValidCredentials({ forceRefresh: true }).catch(() => {
11744
- });
11745
- }
11749
+ await maybeRefreshOnWake(wakeDrift, pollIntervalMs);
11746
11750
  lastCycleAt = Date.now();
11747
11751
  let anyAuthError = null;
11748
11752
  let authErrorGroup = null;
@@ -13206,6 +13210,7 @@ function computeOverallProgress(syncResult) {
13206
13210
  }
13207
13211
  var ProgressRenderer = class {
13208
13212
  privacyShieldShown = false;
13213
+ privacyProofShown = false;
13209
13214
  discoveryShown = false;
13210
13215
  interviewCompleteShown = false;
13211
13216
  // FIX-10: the scan runs in PARALLEL with the interview, so scanProgress
@@ -13226,21 +13231,28 @@ var ProgressRenderer = class {
13226
13231
  validationHeaderShown = false;
13227
13232
  validationShown = false;
13228
13233
  pushShown = false;
13229
- renderPrivacyShield(enabled, spinner) {
13230
- if (this.privacyShieldShown) return;
13231
- this.privacyShieldShown = true;
13232
- spinner.stop();
13233
- console.log("");
13234
- console.log(chalk4.cyan.bold(" \u2500\u2500 Privacy Shield \u2500\u2500"));
13235
- if (enabled) {
13236
- console.log(` ${chalk4.green("\u2713")} Privacy Shield active`);
13237
- console.log(` ${chalk4.green("\u2713")} Private connection established`);
13238
- } else {
13239
- console.log(` ${chalk4.yellow("\u2139")} Privacy Shield not in current plan`);
13240
- console.log(chalk4.dim(" Shield your data from the open internet."));
13234
+ renderPrivacyShield(enabled, privateChannelUsed, spinner) {
13235
+ if (!this.privacyShieldShown) {
13236
+ this.privacyShieldShown = true;
13237
+ spinner.stop();
13238
+ console.log("");
13239
+ console.log(chalk4.cyan.bold(" \u2500\u2500 Privacy Channel \u2500\u2500"));
13240
+ if (enabled) {
13241
+ console.log(` ${chalk4.green("\u2713")} Privacy Channel enabled for this account`);
13242
+ } else {
13243
+ console.log(` ${chalk4.yellow("\u2139")} Privacy Channel not in current plan`);
13244
+ console.log(chalk4.dim(" Route your AI processing over an isolated private network."));
13245
+ }
13246
+ console.log("");
13247
+ spinner.start();
13248
+ }
13249
+ if (enabled && privateChannelUsed && !this.privacyProofShown) {
13250
+ this.privacyProofShown = true;
13251
+ spinner.stop();
13252
+ console.log(` ${chalk4.green("\u2713")} AI processing ran over your private VPC channel`);
13253
+ console.log("");
13254
+ spinner.start();
13241
13255
  }
13242
- console.log("");
13243
- spinner.start();
13244
13256
  }
13245
13257
  renderDiscovery(result, spinner) {
13246
13258
  if (this.discoveryShown) return;
@@ -13540,7 +13552,11 @@ var ProgressRenderer = class {
13540
13552
  }
13541
13553
  update(syncResult, spinner) {
13542
13554
  if (syncResult.privacyShieldEnabled !== void 0) {
13543
- this.renderPrivacyShield(syncResult.privacyShieldEnabled, spinner);
13555
+ this.renderPrivacyShield(
13556
+ syncResult.privacyShieldEnabled,
13557
+ syncResult.privateChannelUsed === true,
13558
+ spinner
13559
+ );
13544
13560
  }
13545
13561
  if (syncResult.discoveryResult) {
13546
13562
  this.renderDiscovery(syncResult.discoveryResult, spinner);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repowisestage",
3
- "version": "0.0.73",
3
+ "version": "0.0.75",
4
4
  "type": "module",
5
5
  "description": "AI-optimized codebase context generator",
6
6
  "bin": {