@proxysoul/soulforge 1.7.5 → 1.7.6

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/dist/index.js +1401 -2501
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -57838,7 +57838,7 @@ var package_default;
57838
57838
  var init_package = __esm(() => {
57839
57839
  package_default = {
57840
57840
  name: "@proxysoul/soulforge",
57841
- version: "1.7.5",
57841
+ version: "1.7.6",
57842
57842
  description: "Graph-powered code intelligence \u2014 multi-agent coding with codebase-aware AI",
57843
57843
  repository: {
57844
57844
  type: "git",
@@ -58088,6 +58088,55 @@ async function performUpgrade(method, onStatus) {
58088
58088
  });
58089
58089
  });
58090
58090
  }
58091
+ function parseReleaseBody(body2) {
58092
+ const commits = [];
58093
+ const lines = body2.split(`
58094
+ `);
58095
+ let currentGroup = "other";
58096
+ for (const line of lines) {
58097
+ const groupMatch = line.match(/^###\s+(.+)/);
58098
+ if (groupMatch) {
58099
+ const g = (groupMatch[1] ?? "").trim().toLowerCase();
58100
+ if (g.includes("feature"))
58101
+ currentGroup = "feat";
58102
+ else if (g.includes("bug") || g.includes("fix"))
58103
+ currentGroup = "fix";
58104
+ else if (g.includes("perf"))
58105
+ currentGroup = "perf";
58106
+ else if (g.includes("refactor"))
58107
+ currentGroup = "refactor";
58108
+ else if (g.includes("doc"))
58109
+ currentGroup = "docs";
58110
+ else
58111
+ currentGroup = "other";
58112
+ continue;
58113
+ }
58114
+ const scopedMatch = line.match(/^\s*-\s+\*\*([^*]+)\*\*:\s*(.+)/);
58115
+ const plainMatch = !scopedMatch && line.match(/^\s*-\s+(.+)/);
58116
+ if (scopedMatch) {
58117
+ const breaking = scopedMatch[2]?.includes("[**BREAKING**]") ?? false;
58118
+ commits.push({
58119
+ type: currentGroup,
58120
+ scope: scopedMatch[1]?.trim(),
58121
+ message: (scopedMatch[2] ?? "").replace(/\s*\[\*\*BREAKING\*\*\]/, "").trim(),
58122
+ ...breaking && {
58123
+ breaking: true
58124
+ }
58125
+ });
58126
+ } else if (plainMatch) {
58127
+ const msg = plainMatch[1] ?? "";
58128
+ const breaking = msg.includes("[**BREAKING**]");
58129
+ commits.push({
58130
+ type: currentGroup,
58131
+ message: msg.replace(/\s*\[\*\*BREAKING\*\*\]/, "").trim(),
58132
+ ...breaking && {
58133
+ breaking: true
58134
+ }
58135
+ });
58136
+ }
58137
+ }
58138
+ return commits;
58139
+ }
58091
58140
  function readCache() {
58092
58141
  try {
58093
58142
  if (!existsSync6(VERSION_CACHE_FILE))
@@ -58145,6 +58194,57 @@ function isNewer(latest, current) {
58145
58194
  }
58146
58195
  return false;
58147
58196
  }
58197
+ async function fetchGitHubChangelog(current, latest) {
58198
+ try {
58199
+ const controller = new AbortController;
58200
+ const timeout = setTimeout(() => controller.abort(), 5000);
58201
+ const res = await fetch(`https://api.github.com/repos/${GH_REPO}/releases?per_page=15`, {
58202
+ signal: controller.signal,
58203
+ headers: {
58204
+ Accept: "application/vnd.github+json"
58205
+ }
58206
+ });
58207
+ clearTimeout(timeout);
58208
+ if (!res.ok)
58209
+ return {
58210
+ changelog: [],
58211
+ currentRelease: null,
58212
+ changelogError: true
58213
+ };
58214
+ const releases = await res.json();
58215
+ const changelog = [];
58216
+ let currentRelease = null;
58217
+ for (const rel of releases) {
58218
+ const ver = rel.tag_name.replace(/^v/, "");
58219
+ const commits = rel.body ? parseReleaseBody(rel.body) : [];
58220
+ const entry = {
58221
+ version: ver,
58222
+ date: rel.published_at?.split("T")[0],
58223
+ commits
58224
+ };
58225
+ if (ver === current) {
58226
+ currentRelease = entry;
58227
+ continue;
58228
+ }
58229
+ if (!isNewer(ver, current))
58230
+ continue;
58231
+ if (isNewer(ver, latest))
58232
+ continue;
58233
+ changelog.push(entry);
58234
+ }
58235
+ return {
58236
+ changelog,
58237
+ currentRelease,
58238
+ changelogError: false
58239
+ };
58240
+ } catch {
58241
+ return {
58242
+ changelog: [],
58243
+ currentRelease: null,
58244
+ changelogError: true
58245
+ };
58246
+ }
58247
+ }
58148
58248
  async function checkForUpdate() {
58149
58249
  const current = CURRENT_VERSION;
58150
58250
  const cached2 = readCache();
@@ -58153,6 +58253,8 @@ async function checkForUpdate() {
58153
58253
  current,
58154
58254
  latest: cached2.latest,
58155
58255
  changelog: cached2.changelog,
58256
+ currentRelease: cached2.currentRelease ?? null,
58257
+ changelogError: false,
58156
58258
  updateAvailable: isNewer(cached2.latest, current)
58157
58259
  };
58158
58260
  }
@@ -58171,6 +58273,8 @@ async function checkForUpdate() {
58171
58273
  current,
58172
58274
  latest: null,
58173
58275
  changelog: [],
58276
+ currentRelease: null,
58277
+ changelogError: false,
58174
58278
  updateAvailable: false
58175
58279
  };
58176
58280
  const data = await res.json();
@@ -58180,32 +58284,29 @@ async function checkForUpdate() {
58180
58284
  current,
58181
58285
  latest: null,
58182
58286
  changelog: [],
58287
+ currentRelease: null,
58288
+ changelogError: false,
58183
58289
  updateAvailable: false
58184
58290
  };
58185
- const changelog = [];
58186
- if (data.versions) {
58187
- const versions2 = Object.keys(data.versions).filter((v) => isNewer(v, current)).sort((a, b) => {
58188
- const pa = parseVersion(a);
58189
- const pb = parseVersion(b);
58190
- for (let i2 = 0;i2 < 3; i2++) {
58191
- if ((pb[i2] ?? 0) !== (pa[i2] ?? 0))
58192
- return (pb[i2] ?? 0) - (pa[i2] ?? 0);
58193
- }
58194
- return 0;
58195
- }).slice(0, 10);
58196
- for (const v of versions2) {
58197
- changelog.push(`v${v}`);
58198
- }
58199
- }
58200
- writeCache({
58201
- latest,
58291
+ const {
58202
58292
  changelog,
58203
- checkedAt: Date.now()
58204
- });
58293
+ currentRelease,
58294
+ changelogError
58295
+ } = await fetchGitHubChangelog(current, latest);
58296
+ if (!changelogError) {
58297
+ writeCache({
58298
+ latest,
58299
+ changelog,
58300
+ currentRelease,
58301
+ checkedAt: Date.now()
58302
+ });
58303
+ }
58205
58304
  return {
58206
58305
  current,
58207
58306
  latest,
58208
58307
  changelog,
58308
+ currentRelease,
58309
+ changelogError,
58209
58310
  updateAvailable: isNewer(latest, current)
58210
58311
  };
58211
58312
  } catch {
@@ -58213,11 +58314,13 @@ async function checkForUpdate() {
58213
58314
  current,
58214
58315
  latest: null,
58215
58316
  changelog: [],
58317
+ currentRelease: null,
58318
+ changelogError: false,
58216
58319
  updateAvailable: false
58217
58320
  };
58218
58321
  }
58219
58322
  }
58220
- var PKG_NAME = "@proxysoul/soulforge", CONFIG_DIR2, VERSION_CACHE_FILE, CACHE_TTL, DISMISSED_FILE, _currentVersion, CURRENT_VERSION;
58323
+ var PKG_NAME = "@proxysoul/soulforge", CONFIG_DIR2, VERSION_CACHE_FILE, CACHE_TTL, DISMISSED_FILE, _currentVersion, CURRENT_VERSION, GH_REPO = "ProxySoul/soulforge";
58221
58324
  var init_version = __esm(() => {
58222
58325
  init_package();
58223
58326
  CONFIG_DIR2 = join6(homedir6(), ".soulforge");
@@ -59301,10 +59404,7 @@ var init_bus_tools = __esm(() => {
59301
59404
  });
59302
59405
 
59303
59406
  // src/core/llm/models.ts
59304
- function getModelContextWindow(modelId) {
59305
- return getModelContextInfo(modelId).tokens;
59306
- }
59307
- function getModelContextInfo(modelId) {
59407
+ function getModelContextInfoSync(modelId) {
59308
59408
  const slashIdx = modelId.indexOf("/");
59309
59409
  const providerId = slashIdx >= 0 ? modelId.slice(0, slashIdx) : "";
59310
59410
  const model = slashIdx >= 0 ? modelId.slice(slashIdx + 1) : modelId;
@@ -59352,6 +59452,38 @@ function getModelContextInfo(modelId) {
59352
59452
  source: "fallback"
59353
59453
  };
59354
59454
  }
59455
+ async function getModelContextWindow(modelId) {
59456
+ return (await getModelContextInfo(modelId)).tokens;
59457
+ }
59458
+ function getModelContextWindowSync(modelId) {
59459
+ return getModelContextInfoSync(modelId).tokens;
59460
+ }
59461
+ async function getModelContextInfo(modelId) {
59462
+ const cached2 = getModelContextInfoSync(modelId);
59463
+ if (cached2.source !== "fallback" || cached2.tokens !== DEFAULT_CONTEXT_TOKENS) {
59464
+ return cached2;
59465
+ }
59466
+ try {
59467
+ await ensureModelMetadata(modelId);
59468
+ } catch {}
59469
+ return getModelContextInfoSync(modelId);
59470
+ }
59471
+ async function ensureModelMetadata(modelId) {
59472
+ const slashIdx = modelId.indexOf("/");
59473
+ const providerId = slashIdx >= 0 ? modelId.slice(0, slashIdx) : "";
59474
+ if (!providerId)
59475
+ return;
59476
+ const provider = getProvider(providerId);
59477
+ const doFetch = async () => {
59478
+ if (provider?.grouped) {
59479
+ await fetchGroupedModels(providerId);
59480
+ } else if (provider) {
59481
+ await fetchProviderModels(providerId);
59482
+ }
59483
+ await fetchOpenRouterMetadata();
59484
+ };
59485
+ await Promise.race([doFetch(), new Promise((_, reject) => setTimeout(() => reject(new Error("metadata fetch timeout")), METADATA_FETCH_TIMEOUT))]);
59486
+ }
59355
59487
  async function fetchOpenRouterMetadata() {
59356
59488
  if (openRouterCache)
59357
59489
  return;
@@ -59785,7 +59917,7 @@ async function fetchProxyGrouped() {
59785
59917
  };
59786
59918
  }
59787
59919
  }
59788
- var PROVIDER_CONFIGS, DEFAULT_CONTEXT_TOKENS = 128000, openRouterCache = null, openRouterPromise = null, MODEL_CACHE_TTL, modelCache, groupedCache, GROUP_DISPLAY_NAMES;
59920
+ var PROVIDER_CONFIGS, DEFAULT_CONTEXT_TOKENS = 128000, METADATA_FETCH_TIMEOUT = 5000, openRouterCache = null, openRouterPromise = null, MODEL_CACHE_TTL, modelCache, groupedCache, GROUP_DISPLAY_NAMES;
59789
59921
  var init_models = __esm(() => {
59790
59922
  init_lifecycle();
59791
59923
  init_secrets();
@@ -59994,11 +60126,12 @@ function buildContextEdits(config2, contextWindow, thinkingEnabled) {
59994
60126
  });
59995
60127
  }
59996
60128
  if (config2?.clearToolUses !== false) {
60129
+ const clearTrigger = Math.max(80000, Math.floor(contextWindow * 0.3));
59997
60130
  edits.push({
59998
60131
  type: "clear_tool_uses_20250919",
59999
60132
  trigger: {
60000
60133
  type: "input_tokens",
60001
- value: 1e5
60134
+ value: clearTrigger
60002
60135
  },
60003
60136
  keep: {
60004
60137
  type: "tool_uses",
@@ -60012,7 +60145,7 @@ function buildContextEdits(config2, contextWindow, thinkingEnabled) {
60012
60145
  });
60013
60146
  }
60014
60147
  if (config2?.compact && contextWindow >= 200000) {
60015
- const trigger = Math.max(150000, Math.floor(contextWindow * 0.5));
60148
+ const trigger = Math.max(160000, Math.floor(contextWindow * 0.8));
60016
60149
  edits.push({
60017
60150
  type: "compact_20260112",
60018
60151
  trigger: {
@@ -60025,7 +60158,7 @@ function buildContextEdits(config2, contextWindow, thinkingEnabled) {
60025
60158
  }
60026
60159
  return edits.length > 0 ? edits : null;
60027
60160
  }
60028
- function buildAnthropicOptions(modelId, caps, config2) {
60161
+ async function buildAnthropicOptions(modelId, caps, config2) {
60029
60162
  const opts = {};
60030
60163
  const headers = {};
60031
60164
  let thinkingEnabled = false;
@@ -60064,7 +60197,7 @@ function buildAnthropicOptions(modelId, caps, config2) {
60064
60197
  opts.sendReasoning = false;
60065
60198
  }
60066
60199
  if (caps.contextManagement) {
60067
- const contextWindow = getModelContextWindow(modelId);
60200
+ const contextWindow = await getModelContextWindow(modelId);
60068
60201
  const edits = buildContextEdits(config2.contextManagement, contextWindow, thinkingEnabled);
60069
60202
  if (edits) {
60070
60203
  opts.contextManagement = {
@@ -60102,12 +60235,13 @@ function buildOpenAIOptions(caps, config2) {
60102
60235
  opts
60103
60236
  };
60104
60237
  }
60105
- function buildProviderOptions(modelId, config2) {
60238
+ async function buildProviderOptions(modelId, config2) {
60106
60239
  const caps = getEffectiveCaps(modelId);
60107
60240
  const providerOptions = {};
60108
60241
  let headers = {};
60242
+ const contextWindow = await getModelContextWindow(modelId);
60109
60243
  if (caps.anthropicOptions) {
60110
- const result = buildAnthropicOptions(modelId, caps, config2);
60244
+ const result = await buildAnthropicOptions(modelId, caps, config2);
60111
60245
  if (Object.keys(result.opts).length > 0) {
60112
60246
  providerOptions.anthropic = result.opts;
60113
60247
  }
@@ -60121,14 +60255,16 @@ function buildProviderOptions(modelId, config2) {
60121
60255
  }
60122
60256
  return {
60123
60257
  providerOptions,
60124
- headers: Object.keys(headers).length > 0 ? headers : undefined
60258
+ headers: Object.keys(headers).length > 0 ? headers : undefined,
60259
+ contextWindow
60125
60260
  };
60126
60261
  }
60127
60262
  function degradeProviderOptions(modelId, level) {
60128
60263
  if (level >= 2 || !supportsAnthropicOptions(modelId)) {
60129
60264
  return {
60130
60265
  providerOptions: {},
60131
- headers: undefined
60266
+ headers: undefined,
60267
+ contextWindow: 0
60132
60268
  };
60133
60269
  }
60134
60270
  const caps = getModelCapabilities2(modelId);
@@ -60143,7 +60279,8 @@ function degradeProviderOptions(modelId, level) {
60143
60279
  providerOptions: {
60144
60280
  anthropic: opts
60145
60281
  },
60146
- headers: undefined
60282
+ headers: undefined,
60283
+ contextWindow: 0
60147
60284
  };
60148
60285
  }
60149
60286
  function isProviderOptionsError(error48) {
@@ -344269,7 +344406,7 @@ ${enrichedPrompt}`;
344269
344406
  attemptsMade = attempt + 1;
344270
344407
  const {
344271
344408
  agent
344272
- } = createAgent(task, models, bus, parentToolCallId);
344409
+ } = await createAgent(task, models, bus, parentToolCallId);
344273
344410
  const callbacks = buildStepCallbacks(parentToolCallId, task.agentId, selectedModelId);
344274
344411
  let result;
344275
344412
  try {
@@ -344352,7 +344489,7 @@ ${task.task}`;
344352
344489
  try {
344353
344490
  const {
344354
344491
  agent: retryAgent
344355
- } = createAgent(task, models, bus, parentToolCallId);
344492
+ } = await createAgent(task, models, bus, parentToolCallId);
344356
344493
  const retryCallbacks = buildStepCallbacks(parentToolCallId, task.agentId, selectedModelId);
344357
344494
  let retryResult;
344358
344495
  try {
@@ -344642,7 +344779,7 @@ ${editedPaths.map((p) => `- ${p}`).join(`
344642
344779
  bus.registerTasks([desloppifyTask]);
344643
344780
  const {
344644
344781
  agent
344645
- } = createAgent({
344782
+ } = await createAgent({
344646
344783
  ...desloppifyTask,
344647
344784
  tier: "standard"
344648
344785
  }, {
@@ -344781,7 +344918,7 @@ ${test2.output.slice(-500)}`);
344781
344918
  bus.registerTasks([verifyTask]);
344782
344919
  const {
344783
344920
  agent
344784
- } = createAgent(verifyTask, {
344921
+ } = await createAgent(verifyTask, {
344785
344922
  ...models,
344786
344923
  explorationModel: reviewModel
344787
344924
  }, bus, parentToolCallId);
@@ -344994,7 +345131,7 @@ function autoPostCompletionSummary(bus, task) {
344994
345131
  timestamp: Date.now()
344995
345132
  });
344996
345133
  }
344997
- function createAgent(task, models, bus, parentToolCallId) {
345134
+ async function createAgent(task, models, bus, parentToolCallId) {
344998
345135
  const useExplore = task.role === "explore" || task.role === "investigate" || models.readOnly === true;
344999
345136
  const {
345000
345137
  model
@@ -345017,7 +345154,7 @@ function createAgent(task, models, bus, parentToolCallId) {
345017
345154
  }
345018
345155
  subagentProviderOptions = patched;
345019
345156
  }
345020
- const contextWindow = getModelContextWindow(modelId);
345157
+ const contextWindow = await getModelContextWindow(modelId);
345021
345158
  const forgeInstructions = useMiniForge ? models.forgeInstructions : undefined;
345022
345159
  const agentRole = useExplore ? task.role === "investigate" ? "investigate" : "explore" : "code";
345023
345160
  const forgeToolsGuarded = useMiniForge && models.forgeTools ? guardForgeTools(models.forgeTools, agentRole) : undefined;
@@ -381401,7 +381538,7 @@ async function setupAgent(opts, merged) {
381401
381538
  process.exit(EXIT_ERROR);
381402
381539
  }
381403
381540
  const model = resolveModel(modelId);
381404
- const providerOpts = buildProviderOptions(modelId, merged);
381541
+ const providerOpts = await buildProviderOptions(modelId, merged);
381405
381542
  const repoMapDisabled = merged.repoMap === false || opts.noRepomap || process.env.SOULFORGE_NO_REPOMAP === "1";
381406
381543
  const contextManager = await ContextManager.createAsync(cwd2, (step) => {
381407
381544
  if (showProgress)
@@ -381409,6 +381546,7 @@ async function setupAgent(opts, merged) {
381409
381546
  }, {
381410
381547
  repoMapEnabled: !repoMapDisabled
381411
381548
  });
381549
+ contextManager.setContextWindow(providerOpts.contextWindow);
381412
381550
  if (!repoMapDisabled) {
381413
381551
  const REPO_MAP_TIMEOUT = 15000;
381414
381552
  if (!contextManager.isRepoMapReady()) {
@@ -433763,6 +433901,8 @@ var init_version2 = __esm(() => {
433763
433901
  current: CURRENT_VERSION,
433764
433902
  latest: null,
433765
433903
  changelog: [],
433904
+ currentRelease: null,
433905
+ changelogError: false,
433766
433906
  updateAvailable: false,
433767
433907
  installMethod: detectInstallMethod(),
433768
433908
  checking: false,
@@ -433776,6 +433916,8 @@ var init_version2 = __esm(() => {
433776
433916
  current: result.current,
433777
433917
  latest: result.latest,
433778
433918
  changelog: result.changelog,
433919
+ currentRelease: result.currentRelease,
433920
+ changelogError: result.changelogError,
433779
433921
  updateAvailable: result.updateAvailable,
433780
433922
  checking: false
433781
433923
  });
@@ -437998,13 +438140,34 @@ function useChat({
437998
438140
  if (activeModel !== prevSyncedModel.current && activeModel !== "none") {
437999
438141
  prevSyncedModel.current = activeModel;
438000
438142
  const cached2 = pinnedContextWindow.current.get(activeModel);
438001
- const fresh = getModelContextWindow(activeModel);
438143
+ const fresh = getModelContextWindowSync(activeModel);
438002
438144
  const windowTokens = cached2 ? Math.max(cached2, fresh) : fresh;
438003
438145
  pinnedContextWindow.current.set(activeModel, windowTokens);
438004
438146
  contextManagerRef.current.setContextWindow(windowTokens);
438005
438147
  if (visible)
438006
438148
  useStatusBarStore.getState().setContextWindow(windowTokens);
438007
438149
  }
438150
+ const activeModelForEffect = activeModel;
438151
+ import_react32.useEffect(() => {
438152
+ if (activeModelForEffect === "none")
438153
+ return;
438154
+ let cancelled = false;
438155
+ getModelContextWindow(activeModelForEffect).then((accurate) => {
438156
+ if (cancelled)
438157
+ return;
438158
+ const prev = pinnedContextWindow.current.get(activeModelForEffect) ?? 0;
438159
+ const best = Math.max(prev, accurate);
438160
+ if (best > prev) {
438161
+ pinnedContextWindow.current.set(activeModelForEffect, best);
438162
+ contextManagerRef.current.setContextWindow(best);
438163
+ if (visibleRef.current)
438164
+ useStatusBarStore.getState().setContextWindow(best);
438165
+ }
438166
+ });
438167
+ return () => {
438168
+ cancelled = true;
438169
+ };
438170
+ }, [activeModelForEffect]);
438008
438171
  const [tokenUsage, setTokenUsageRaw] = import_react32.useState(initialState?.tokenUsage ?? {
438009
438172
  ...ZERO_USAGE2
438010
438173
  });
@@ -438208,7 +438371,7 @@ function useChat({
438208
438371
  const compactModelId = resolveTaskModel("compact", effectiveConfig.taskRouter, activeModelRef.current);
438209
438372
  const model = resolveModel(compactModelId);
438210
438373
  const modelLabel = getShortModelLabel(compactModelId);
438211
- const contextWindow = getModelContextWindow(activeModelRef.current);
438374
+ const contextWindow = await getModelContextWindow(activeModelRef.current);
438212
438375
  const charsPerToken = 3;
438213
438376
  const systemChars = (await contextManager.getContextBreakdown()).reduce((sum, s2) => sum + s2.chars, 0);
438214
438377
  const beforeChars = systemChars + currentCore.reduce((s2, m5) => {
@@ -438270,8 +438433,14 @@ function useChat({
438270
438433
  })();
438271
438434
  const {
438272
438435
  providerOptions,
438273
- headers
438274
- } = buildProviderOptions(compactModelId, effectiveConfig);
438436
+ headers,
438437
+ contextWindow: compactCtxWindow
438438
+ } = await buildProviderOptions(compactModelId, effectiveConfig);
438439
+ if (compactCtxWindow > 0) {
438440
+ const prev = pinnedContextWindow.current.get(compactModelId) ?? 0;
438441
+ if (compactCtxWindow > prev)
438442
+ pinnedContextWindow.current.set(compactModelId, compactCtxWindow);
438443
+ }
438275
438444
  let summary;
438276
438445
  let compactUsage;
438277
438446
  if (isV2 && workingStateRef.current) {
@@ -438497,7 +438666,7 @@ INCLUDE the plan progress above VERBATIM in ## Current State so the agent knows
438497
438666
  return;
438498
438667
  if (contextTokens <= 0)
438499
438668
  return;
438500
- const ctxWindow = getModelContextWindow(activeModelRef.current);
438669
+ const ctxWindow = pinnedContextWindow.current.get(activeModelRef.current) ?? getModelContextWindowSync(activeModelRef.current);
438501
438670
  const pct = contextTokens / ctxWindow;
438502
438671
  const triggerAt = effectiveConfig.compaction?.triggerThreshold ?? DEFAULT_COMPACTION_CONFIG.triggerThreshold ?? 0.7;
438503
438672
  const resetAt = effectiveConfig.compaction?.resetThreshold ?? DEFAULT_COMPACTION_CONFIG.resetThreshold ?? 0.4;
@@ -438823,8 +438992,19 @@ ${description}`,
438823
438992
  const effectiveWebSearchModel = webSearchEnabled ? webSearchModel : undefined;
438824
438993
  const {
438825
438994
  providerOptions,
438826
- headers
438827
- } = buildProviderOptions(modelId, effectiveConfig2);
438995
+ headers,
438996
+ contextWindow: fetchedCtxWindow
438997
+ } = await buildProviderOptions(modelId, effectiveConfig2);
438998
+ if (fetchedCtxWindow > 0) {
438999
+ const prev = pinnedContextWindow.current.get(modelId) ?? 0;
439000
+ const best = Math.max(prev, fetchedCtxWindow);
439001
+ if (best > prev) {
439002
+ pinnedContextWindow.current.set(modelId, best);
439003
+ contextManagerRef.current.setContextWindow(best);
439004
+ if (visibleRef.current)
439005
+ useStatusBarStore.getState().setContextWindow(best);
439006
+ }
439007
+ }
438828
439008
  steeringAbortedRef.current = false;
438829
439009
  const flushBeforeSteering = (steeringMsgs) => {
438830
439010
  const completedIds = new Set(completedCalls.map((c) => c.id));
@@ -468360,7 +468540,7 @@ function StatusDashboard({
468360
468540
  const contextLines = import_react102.useMemo(() => {
468361
468541
  const breakdown = contextManager.getContextBreakdown();
468362
468542
  const systemChars = breakdown.reduce((sum, s2) => sum + s2.chars, 0);
468363
- const ctxWindow = sb.contextWindow > 0 ? sb.contextWindow : getModelContextInfo(modelId).tokens;
468543
+ const ctxWindow = sb.contextWindow > 0 ? sb.contextWindow : getModelContextInfoSync(modelId).tokens;
468364
468544
  const isApi = sb.contextTokens > 0;
468365
468545
  const charEstimate = (systemChars + sb.chatChars + sb.subagentChars) / 4;
468366
468546
  const chatCharsDelta = Math.max(0, sb.chatChars - (sb.chatCharsAtSnapshot ?? 0));
@@ -468383,6 +468563,40 @@ function StatusDashboard({
468383
468563
  value: getShortModelLabel(modelId),
468384
468564
  innerW
468385
468565
  }, "model", false, undefined, this));
468566
+ const isAnthropic = isAnthropicNative(modelId);
468567
+ const clientTriggerPct = 70;
468568
+ const clientTrigger = Math.floor(ctxWindow * (clientTriggerPct / 100));
468569
+ lines.push(/* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Spacer, {
468570
+ innerW
468571
+ }, "s-thresh-pre", false, undefined, this));
468572
+ lines.push(/* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(SectionHeader, {
468573
+ label: "Compaction Thresholds",
468574
+ innerW
468575
+ }, "h-thresh", false, undefined, this));
468576
+ if (isAnthropic) {
468577
+ const clearPct = 30;
468578
+ const clearTrigger = Math.max(80000, Math.floor(ctxWindow * (clearPct / 100)));
468579
+ const serverPct = 80;
468580
+ const serverTrigger = Math.max(160000, Math.floor(ctxWindow * (serverPct / 100)));
468581
+ lines.push(/* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(EntryRow, {
468582
+ label: " Tool clearing",
468583
+ value: `${String(clearPct)}% \u2014 ${fmtTokens(clearTrigger)}`,
468584
+ valueColor: t2.textMuted,
468585
+ innerW
468586
+ }, "th-clear", false, undefined, this));
468587
+ lines.push(/* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(EntryRow, {
468588
+ label: " Server compact",
468589
+ value: `${String(serverPct)}% \u2014 ${fmtTokens(serverTrigger)}`,
468590
+ valueColor: t2.textMuted,
468591
+ innerW
468592
+ }, "th-server", false, undefined, this));
468593
+ }
468594
+ lines.push(/* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(EntryRow, {
468595
+ label: " Client compact",
468596
+ value: `${String(clientTriggerPct)}% \u2014 ${fmtTokens(clientTrigger)}`,
468597
+ valueColor: t2.textMuted,
468598
+ innerW
468599
+ }, "th-client", false, undefined, this));
468386
468600
  lines.push(/* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Spacer, {
468387
468601
  innerW
468388
468602
  }, "s1", false, undefined, this));
@@ -468925,6 +469139,7 @@ var init_StatusDashboard = __esm(async () => {
468925
469139
  init_icons();
468926
469140
  init_intelligence();
468927
469141
  init_models();
469142
+ init_provider_options();
468928
469143
  init_lifecycle();
468929
469144
  init_manager5();
468930
469145
  init_theme();
@@ -469021,13 +469236,176 @@ function Gap3(t0) {
469021
469236
  }
469022
469237
  return t2;
469023
469238
  }
469024
- function UpdateModal(t0) {
469025
- const $5 = import_compiler_runtime60.c(569);
469239
+ function ChangelogSection(t0) {
469240
+ const $5 = import_compiler_runtime60.c(21);
469026
469241
  const {
469027
- visible,
469028
- onClose,
469029
- onRestart
469242
+ releases,
469243
+ maxLines,
469244
+ iw,
469245
+ bg: bg2,
469246
+ t: t2
469030
469247
  } = t0;
469248
+ let rows;
469249
+ if ($5[0] !== releases) {
469250
+ rows = [];
469251
+ for (const rel of releases) {
469252
+ rows.push({
469253
+ type: "header",
469254
+ version: rel.version,
469255
+ date: rel.date
469256
+ });
469257
+ for (const c of rel.commits) {
469258
+ rows.push({
469259
+ type: "commit",
469260
+ commit: c
469261
+ });
469262
+ }
469263
+ }
469264
+ $5[0] = releases;
469265
+ $5[1] = rows;
469266
+ } else {
469267
+ rows = $5[1];
469268
+ }
469269
+ let t1;
469270
+ if ($5[2] !== maxLines || $5[3] !== rows) {
469271
+ t1 = rows.slice(0, maxLines);
469272
+ $5[2] = maxLines;
469273
+ $5[3] = rows;
469274
+ $5[4] = t1;
469275
+ } else {
469276
+ t1 = $5[4];
469277
+ }
469278
+ const visible = t1;
469279
+ const remaining = rows.length - visible.length;
469280
+ const t22 = Math.min(rows.length, maxLines);
469281
+ let t3;
469282
+ if ($5[5] !== bg2 || $5[6] !== iw || $5[7] !== t2 || $5[8] !== visible) {
469283
+ t3 = visible.map((row, i4) => {
469284
+ if (row.type === "header") {
469285
+ return /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469286
+ w: iw,
469287
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469288
+ bg: bg2,
469289
+ children: [
469290
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469291
+ fg: t2.brand,
469292
+ attributes: BOLD5,
469293
+ children: [
469294
+ " ",
469295
+ "v",
469296
+ row.version
469297
+ ]
469298
+ }, undefined, true, undefined, this),
469299
+ row.date && /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469300
+ fg: t2.textFaint,
469301
+ attributes: DIM4,
469302
+ children: [
469303
+ " ",
469304
+ row.date
469305
+ ]
469306
+ }, undefined, true, undefined, this)
469307
+ ]
469308
+ }, undefined, true, undefined, this)
469309
+ }, String(i4), false, undefined, this);
469310
+ }
469311
+ const badge = TYPE_BADGE[row.commit.type] ?? TYPE_BADGE.other;
469312
+ const scope = row.commit.scope ? `(${row.commit.scope}) ` : "";
469313
+ const breakingMark = row.commit.breaking ? " !!" : "";
469314
+ return /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469315
+ w: iw,
469316
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469317
+ bg: bg2,
469318
+ children: [
469319
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469320
+ fg: t2[badge.color] ?? t2.textMuted,
469321
+ children: [
469322
+ " ",
469323
+ badge.label.padEnd(5)
469324
+ ]
469325
+ }, undefined, true, undefined, this),
469326
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469327
+ fg: t2.textFaint,
469328
+ children: " \u2502 "
469329
+ }, undefined, false, undefined, this),
469330
+ row.commit.breaking ? /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469331
+ fg: t2.brandSecondary,
469332
+ attributes: BOLD5,
469333
+ children: trunc(`${scope}${row.commit.message}${breakingMark}`, iw - 16)
469334
+ }, undefined, false, undefined, this) : /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469335
+ fg: t2.textSecondary,
469336
+ children: trunc(`${scope}${row.commit.message}`, iw - 16)
469337
+ }, undefined, false, undefined, this)
469338
+ ]
469339
+ }, undefined, true, undefined, this)
469340
+ }, String(i4), false, undefined, this);
469341
+ });
469342
+ $5[5] = bg2;
469343
+ $5[6] = iw;
469344
+ $5[7] = t2;
469345
+ $5[8] = visible;
469346
+ $5[9] = t3;
469347
+ } else {
469348
+ t3 = $5[9];
469349
+ }
469350
+ let t4;
469351
+ if ($5[10] !== t22 || $5[11] !== t3) {
469352
+ t4 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
469353
+ flexDirection: "column",
469354
+ height: t22,
469355
+ overflow: "hidden",
469356
+ children: t3
469357
+ }, undefined, false, undefined, this);
469358
+ $5[10] = t22;
469359
+ $5[11] = t3;
469360
+ $5[12] = t4;
469361
+ } else {
469362
+ t4 = $5[12];
469363
+ }
469364
+ let t5;
469365
+ if ($5[13] !== bg2 || $5[14] !== iw || $5[15] !== remaining || $5[16] !== t2) {
469366
+ t5 = remaining > 0 && /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469367
+ w: iw,
469368
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469369
+ bg: bg2,
469370
+ fg: t2.textFaint,
469371
+ attributes: DIM4,
469372
+ children: [
469373
+ " ",
469374
+ "\u2026 and ",
469375
+ remaining,
469376
+ " more"
469377
+ ]
469378
+ }, undefined, true, undefined, this)
469379
+ }, undefined, false, undefined, this);
469380
+ $5[13] = bg2;
469381
+ $5[14] = iw;
469382
+ $5[15] = remaining;
469383
+ $5[16] = t2;
469384
+ $5[17] = t5;
469385
+ } else {
469386
+ t5 = $5[17];
469387
+ }
469388
+ let t6;
469389
+ if ($5[18] !== t4 || $5[19] !== t5) {
469390
+ t6 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(import_jsx_dev_runtime2.Fragment, {
469391
+ children: [
469392
+ t4,
469393
+ t5
469394
+ ]
469395
+ }, undefined, true, undefined, this);
469396
+ $5[18] = t4;
469397
+ $5[19] = t5;
469398
+ $5[20] = t6;
469399
+ } else {
469400
+ t6 = $5[20];
469401
+ }
469402
+ return t6;
469403
+ }
469404
+ function UpdateModal({
469405
+ visible,
469406
+ onClose,
469407
+ onRestart
469408
+ }) {
469031
469409
  const t2 = useTheme();
469032
469410
  const {
469033
469411
  width: termCols,
@@ -469037,6 +469415,8 @@ function UpdateModal(t0) {
469037
469415
  current,
469038
469416
  latest,
469039
469417
  changelog,
469418
+ currentRelease,
469419
+ changelogError,
469040
469420
  installMethod,
469041
469421
  updateAvailable
469042
469422
  } = useVersionStore();
@@ -469044,2595 +469424,1088 @@ function UpdateModal(t0) {
469044
469424
  const [phase, setPhase] = import_react104.useState("info");
469045
469425
  const [quipIdx, setQuipIdx] = import_react104.useState(0);
469046
469426
  const [spinIdx, setSpinIdx] = import_react104.useState(0);
469047
- let t1;
469048
- if ($5[0] === Symbol.for("react.memo_cache_sentinel")) {
469049
- t1 = [];
469050
- $5[0] = t1;
469051
- } else {
469052
- t1 = $5[0];
469053
- }
469054
- const [logLines, setLogLines] = import_react104.useState(t1);
469427
+ const [logLines, setLogLines] = import_react104.useState([]);
469055
469428
  const [errorMsg, setErrorMsg] = import_react104.useState("");
469056
469429
  const upgrading = import_react104.useRef(false);
469057
469430
  const [tick, setTick] = import_react104.useState(0);
469058
469431
  const prevVisible = import_react104.useRef(false);
469059
- let t22;
469060
- let t3;
469061
- if ($5[1] !== visible) {
469062
- t22 = () => {
469063
- if (visible && !prevVisible.current) {
469064
- setTick(0);
469065
- setPhase("info");
469066
- }
469067
- prevVisible.current = visible;
469068
- };
469069
- t3 = [visible];
469070
- $5[1] = visible;
469071
- $5[2] = t22;
469072
- $5[3] = t3;
469073
- } else {
469074
- t22 = $5[2];
469075
- t3 = $5[3];
469076
- }
469077
- import_react104.useEffect(t22, t3);
469078
- let t4;
469079
- let t5;
469080
- if ($5[4] !== tick || $5[5] !== visible) {
469081
- t4 = () => {
469082
- if (!visible || tick >= 12) {
469083
- return;
469084
- }
469085
- const timer = setInterval(() => setTick(_temp81), 60);
469086
- return () => clearInterval(timer);
469087
- };
469088
- t5 = [visible, tick];
469089
- $5[4] = tick;
469090
- $5[5] = visible;
469091
- $5[6] = t4;
469092
- $5[7] = t5;
469093
- } else {
469094
- t4 = $5[6];
469095
- t5 = $5[7];
469096
- }
469097
- import_react104.useEffect(t4, t5);
469098
- const pw = Math.min(60, Math.floor(termCols * 0.85));
469432
+ import_react104.useEffect(() => {
469433
+ if (visible && !prevVisible.current) {
469434
+ setTick(0);
469435
+ setPhase("info");
469436
+ }
469437
+ prevVisible.current = visible;
469438
+ }, [visible]);
469439
+ import_react104.useEffect(() => {
469440
+ if (!visible || tick >= 12)
469441
+ return;
469442
+ const timer = setInterval(() => setTick((prev) => prev + 1), 60);
469443
+ return () => clearInterval(timer);
469444
+ }, [visible, tick]);
469445
+ const pw = Math.min(76, Math.floor(termCols * 0.9));
469099
469446
  const iw = pw - 2;
469100
- const maxChangelog = Math.max(3, Math.floor(termRows * 0.3) - 8);
469447
+ const maxChangelog = Math.max(6, Math.floor(termRows * 0.5) - 10);
469101
469448
  const logH = Math.max(3, Math.min(6, Math.floor(termRows * 0.2)));
469102
- let t6;
469103
- let t7;
469104
- if ($5[8] !== phase) {
469105
- t6 = () => {
469106
- if (phase !== "upgrading") {
469107
- return;
469108
- }
469109
- const s2 = setInterval(() => setSpinIdx(_temp231), 80);
469110
- const q4 = setInterval(() => setQuipIdx(_temp327), 2500);
469111
- return () => {
469112
- clearInterval(s2);
469113
- clearInterval(q4);
469114
- };
469449
+ const bg2 = POPUP_BG;
469450
+ import_react104.useEffect(() => {
469451
+ if (phase !== "upgrading")
469452
+ return;
469453
+ const s2 = setInterval(() => setSpinIdx((i4) => i4 + 1), 80);
469454
+ const q4 = setInterval(() => setQuipIdx((i_0) => (i_0 + 1) % UPGRADE_QUIPS.length), 2500);
469455
+ return () => {
469456
+ clearInterval(s2);
469457
+ clearInterval(q4);
469115
469458
  };
469116
- t7 = [phase];
469117
- $5[8] = phase;
469118
- $5[9] = t6;
469119
- $5[10] = t7;
469120
- } else {
469121
- t6 = $5[9];
469122
- t7 = $5[10];
469123
- }
469124
- import_react104.useEffect(t6, t7);
469125
- let t8;
469126
- if ($5[11] !== installMethod) {
469127
- t8 = async () => {
469128
- if (upgrading.current) {
469129
- return;
469130
- }
469131
- upgrading.current = true;
469132
- setPhase("upgrading");
469133
- setLogLines([]);
469134
- setErrorMsg("");
469135
- setQuipIdx(0);
469136
- const result = await performUpgrade(installMethod, (msg) => {
469137
- setLogLines((prev_0) => {
469138
- const next = [...prev_0, msg];
469139
- return next.length > MAX_LOG ? next.slice(-MAX_LOG) : next;
469140
- });
469459
+ }, [phase]);
469460
+ const doUpgrade = import_react104.useCallback(async () => {
469461
+ if (upgrading.current)
469462
+ return;
469463
+ upgrading.current = true;
469464
+ setPhase("upgrading");
469465
+ setLogLines([]);
469466
+ setErrorMsg("");
469467
+ setQuipIdx(0);
469468
+ const result = await performUpgrade(installMethod, (msg) => {
469469
+ setLogLines((prev_0) => {
469470
+ const next = [...prev_0, msg];
469471
+ return next.length > MAX_LOG ? next.slice(-MAX_LOG) : next;
469141
469472
  });
469142
- if (result.ok) {
469143
- setPhase("success");
469144
- } else {
469145
- setPhase("failed");
469146
- setErrorMsg(result.error ?? "Unknown error");
469147
- }
469148
- upgrading.current = false;
469149
- };
469150
- $5[11] = installMethod;
469151
- $5[12] = t8;
469152
- } else {
469153
- t8 = $5[12];
469154
- }
469155
- const doUpgrade = t8;
469156
- let t9;
469157
- if ($5[13] !== doUpgrade || $5[14] !== installMethod || $5[15] !== latest || $5[16] !== onClose || $5[17] !== onRestart || $5[18] !== phase || $5[19] !== updateAvailable || $5[20] !== visible) {
469158
- t9 = (evt) => {
469159
- if (!visible) {
469160
- return;
469161
- }
469162
- if (phase === "upgrading") {
469163
- return;
469164
- }
469165
- if (phase === "success") {
469166
- if (evt.name === "y" || evt.name === "return") {
469167
- onRestart();
469168
- return;
469169
- }
469170
- if (evt.name === "n" || evt.name === "escape") {
469171
- setPhase("info");
469172
- onClose();
469173
- return;
469174
- }
469175
- return;
469176
- }
469177
- if (phase === "failed") {
469178
- if (evt.name === "escape" || evt.name === "return") {
469179
- setPhase("info");
469180
- return;
469181
- }
469473
+ });
469474
+ if (result.ok) {
469475
+ setPhase("success");
469476
+ } else {
469477
+ setPhase("failed");
469478
+ setErrorMsg(result.error ?? "Unknown error");
469479
+ }
469480
+ upgrading.current = false;
469481
+ }, [installMethod]);
469482
+ useKeyboard((evt) => {
469483
+ if (!visible)
469484
+ return;
469485
+ if (phase === "upgrading")
469486
+ return;
469487
+ if (phase === "success") {
469488
+ if (evt.name === "y" || evt.name === "return") {
469489
+ onRestart();
469182
469490
  return;
469183
469491
  }
469184
- if (evt.name === "escape" || evt.name === "q") {
469492
+ if (evt.name === "n" || evt.name === "escape") {
469493
+ setPhase("info");
469185
469494
  onClose();
469186
469495
  return;
469187
469496
  }
469188
- if (evt.name === "u" && updateAvailable && installMethod !== "binary") {
469189
- doUpgrade();
469190
- return;
469191
- }
469192
- if (evt.name === "d") {
469193
- if (latest) {
469194
- dismissVersion(latest);
469195
- }
469196
- onClose();
469497
+ return;
469498
+ }
469499
+ if (phase === "failed") {
469500
+ if (evt.name === "escape" || evt.name === "return") {
469501
+ setPhase("info");
469197
469502
  return;
469198
469503
  }
469199
- if (evt.name === "c") {
469200
- try {
469201
- const b64 = Buffer.from(getUpgradeCommand(installMethod)).toString("base64");
469202
- process.stdout.write(`\x1B]52;c;${b64}\x07`);
469203
- setCopied(true);
469204
- setTimeout(() => setCopied(false), 2000);
469205
- } catch {}
469206
- }
469207
- };
469208
- $5[13] = doUpgrade;
469209
- $5[14] = installMethod;
469210
- $5[15] = latest;
469211
- $5[16] = onClose;
469212
- $5[17] = onRestart;
469213
- $5[18] = phase;
469214
- $5[19] = updateAvailable;
469215
- $5[20] = visible;
469216
- $5[21] = t9;
469217
- } else {
469218
- t9 = $5[21];
469219
- }
469220
- useKeyboard(t9);
469221
- if (!visible) {
469504
+ return;
469505
+ }
469506
+ if (evt.name === "escape" || evt.name === "q") {
469507
+ onClose();
469508
+ return;
469509
+ }
469510
+ if (evt.name === "u" && updateAvailable && installMethod !== "binary") {
469511
+ doUpgrade();
469512
+ return;
469513
+ }
469514
+ if (evt.name === "d") {
469515
+ if (latest)
469516
+ dismissVersion(latest);
469517
+ onClose();
469518
+ return;
469519
+ }
469520
+ if (evt.name === "c") {
469521
+ try {
469522
+ const b64 = Buffer.from(getUpgradeCommand(installMethod)).toString("base64");
469523
+ process.stdout.write(`\x1B]52;c;${b64}\x07`);
469524
+ setCopied(true);
469525
+ setTimeout(() => setCopied(false), 2000);
469526
+ } catch {}
469527
+ }
469528
+ if (evt.name === "g") {
469529
+ const tag = updateAvailable ? latest : current;
469530
+ const url2 = tag ? `https://github.com/ProxySoul/soulforge/releases/tag/v${tag}` : "https://github.com/ProxySoul/soulforge/releases";
469531
+ try {
469532
+ const cmd = process.platform === "darwin" ? "open" : "xdg-open";
469533
+ Bun.spawn([cmd, url2], {
469534
+ stdio: ["ignore", "ignore", "ignore"]
469535
+ });
469536
+ } catch {}
469537
+ }
469538
+ });
469539
+ if (!visible)
469222
469540
  return null;
469223
- }
469224
- let T0;
469225
- let T1;
469226
- let arrowIc;
469227
- let canAuto;
469228
- let t10;
469229
- let t11;
469230
- let t12;
469231
- let t13;
469232
- let t14;
469233
- let t15;
469234
- let t16;
469235
- let t17;
469236
- let t18;
469237
- let t19;
469238
- let t20;
469239
- let t21;
469240
- let t222;
469241
- let t23;
469242
- let t24;
469243
- let t25;
469244
- let t26;
469245
- let t27;
469246
- let t28;
469247
- let t29;
469248
- let t30;
469249
- let t31;
469250
- let t32;
469251
- let t33;
469252
- let t34;
469253
- if ($5[22] !== changelog || $5[23] !== current || $5[24] !== errorMsg || $5[25] !== installMethod || $5[26] !== iw || $5[27] !== latest || $5[28] !== logH || $5[29] !== logLines || $5[30] !== maxChangelog || $5[31] !== phase || $5[32] !== pw || $5[33] !== quipIdx || $5[34] !== spinIdx || $5[35] !== t2.brand || $5[36] !== t2.brandAlt || $5[37] !== t2.brandDim || $5[38] !== t2.brandSecondary || $5[39] !== t2.success || $5[40] !== t2.textFaint || $5[41] !== t2.textMuted || $5[42] !== t2.textPrimary || $5[43] !== t2.textSecondary || $5[44] !== tick || $5[45] !== updateAvailable) {
469254
- t34 = Symbol.for("react.early_return_sentinel");
469255
- bb0: {
469256
- const upgradeCmd = getUpgradeCommand(installMethod);
469257
- canAuto = installMethod !== "binary" && updateAvailable;
469258
- let t352;
469259
- if ($5[75] === Symbol.for("react.memo_cache_sentinel")) {
469260
- t352 = icon("ghost");
469261
- $5[75] = t352;
469262
- } else {
469263
- t352 = $5[75];
469264
- }
469265
- const ghostIc = t352;
469266
- let t362;
469267
- if ($5[76] === Symbol.for("react.memo_cache_sentinel")) {
469268
- t362 = icon("sparkle");
469269
- $5[76] = t362;
469270
- } else {
469271
- t362 = $5[76];
469272
- }
469273
- const sparkle = t362;
469274
- let t372;
469275
- if ($5[77] === Symbol.for("react.memo_cache_sentinel")) {
469276
- t372 = icon("check");
469277
- $5[77] = t372;
469278
- } else {
469279
- t372 = $5[77];
469280
- }
469281
- const checkIc = t372;
469282
- let t382;
469283
- if ($5[78] === Symbol.for("react.memo_cache_sentinel")) {
469284
- t382 = icon("error");
469285
- $5[78] = t382;
469286
- } else {
469287
- t382 = $5[78];
469288
- }
469289
- const errorIc = t382;
469290
- let t392;
469291
- if ($5[79] === Symbol.for("react.memo_cache_sentinel")) {
469292
- t392 = icon("arrow_right");
469293
- $5[79] = t392;
469294
- } else {
469295
- t392 = $5[79];
469296
- }
469297
- arrowIc = t392;
469298
- const ghostChar = tick < GHOST_FADE2.length ? GHOST_FADE2[tick] ?? "\u2591" : ghostIc;
469299
- const wispFrame = WISP[tick % WISP.length] ?? "";
469300
- const titleReady = tick >= 4;
469301
- let t402;
469302
- if ($5[80] !== current || $5[81] !== tick) {
469303
- t402 = tick < 6 ? garble(`v${current}`) : `v${current}`;
469304
- $5[80] = current;
469305
- $5[81] = tick;
469306
- $5[82] = t402;
469307
- } else {
469308
- t402 = $5[82];
469309
- }
469310
- const vCurrent = t402;
469311
- let t412;
469312
- if ($5[83] !== current || $5[84] !== latest || $5[85] !== tick) {
469313
- t412 = tick < 7 ? garble(`v${latest ?? current}`) : `v${latest ?? current}`;
469314
- $5[83] = current;
469315
- $5[84] = latest;
469316
- $5[85] = tick;
469317
- $5[86] = t412;
469318
- } else {
469319
- t412 = $5[86];
469320
- }
469321
- const vLatest = t412;
469322
- if (phase === "success") {
469323
- let t423;
469324
- if ($5[87] !== iw) {
469325
- t423 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469541
+ const upgradeCmd = getUpgradeCommand(installMethod);
469542
+ const canAuto = installMethod !== "binary" && updateAvailable;
469543
+ const ghostIc = icon("ghost");
469544
+ const sparkle = icon("sparkle");
469545
+ const checkIc = icon("check");
469546
+ const errorIc = icon("error");
469547
+ const arrowIc = icon("arrow_right");
469548
+ const ghostChar = tick < GHOST_FADE2.length ? GHOST_FADE2[tick] ?? "\u2591" : ghostIc;
469549
+ const wispFrame = WISP[tick % WISP.length] ?? "";
469550
+ const titleReady = tick >= 4;
469551
+ const vCurrent = tick < 6 ? garble(`v${current}`) : `v${current}`;
469552
+ const vLatest = tick < 7 ? garble(`v${latest ?? current}`) : `v${latest ?? current}`;
469553
+ if (phase === "success") {
469554
+ return /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Overlay, {
469555
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
469556
+ flexDirection: "column",
469557
+ borderStyle: "rounded",
469558
+ border: true,
469559
+ borderColor: t2.success,
469560
+ width: pw,
469561
+ children: [
469562
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469326
469563
  w: iw,
469327
- bg: POPUP_BG
469328
- }, undefined, false, undefined, this);
469329
- $5[87] = iw;
469330
- $5[88] = t423;
469331
- } else {
469332
- t423 = $5[88];
469333
- }
469334
- let t433;
469335
- if ($5[89] !== t2.success) {
469336
- t433 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469337
- bg: POPUP_BG,
469338
- children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469339
- fg: t2.success,
469340
- attributes: BOLD5,
469564
+ bg: bg2
469565
+ }, undefined, false, undefined, this),
469566
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469567
+ w: iw,
469568
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469569
+ bg: bg2,
469570
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469571
+ fg: t2.success,
469572
+ attributes: BOLD5,
469573
+ children: [
469574
+ checkIc,
469575
+ " Upgrade Complete!"
469576
+ ]
469577
+ }, undefined, true, undefined, this)
469578
+ }, undefined, false, undefined, this)
469579
+ }, undefined, false, undefined, this),
469580
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469581
+ w: iw,
469582
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469583
+ bg: bg2,
469584
+ fg: t2.brandDim,
469585
+ attributes: DIM4,
469341
469586
  children: [
469342
- checkIc,
469343
- " Upgrade Complete!"
469587
+ " ",
469588
+ "\u223F~\u223F"
469344
469589
  ]
469345
469590
  }, undefined, true, undefined, this)
469346
- }, undefined, false, undefined, this);
469347
- $5[89] = t2.success;
469348
- $5[90] = t433;
469349
- } else {
469350
- t433 = $5[90];
469351
- }
469352
- let t443;
469353
- if ($5[91] !== iw || $5[92] !== t433) {
469354
- t443 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469355
- w: iw,
469356
- children: t433
469357
- }, undefined, false, undefined, this);
469358
- $5[91] = iw;
469359
- $5[92] = t433;
469360
- $5[93] = t443;
469361
- } else {
469362
- t443 = $5[93];
469363
- }
469364
- let t453;
469365
- if ($5[94] !== t2.brandDim) {
469366
- t453 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469367
- bg: POPUP_BG,
469368
- fg: t2.brandDim,
469369
- attributes: DIM4,
469370
- children: [
469371
- " ",
469372
- "\u223F~\u223F"
469373
- ]
469374
- }, undefined, true, undefined, this);
469375
- $5[94] = t2.brandDim;
469376
- $5[95] = t453;
469377
- } else {
469378
- t453 = $5[95];
469379
- }
469380
- let t463;
469381
- if ($5[96] !== iw || $5[97] !== t453) {
469382
- t463 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469383
- w: iw,
469384
- children: t453
469385
- }, undefined, false, undefined, this);
469386
- $5[96] = iw;
469387
- $5[97] = t453;
469388
- $5[98] = t463;
469389
- } else {
469390
- t463 = $5[98];
469391
- }
469392
- let t473;
469393
- if ($5[99] !== iw || $5[100] !== t2.textFaint) {
469394
- t473 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
469591
+ }, undefined, false, undefined, this),
469592
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
469395
469593
  w: iw,
469396
- bg: POPUP_BG,
469594
+ bg: bg2,
469397
469595
  fg: t2.textFaint
469398
- }, undefined, false, undefined, this);
469399
- $5[99] = iw;
469400
- $5[100] = t2.textFaint;
469401
- $5[101] = t473;
469402
- } else {
469403
- t473 = $5[101];
469404
- }
469405
- let t483;
469406
- if ($5[102] !== iw) {
469407
- t483 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469596
+ }, undefined, false, undefined, this),
469597
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469408
469598
  w: iw,
469409
- bg: POPUP_BG
469410
- }, undefined, false, undefined, this);
469411
- $5[102] = iw;
469412
- $5[103] = t483;
469413
- } else {
469414
- t483 = $5[103];
469415
- }
469416
- let t493;
469417
- if ($5[104] !== t2.textPrimary) {
469418
- t493 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469419
- fg: t2.textPrimary,
469420
- children: [
469421
- " ",
469422
- "Successfully upgraded to "
469423
- ]
469424
- }, undefined, true, undefined, this);
469425
- $5[104] = t2.textPrimary;
469426
- $5[105] = t493;
469427
- } else {
469428
- t493 = $5[105];
469429
- }
469430
- let t503;
469431
- if ($5[106] !== latest || $5[107] !== t2.success) {
469432
- t503 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469433
- fg: t2.success,
469434
- attributes: BOLD5,
469435
- children: [
469436
- "v",
469437
- latest
469438
- ]
469439
- }, undefined, true, undefined, this);
469440
- $5[106] = latest;
469441
- $5[107] = t2.success;
469442
- $5[108] = t503;
469443
- } else {
469444
- t503 = $5[108];
469445
- }
469446
- let t513;
469447
- if ($5[109] !== t493 || $5[110] !== t503) {
469448
- t513 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469449
- bg: POPUP_BG,
469450
- children: [
469451
- t493,
469452
- t503
469453
- ]
469454
- }, undefined, true, undefined, this);
469455
- $5[109] = t493;
469456
- $5[110] = t503;
469457
- $5[111] = t513;
469458
- } else {
469459
- t513 = $5[111];
469460
- }
469461
- let t522;
469462
- if ($5[112] !== iw || $5[113] !== t513) {
469463
- t522 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469599
+ bg: bg2
469600
+ }, undefined, false, undefined, this),
469601
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469464
469602
  w: iw,
469465
- children: t513
469466
- }, undefined, false, undefined, this);
469467
- $5[112] = iw;
469468
- $5[113] = t513;
469469
- $5[114] = t522;
469470
- } else {
469471
- t522 = $5[114];
469472
- }
469473
- let t532;
469474
- if ($5[115] !== iw) {
469475
- t532 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469603
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469604
+ bg: bg2,
469605
+ children: [
469606
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469607
+ fg: t2.textPrimary,
469608
+ children: [
469609
+ " ",
469610
+ "Successfully upgraded to "
469611
+ ]
469612
+ }, undefined, true, undefined, this),
469613
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469614
+ fg: t2.success,
469615
+ attributes: BOLD5,
469616
+ children: [
469617
+ "v",
469618
+ latest
469619
+ ]
469620
+ }, undefined, true, undefined, this)
469621
+ ]
469622
+ }, undefined, true, undefined, this)
469623
+ }, undefined, false, undefined, this),
469624
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469476
469625
  w: iw,
469477
- bg: POPUP_BG
469478
- }, undefined, false, undefined, this);
469479
- $5[115] = iw;
469480
- $5[116] = t532;
469481
- } else {
469482
- t532 = $5[116];
469483
- }
469484
- let t542;
469485
- if ($5[117] !== t2.textSecondary) {
469486
- t542 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469487
- bg: POPUP_BG,
469488
- fg: t2.textSecondary,
469489
- attributes: ITALIC4,
469490
- children: [
469491
- " ",
469492
- "The forge has been retempered."
469493
- ]
469494
- }, undefined, true, undefined, this);
469495
- $5[117] = t2.textSecondary;
469496
- $5[118] = t542;
469497
- } else {
469498
- t542 = $5[118];
469499
- }
469500
- let t552;
469501
- if ($5[119] !== iw || $5[120] !== t542) {
469502
- t552 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469626
+ bg: bg2
469627
+ }, undefined, false, undefined, this),
469628
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469503
469629
  w: iw,
469504
- children: t542
469505
- }, undefined, false, undefined, this);
469506
- $5[119] = iw;
469507
- $5[120] = t542;
469508
- $5[121] = t552;
469509
- } else {
469510
- t552 = $5[121];
469511
- }
469512
- let t562;
469513
- if ($5[122] !== t2.textMuted) {
469514
- t562 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469515
- bg: POPUP_BG,
469516
- fg: t2.textMuted,
469517
- children: [
469518
- " ",
469519
- "Restart to wield the new blade?"
469520
- ]
469521
- }, undefined, true, undefined, this);
469522
- $5[122] = t2.textMuted;
469523
- $5[123] = t562;
469524
- } else {
469525
- t562 = $5[123];
469526
- }
469527
- let t572;
469528
- if ($5[124] !== iw || $5[125] !== t562) {
469529
- t572 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469630
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469631
+ bg: bg2,
469632
+ fg: t2.textSecondary,
469633
+ attributes: ITALIC4,
469634
+ children: [
469635
+ " ",
469636
+ "The forge has been retempered."
469637
+ ]
469638
+ }, undefined, true, undefined, this)
469639
+ }, undefined, false, undefined, this),
469640
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469530
469641
  w: iw,
469531
- children: t562
469532
- }, undefined, false, undefined, this);
469533
- $5[124] = iw;
469534
- $5[125] = t562;
469535
- $5[126] = t572;
469536
- } else {
469537
- t572 = $5[126];
469538
- }
469539
- let t582;
469540
- if ($5[127] !== iw) {
469541
- t582 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469642
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469643
+ bg: bg2,
469644
+ fg: t2.textMuted,
469645
+ children: [
469646
+ " ",
469647
+ "Restart to wield the new blade?"
469648
+ ]
469649
+ }, undefined, true, undefined, this)
469650
+ }, undefined, false, undefined, this),
469651
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469542
469652
  w: iw,
469543
- bg: POPUP_BG
469544
- }, undefined, false, undefined, this);
469545
- $5[127] = iw;
469546
- $5[128] = t582;
469547
- } else {
469548
- t582 = $5[128];
469549
- }
469550
- let t592;
469551
- if ($5[129] !== iw || $5[130] !== t2.textFaint) {
469552
- t592 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
469653
+ bg: bg2
469654
+ }, undefined, false, undefined, this),
469655
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
469553
469656
  w: iw,
469554
- bg: POPUP_BG,
469657
+ bg: bg2,
469555
469658
  fg: t2.textFaint
469556
- }, undefined, false, undefined, this);
469557
- $5[129] = iw;
469558
- $5[130] = t2.textFaint;
469559
- $5[131] = t592;
469560
- } else {
469561
- t592 = $5[131];
469562
- }
469563
- let t602;
469564
- if ($5[132] !== t2.success) {
469565
- t602 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469566
- fg: t2.success,
469567
- attributes: BOLD5,
469568
- children: [
469569
- " ",
469570
- arrowIc,
469571
- " [y]"
469572
- ]
469573
- }, undefined, true, undefined, this);
469574
- $5[132] = t2.success;
469575
- $5[133] = t602;
469576
- } else {
469577
- t602 = $5[133];
469578
- }
469579
- let t612;
469580
- if ($5[134] !== t2.textMuted) {
469581
- t612 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469582
- fg: t2.textMuted,
469583
- children: " restart now"
469584
- }, undefined, false, undefined, this);
469585
- $5[134] = t2.textMuted;
469586
- $5[135] = t612;
469587
- } else {
469588
- t612 = $5[135];
469589
- }
469590
- let t622;
469591
- let t63;
469592
- if ($5[136] !== t2.textFaint) {
469593
- t622 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469594
- fg: t2.textFaint,
469595
- children: " "
469596
- }, undefined, false, undefined, this);
469597
- t63 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469598
- fg: t2.textFaint,
469599
- children: "[n]"
469600
- }, undefined, false, undefined, this);
469601
- $5[136] = t2.textFaint;
469602
- $5[137] = t622;
469603
- $5[138] = t63;
469604
- } else {
469605
- t622 = $5[137];
469606
- t63 = $5[138];
469607
- }
469608
- let t64;
469609
- if ($5[139] !== t2.textMuted) {
469610
- t64 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469611
- fg: t2.textMuted,
469612
- children: " later"
469613
- }, undefined, false, undefined, this);
469614
- $5[139] = t2.textMuted;
469615
- $5[140] = t64;
469616
- } else {
469617
- t64 = $5[140];
469618
- }
469619
- let t65;
469620
- if ($5[141] !== t602 || $5[142] !== t612 || $5[143] !== t622 || $5[144] !== t63 || $5[145] !== t64) {
469621
- t65 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469622
- bg: POPUP_BG,
469623
- truncate: true,
469624
- children: [
469625
- t602,
469626
- t612,
469627
- t622,
469628
- t63,
469629
- t64
469630
- ]
469631
- }, undefined, true, undefined, this);
469632
- $5[141] = t602;
469633
- $5[142] = t612;
469634
- $5[143] = t622;
469635
- $5[144] = t63;
469636
- $5[145] = t64;
469637
- $5[146] = t65;
469638
- } else {
469639
- t65 = $5[146];
469640
- }
469641
- let t66;
469642
- if ($5[147] !== iw || $5[148] !== t65) {
469643
- t66 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469659
+ }, undefined, false, undefined, this),
469660
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469644
469661
  w: iw,
469645
- children: t65
469646
- }, undefined, false, undefined, this);
469647
- $5[147] = iw;
469648
- $5[148] = t65;
469649
- $5[149] = t66;
469650
- } else {
469651
- t66 = $5[149];
469652
- }
469653
- let t67;
469654
- if ($5[150] !== pw || $5[151] !== t2.success || $5[152] !== t423 || $5[153] !== t443 || $5[154] !== t463 || $5[155] !== t473 || $5[156] !== t483 || $5[157] !== t522 || $5[158] !== t532 || $5[159] !== t552 || $5[160] !== t572 || $5[161] !== t582 || $5[162] !== t592 || $5[163] !== t66) {
469655
- t67 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Overlay, {
469656
- children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
469657
- flexDirection: "column",
469658
- borderStyle: "rounded",
469659
- border: true,
469660
- borderColor: t2.success,
469661
- width: pw,
469662
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469663
+ bg: bg2,
469664
+ truncate: true,
469662
469665
  children: [
469663
- t423,
469664
- t443,
469665
- t463,
469666
- t473,
469667
- t483,
469668
- t522,
469669
- t532,
469670
- t552,
469671
- t572,
469672
- t582,
469673
- t592,
469674
- t66
469666
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469667
+ fg: t2.success,
469668
+ attributes: BOLD5,
469669
+ children: [
469670
+ " ",
469671
+ arrowIc,
469672
+ " ",
469673
+ "<Y>"
469674
+ ]
469675
+ }, undefined, true, undefined, this),
469676
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469677
+ fg: t2.textMuted,
469678
+ children: " restart now"
469679
+ }, undefined, false, undefined, this),
469680
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469681
+ fg: t2.textFaint,
469682
+ children: " "
469683
+ }, undefined, false, undefined, this),
469684
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469685
+ fg: t2.textFaint,
469686
+ children: "<N>"
469687
+ }, undefined, false, undefined, this),
469688
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469689
+ fg: t2.textMuted,
469690
+ children: " later"
469691
+ }, undefined, false, undefined, this)
469675
469692
  ]
469676
469693
  }, undefined, true, undefined, this)
469677
- }, undefined, false, undefined, this);
469678
- $5[150] = pw;
469679
- $5[151] = t2.success;
469680
- $5[152] = t423;
469681
- $5[153] = t443;
469682
- $5[154] = t463;
469683
- $5[155] = t473;
469684
- $5[156] = t483;
469685
- $5[157] = t522;
469686
- $5[158] = t532;
469687
- $5[159] = t552;
469688
- $5[160] = t572;
469689
- $5[161] = t582;
469690
- $5[162] = t592;
469691
- $5[163] = t66;
469692
- $5[164] = t67;
469693
- } else {
469694
- t67 = $5[164];
469695
- }
469696
- t34 = t67;
469697
- break bb0;
469698
- }
469699
- if (phase === "upgrading") {
469700
- const spin = SPINNER2[spinIdx % SPINNER2.length];
469701
- const quip = UPGRADE_QUIPS[quipIdx % UPGRADE_QUIPS.length] ?? "";
469702
- let T22;
469703
- let t423;
469704
- let t433;
469705
- let t443;
469706
- let t453;
469707
- let t463;
469708
- let t473;
469709
- let t483;
469710
- let t493;
469711
- let t503;
469712
- let t513;
469713
- let t522;
469714
- let t532;
469715
- let t542;
469716
- let t552;
469717
- let t562;
469718
- let t572;
469719
- let t582;
469720
- if ($5[165] !== iw || $5[166] !== logH || $5[167] !== logLines || $5[168] !== pw || $5[169] !== quip || $5[170] !== spin || $5[171] !== t2.brand || $5[172] !== t2.brandAlt || $5[173] !== t2.brandDim || $5[174] !== t2.textFaint || $5[175] !== t2.textSecondary) {
469721
- const visibleLog = logLines.slice(-logH);
469722
- T22 = Overlay;
469723
- t463 = "column";
469724
- t473 = "rounded";
469725
- t483 = true;
469726
- t493 = t2.brand;
469727
- t503 = pw;
469728
- if ($5[194] !== iw) {
469729
- t513 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469730
- w: iw,
469731
- bg: POPUP_BG
469732
- }, undefined, false, undefined, this);
469733
- $5[194] = iw;
469734
- $5[195] = t513;
469735
- } else {
469736
- t513 = $5[195];
469737
- }
469738
- let t593;
469739
- if ($5[196] !== t2.brand) {
469740
- t593 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469741
- bg: POPUP_BG,
469694
+ }, undefined, false, undefined, this)
469695
+ ]
469696
+ }, undefined, true, undefined, this)
469697
+ }, undefined, false, undefined, this);
469698
+ }
469699
+ if (phase === "upgrading") {
469700
+ const spin = SPINNER2[spinIdx % SPINNER2.length];
469701
+ const quip = UPGRADE_QUIPS[quipIdx % UPGRADE_QUIPS.length] ?? "";
469702
+ const visibleLog = logLines.slice(-logH);
469703
+ return /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Overlay, {
469704
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
469705
+ flexDirection: "column",
469706
+ borderStyle: "rounded",
469707
+ border: true,
469708
+ borderColor: t2.brand,
469709
+ width: pw,
469710
+ children: [
469711
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469712
+ w: iw,
469713
+ bg: bg2
469714
+ }, undefined, false, undefined, this),
469715
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469716
+ w: iw,
469717
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469718
+ bg: bg2,
469742
469719
  fg: t2.brand,
469743
469720
  attributes: BOLD5,
469744
469721
  children: [
469745
469722
  ghostIc,
469746
469723
  " Upgrading SoulForge\u2026"
469747
469724
  ]
469748
- }, undefined, true, undefined, this);
469749
- $5[196] = t2.brand;
469750
- $5[197] = t593;
469751
- } else {
469752
- t593 = $5[197];
469753
- }
469754
- if ($5[198] !== iw || $5[199] !== t593) {
469755
- t522 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469756
- w: iw,
469757
- children: t593
469758
- }, undefined, false, undefined, this);
469759
- $5[198] = iw;
469760
- $5[199] = t593;
469761
- $5[200] = t522;
469762
- } else {
469763
- t522 = $5[200];
469764
- }
469765
- let t603;
469766
- if ($5[201] !== t2.brandDim) {
469767
- t603 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469768
- bg: POPUP_BG,
469725
+ }, undefined, true, undefined, this)
469726
+ }, undefined, false, undefined, this),
469727
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469728
+ w: iw,
469729
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469730
+ bg: bg2,
469769
469731
  fg: t2.brandDim,
469770
469732
  attributes: DIM4,
469771
469733
  children: [
469772
469734
  " ",
469773
469735
  "\u223F~\u223F"
469774
469736
  ]
469775
- }, undefined, true, undefined, this);
469776
- $5[201] = t2.brandDim;
469777
- $5[202] = t603;
469778
- } else {
469779
- t603 = $5[202];
469780
- }
469781
- if ($5[203] !== iw || $5[204] !== t603) {
469782
- t532 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469783
- w: iw,
469784
- children: t603
469785
- }, undefined, false, undefined, this);
469786
- $5[203] = iw;
469787
- $5[204] = t603;
469788
- $5[205] = t532;
469789
- } else {
469790
- t532 = $5[205];
469791
- }
469792
- if ($5[206] !== iw || $5[207] !== t2.textFaint) {
469793
- t542 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
469794
- w: iw,
469795
- bg: POPUP_BG,
469796
- fg: t2.textFaint
469797
- }, undefined, false, undefined, this);
469798
- $5[206] = iw;
469799
- $5[207] = t2.textFaint;
469800
- $5[208] = t542;
469801
- } else {
469802
- t542 = $5[208];
469803
- }
469804
- if ($5[209] !== iw) {
469805
- t552 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469806
- w: iw,
469807
- bg: POPUP_BG
469808
- }, undefined, false, undefined, this);
469809
- $5[209] = iw;
469810
- $5[210] = t552;
469811
- } else {
469812
- t552 = $5[210];
469813
- }
469814
- let t613;
469815
- if ($5[211] !== spin || $5[212] !== t2.brand) {
469816
- t613 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469817
- fg: t2.brand,
469818
- children: [
469819
- " ",
469820
- spin
469821
- ]
469822
- }, undefined, true, undefined, this);
469823
- $5[211] = spin;
469824
- $5[212] = t2.brand;
469825
- $5[213] = t613;
469826
- } else {
469827
- t613 = $5[213];
469828
- }
469829
- const t623 = t2.brandAlt;
469830
- const t63 = iw - 8;
469831
- let t64;
469832
- if ($5[214] !== quip || $5[215] !== t63) {
469833
- t64 = trunc(quip, t63);
469834
- $5[214] = quip;
469835
- $5[215] = t63;
469836
- $5[216] = t64;
469837
- } else {
469838
- t64 = $5[216];
469839
- }
469840
- let t65;
469841
- if ($5[217] !== t2.brandAlt || $5[218] !== t64) {
469842
- t65 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469843
- fg: t623,
469844
- attributes: ITALIC4,
469845
- children: [
469846
- " ",
469847
- t64
469848
- ]
469849
- }, undefined, true, undefined, this);
469850
- $5[217] = t2.brandAlt;
469851
- $5[218] = t64;
469852
- $5[219] = t65;
469853
- } else {
469854
- t65 = $5[219];
469855
- }
469856
- let t66;
469857
- if ($5[220] !== t613 || $5[221] !== t65) {
469858
- t66 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469859
- bg: POPUP_BG,
469737
+ }, undefined, true, undefined, this)
469738
+ }, undefined, false, undefined, this),
469739
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
469740
+ w: iw,
469741
+ bg: bg2,
469742
+ fg: t2.textFaint
469743
+ }, undefined, false, undefined, this),
469744
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469745
+ w: iw,
469746
+ bg: bg2
469747
+ }, undefined, false, undefined, this),
469748
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469749
+ w: iw,
469750
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469751
+ bg: bg2,
469860
469752
  children: [
469861
- t613,
469862
- t65
469753
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469754
+ fg: t2.brand,
469755
+ children: [
469756
+ " ",
469757
+ spin
469758
+ ]
469759
+ }, undefined, true, undefined, this),
469760
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469761
+ fg: t2.brandAlt,
469762
+ attributes: ITALIC4,
469763
+ children: [
469764
+ " ",
469765
+ trunc(quip, iw - 8)
469766
+ ]
469767
+ }, undefined, true, undefined, this)
469863
469768
  ]
469864
- }, undefined, true, undefined, this);
469865
- $5[220] = t613;
469866
- $5[221] = t65;
469867
- $5[222] = t66;
469868
- } else {
469869
- t66 = $5[222];
469870
- }
469871
- if ($5[223] !== iw || $5[224] !== t66) {
469872
- t562 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469873
- w: iw,
469874
- children: t66
469875
- }, undefined, false, undefined, this);
469876
- $5[223] = iw;
469877
- $5[224] = t66;
469878
- $5[225] = t562;
469879
- } else {
469880
- t562 = $5[225];
469881
- }
469882
- if ($5[226] !== iw) {
469883
- t572 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469769
+ }, undefined, true, undefined, this)
469770
+ }, undefined, false, undefined, this),
469771
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469772
+ w: iw,
469773
+ bg: bg2
469774
+ }, undefined, false, undefined, this),
469775
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
469776
+ w: iw,
469777
+ bg: bg2,
469778
+ fg: t2.textFaint
469779
+ }, undefined, false, undefined, this),
469780
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
469781
+ flexDirection: "column",
469782
+ height: logH,
469783
+ overflow: "hidden",
469784
+ children: visibleLog.length === 0 ? /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469884
469785
  w: iw,
469885
- bg: POPUP_BG
469886
- }, undefined, false, undefined, this);
469887
- $5[226] = iw;
469888
- $5[227] = t572;
469889
- } else {
469890
- t572 = $5[227];
469891
- }
469892
- if ($5[228] !== iw || $5[229] !== t2.textFaint) {
469893
- t582 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
469786
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469787
+ bg: bg2,
469788
+ fg: t2.textFaint,
469789
+ children: [
469790
+ " ",
469791
+ "Waiting for output\u2026"
469792
+ ]
469793
+ }, undefined, true, undefined, this)
469794
+ }, undefined, false, undefined, this) : visibleLog.map((line2, i_1) => /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469894
469795
  w: iw,
469895
- bg: POPUP_BG,
469896
- fg: t2.textFaint
469897
- }, undefined, false, undefined, this);
469898
- $5[228] = iw;
469899
- $5[229] = t2.textFaint;
469900
- $5[230] = t582;
469901
- } else {
469902
- t582 = $5[230];
469903
- }
469904
- t423 = "column";
469905
- t433 = logH;
469906
- t443 = "hidden";
469907
- t453 = visibleLog.length === 0 ? /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469796
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469797
+ bg: bg2,
469798
+ fg: i_1 === visibleLog.length - 1 ? t2.textSecondary : t2.textFaint,
469799
+ children: [
469800
+ " ",
469801
+ trunc(line2, iw - 6)
469802
+ ]
469803
+ }, undefined, true, undefined, this)
469804
+ }, String(i_1), false, undefined, this))
469805
+ }, undefined, false, undefined, this),
469806
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
469807
+ w: iw,
469808
+ bg: bg2,
469809
+ fg: t2.textFaint
469810
+ }, undefined, false, undefined, this)
469811
+ ]
469812
+ }, undefined, true, undefined, this)
469813
+ }, undefined, false, undefined, this);
469814
+ }
469815
+ if (phase === "failed") {
469816
+ return /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Overlay, {
469817
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
469818
+ flexDirection: "column",
469819
+ borderStyle: "rounded",
469820
+ border: true,
469821
+ borderColor: t2.brandSecondary,
469822
+ width: pw,
469823
+ children: [
469824
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469825
+ w: iw,
469826
+ bg: bg2
469827
+ }, undefined, false, undefined, this),
469828
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469908
469829
  w: iw,
469909
469830
  children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469910
- bg: POPUP_BG,
469911
- fg: t2.textFaint,
469831
+ bg: bg2,
469832
+ fg: t2.brandSecondary,
469833
+ attributes: BOLD5,
469912
469834
  children: [
469913
- " ",
469914
- "Waiting for output\u2026"
469835
+ errorIc,
469836
+ " The Forge Sputtered"
469915
469837
  ]
469916
469838
  }, undefined, true, undefined, this)
469917
- }, undefined, false, undefined, this) : visibleLog.map((line2, i_1) => /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469839
+ }, undefined, false, undefined, this),
469840
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469918
469841
  w: iw,
469919
469842
  children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469920
- bg: POPUP_BG,
469921
- fg: i_1 === visibleLog.length - 1 ? t2.textSecondary : t2.textFaint,
469843
+ bg: bg2,
469844
+ fg: t2.brandDim,
469845
+ attributes: DIM4,
469922
469846
  children: [
469923
469847
  " ",
469924
- trunc(line2, iw - 6)
469848
+ "\u223F~\u223F"
469925
469849
  ]
469926
469850
  }, undefined, true, undefined, this)
469927
- }, String(i_1), false, undefined, this));
469928
- $5[165] = iw;
469929
- $5[166] = logH;
469930
- $5[167] = logLines;
469931
- $5[168] = pw;
469932
- $5[169] = quip;
469933
- $5[170] = spin;
469934
- $5[171] = t2.brand;
469935
- $5[172] = t2.brandAlt;
469936
- $5[173] = t2.brandDim;
469937
- $5[174] = t2.textFaint;
469938
- $5[175] = t2.textSecondary;
469939
- $5[176] = T22;
469940
- $5[177] = t423;
469941
- $5[178] = t433;
469942
- $5[179] = t443;
469943
- $5[180] = t453;
469944
- $5[181] = t463;
469945
- $5[182] = t473;
469946
- $5[183] = t483;
469947
- $5[184] = t493;
469948
- $5[185] = t503;
469949
- $5[186] = t513;
469950
- $5[187] = t522;
469951
- $5[188] = t532;
469952
- $5[189] = t542;
469953
- $5[190] = t552;
469954
- $5[191] = t562;
469955
- $5[192] = t572;
469956
- $5[193] = t582;
469957
- } else {
469958
- T22 = $5[176];
469959
- t423 = $5[177];
469960
- t433 = $5[178];
469961
- t443 = $5[179];
469962
- t453 = $5[180];
469963
- t463 = $5[181];
469964
- t473 = $5[182];
469965
- t483 = $5[183];
469966
- t493 = $5[184];
469967
- t503 = $5[185];
469968
- t513 = $5[186];
469969
- t522 = $5[187];
469970
- t532 = $5[188];
469971
- t542 = $5[189];
469972
- t552 = $5[190];
469973
- t562 = $5[191];
469974
- t572 = $5[192];
469975
- t582 = $5[193];
469976
- }
469977
- let t592;
469978
- if ($5[231] !== t423 || $5[232] !== t433 || $5[233] !== t443 || $5[234] !== t453) {
469979
- t592 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
469980
- flexDirection: t423,
469981
- height: t433,
469982
- overflow: t443,
469983
- children: t453
469984
- }, undefined, false, undefined, this);
469985
- $5[231] = t423;
469986
- $5[232] = t433;
469987
- $5[233] = t443;
469988
- $5[234] = t453;
469989
- $5[235] = t592;
469990
- } else {
469991
- t592 = $5[235];
469992
- }
469993
- let t602;
469994
- if ($5[236] !== iw || $5[237] !== t2.textFaint) {
469995
- t602 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
469996
- w: iw,
469997
- bg: POPUP_BG,
469998
- fg: t2.textFaint
469999
- }, undefined, false, undefined, this);
470000
- $5[236] = iw;
470001
- $5[237] = t2.textFaint;
470002
- $5[238] = t602;
470003
- } else {
470004
- t602 = $5[238];
470005
- }
470006
- let t612;
470007
- if ($5[239] !== t463 || $5[240] !== t473 || $5[241] !== t483 || $5[242] !== t493 || $5[243] !== t503 || $5[244] !== t513 || $5[245] !== t522 || $5[246] !== t532 || $5[247] !== t542 || $5[248] !== t552 || $5[249] !== t562 || $5[250] !== t572 || $5[251] !== t582 || $5[252] !== t592 || $5[253] !== t602) {
470008
- t612 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
470009
- flexDirection: t463,
470010
- borderStyle: t473,
470011
- border: t483,
470012
- borderColor: t493,
470013
- width: t503,
470014
- children: [
470015
- t513,
470016
- t522,
470017
- t532,
470018
- t542,
470019
- t552,
470020
- t562,
470021
- t572,
470022
- t582,
470023
- t592,
470024
- t602
470025
- ]
470026
- }, undefined, true, undefined, this);
470027
- $5[239] = t463;
470028
- $5[240] = t473;
470029
- $5[241] = t483;
470030
- $5[242] = t493;
470031
- $5[243] = t503;
470032
- $5[244] = t513;
470033
- $5[245] = t522;
470034
- $5[246] = t532;
470035
- $5[247] = t542;
470036
- $5[248] = t552;
470037
- $5[249] = t562;
470038
- $5[250] = t572;
470039
- $5[251] = t582;
470040
- $5[252] = t592;
470041
- $5[253] = t602;
470042
- $5[254] = t612;
470043
- } else {
470044
- t612 = $5[254];
470045
- }
470046
- let t622;
470047
- if ($5[255] !== T22 || $5[256] !== t612) {
470048
- t622 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(T22, {
470049
- children: t612
470050
- }, undefined, false, undefined, this);
470051
- $5[255] = T22;
470052
- $5[256] = t612;
470053
- $5[257] = t622;
470054
- } else {
470055
- t622 = $5[257];
470056
- }
470057
- t34 = t622;
470058
- break bb0;
470059
- }
470060
- if (phase === "failed") {
470061
- const t423 = t2.brandSecondary;
470062
- let t433;
470063
- if ($5[258] !== iw) {
470064
- t433 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470065
- w: iw,
470066
- bg: POPUP_BG
470067
- }, undefined, false, undefined, this);
470068
- $5[258] = iw;
470069
- $5[259] = t433;
470070
- } else {
470071
- t433 = $5[259];
470072
- }
470073
- let t443;
470074
- if ($5[260] !== t2.brandSecondary) {
470075
- t443 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470076
- bg: POPUP_BG,
470077
- fg: t2.brandSecondary,
470078
- attributes: BOLD5,
470079
- children: [
470080
- errorIc,
470081
- " The Forge Sputtered"
470082
- ]
470083
- }, undefined, true, undefined, this);
470084
- $5[260] = t2.brandSecondary;
470085
- $5[261] = t443;
470086
- } else {
470087
- t443 = $5[261];
470088
- }
470089
- let t453;
470090
- if ($5[262] !== iw || $5[263] !== t443) {
470091
- t453 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470092
- w: iw,
470093
- children: t443
470094
- }, undefined, false, undefined, this);
470095
- $5[262] = iw;
470096
- $5[263] = t443;
470097
- $5[264] = t453;
470098
- } else {
470099
- t453 = $5[264];
470100
- }
470101
- let t463;
470102
- if ($5[265] !== t2.brandDim) {
470103
- t463 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470104
- bg: POPUP_BG,
470105
- fg: t2.brandDim,
470106
- attributes: DIM4,
470107
- children: [
470108
- " ",
470109
- "\u223F~\u223F"
470110
- ]
470111
- }, undefined, true, undefined, this);
470112
- $5[265] = t2.brandDim;
470113
- $5[266] = t463;
470114
- } else {
470115
- t463 = $5[266];
470116
- }
470117
- let t473;
470118
- if ($5[267] !== iw || $5[268] !== t463) {
470119
- t473 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470120
- w: iw,
470121
- children: t463
470122
- }, undefined, false, undefined, this);
470123
- $5[267] = iw;
470124
- $5[268] = t463;
470125
- $5[269] = t473;
470126
- } else {
470127
- t473 = $5[269];
470128
- }
470129
- let t483;
470130
- if ($5[270] !== iw || $5[271] !== t2.textFaint) {
470131
- t483 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
469851
+ }, undefined, false, undefined, this),
469852
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
470132
469853
  w: iw,
470133
- bg: POPUP_BG,
469854
+ bg: bg2,
470134
469855
  fg: t2.textFaint
470135
- }, undefined, false, undefined, this);
470136
- $5[270] = iw;
470137
- $5[271] = t2.textFaint;
470138
- $5[272] = t483;
470139
- } else {
470140
- t483 = $5[272];
470141
- }
470142
- let t493;
470143
- if ($5[273] !== iw) {
470144
- t493 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469856
+ }, undefined, false, undefined, this),
469857
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470145
469858
  w: iw,
470146
- bg: POPUP_BG
470147
- }, undefined, false, undefined, this);
470148
- $5[273] = iw;
470149
- $5[274] = t493;
470150
- } else {
470151
- t493 = $5[274];
470152
- }
470153
- const t503 = t2.brandSecondary;
470154
- const t513 = iw - 6;
470155
- let t522;
470156
- if ($5[275] !== errorMsg || $5[276] !== t513) {
470157
- t522 = trunc(errorMsg, t513);
470158
- $5[275] = errorMsg;
470159
- $5[276] = t513;
470160
- $5[277] = t522;
470161
- } else {
470162
- t522 = $5[277];
470163
- }
470164
- let t532;
470165
- if ($5[278] !== t2.brandSecondary || $5[279] !== t522) {
470166
- t532 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470167
- bg: POPUP_BG,
470168
- fg: t503,
470169
- children: [
470170
- " ",
470171
- t522
470172
- ]
470173
- }, undefined, true, undefined, this);
470174
- $5[278] = t2.brandSecondary;
470175
- $5[279] = t522;
470176
- $5[280] = t532;
470177
- } else {
470178
- t532 = $5[280];
470179
- }
470180
- let t542;
470181
- if ($5[281] !== iw || $5[282] !== t532) {
470182
- t542 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469859
+ bg: bg2
469860
+ }, undefined, false, undefined, this),
469861
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470183
469862
  w: iw,
470184
- children: t532
470185
- }, undefined, false, undefined, this);
470186
- $5[281] = iw;
470187
- $5[282] = t532;
470188
- $5[283] = t542;
470189
- } else {
470190
- t542 = $5[283];
470191
- }
470192
- let t552;
470193
- if ($5[284] !== iw) {
470194
- t552 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469863
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469864
+ bg: bg2,
469865
+ fg: t2.brandSecondary,
469866
+ children: [
469867
+ " ",
469868
+ trunc(errorMsg, iw - 6)
469869
+ ]
469870
+ }, undefined, true, undefined, this)
469871
+ }, undefined, false, undefined, this),
469872
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470195
469873
  w: iw,
470196
- bg: POPUP_BG
470197
- }, undefined, false, undefined, this);
470198
- $5[284] = iw;
470199
- $5[285] = t552;
470200
- } else {
470201
- t552 = $5[285];
470202
- }
470203
- let t562;
470204
- if ($5[286] !== t2.textMuted) {
470205
- t562 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470206
- bg: POPUP_BG,
470207
- fg: t2.textMuted,
470208
- attributes: ITALIC4,
470209
- children: [
470210
- " ",
470211
- "The spirits suggest a manual approach:"
470212
- ]
470213
- }, undefined, true, undefined, this);
470214
- $5[286] = t2.textMuted;
470215
- $5[287] = t562;
470216
- } else {
470217
- t562 = $5[287];
470218
- }
470219
- let t572;
470220
- if ($5[288] !== iw || $5[289] !== t562) {
470221
- t572 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469874
+ bg: bg2
469875
+ }, undefined, false, undefined, this),
469876
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470222
469877
  w: iw,
470223
- children: t562
470224
- }, undefined, false, undefined, this);
470225
- $5[288] = iw;
470226
- $5[289] = t562;
470227
- $5[290] = t572;
470228
- } else {
470229
- t572 = $5[290];
470230
- }
470231
- let t582;
470232
- if ($5[291] !== iw) {
470233
- t582 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469878
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469879
+ bg: bg2,
469880
+ fg: t2.textMuted,
469881
+ attributes: ITALIC4,
469882
+ children: [
469883
+ " ",
469884
+ "The spirits suggest a manual approach:"
469885
+ ]
469886
+ }, undefined, true, undefined, this)
469887
+ }, undefined, false, undefined, this),
469888
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470234
469889
  w: iw,
470235
- bg: POPUP_BG
470236
- }, undefined, false, undefined, this);
470237
- $5[291] = iw;
470238
- $5[292] = t582;
470239
- } else {
470240
- t582 = $5[292];
470241
- }
470242
- let t592;
470243
- if ($5[293] !== t2.textFaint) {
470244
- t592 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470245
- fg: t2.textFaint,
470246
- children: [
470247
- " ",
470248
- arrowIc,
470249
- " "
470250
- ]
470251
- }, undefined, true, undefined, this);
470252
- $5[293] = t2.textFaint;
470253
- $5[294] = t592;
470254
- } else {
470255
- t592 = $5[294];
470256
- }
470257
- const t602 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470258
- bg: POPUP_BG,
470259
- children: [
470260
- t592,
470261
- /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470262
- fg: t2.brand,
470263
- attributes: BOLD5,
470264
- children: trunc(upgradeCmd, iw - 10)
470265
- }, undefined, false, undefined, this)
470266
- ]
470267
- }, undefined, true, undefined, this);
470268
- let t612;
470269
- if ($5[295] !== iw || $5[296] !== t602) {
470270
- t612 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469890
+ bg: bg2
469891
+ }, undefined, false, undefined, this),
469892
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470271
469893
  w: iw,
470272
- children: t602
470273
- }, undefined, false, undefined, this);
470274
- $5[295] = iw;
470275
- $5[296] = t602;
470276
- $5[297] = t612;
470277
- } else {
470278
- t612 = $5[297];
470279
- }
470280
- let t622;
470281
- if ($5[298] !== iw) {
470282
- t622 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469894
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469895
+ bg: bg2,
469896
+ children: [
469897
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469898
+ fg: t2.textFaint,
469899
+ children: [
469900
+ " ",
469901
+ arrowIc,
469902
+ " "
469903
+ ]
469904
+ }, undefined, true, undefined, this),
469905
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469906
+ fg: t2.brand,
469907
+ attributes: BOLD5,
469908
+ children: trunc(upgradeCmd, iw - 10)
469909
+ }, undefined, false, undefined, this)
469910
+ ]
469911
+ }, undefined, true, undefined, this)
469912
+ }, undefined, false, undefined, this),
469913
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470283
469914
  w: iw,
470284
- bg: POPUP_BG
470285
- }, undefined, false, undefined, this);
470286
- $5[298] = iw;
470287
- $5[299] = t622;
470288
- } else {
470289
- t622 = $5[299];
470290
- }
470291
- let t63;
470292
- if ($5[300] !== iw || $5[301] !== t2.textFaint) {
470293
- t63 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
469915
+ bg: bg2
469916
+ }, undefined, false, undefined, this),
469917
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
470294
469918
  w: iw,
470295
- bg: POPUP_BG,
469919
+ bg: bg2,
470296
469920
  fg: t2.textFaint
470297
- }, undefined, false, undefined, this);
470298
- $5[300] = iw;
470299
- $5[301] = t2.textFaint;
470300
- $5[302] = t63;
470301
- } else {
470302
- t63 = $5[302];
470303
- }
470304
- let t64;
470305
- if ($5[303] !== t2.textMuted) {
470306
- t64 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470307
- bg: POPUP_BG,
470308
- fg: t2.textMuted,
470309
- children: [
470310
- " ",
470311
- "[esc] back"
470312
- ]
470313
- }, undefined, true, undefined, this);
470314
- $5[303] = t2.textMuted;
470315
- $5[304] = t64;
470316
- } else {
470317
- t64 = $5[304];
470318
- }
470319
- let t65;
470320
- if ($5[305] !== iw || $5[306] !== t64) {
470321
- t65 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469921
+ }, undefined, false, undefined, this),
469922
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470322
469923
  w: iw,
470323
- children: t64
470324
- }, undefined, false, undefined, this);
470325
- $5[305] = iw;
470326
- $5[306] = t64;
470327
- $5[307] = t65;
470328
- } else {
470329
- t65 = $5[307];
470330
- }
470331
- let t66;
470332
- if ($5[308] !== pw || $5[309] !== t2.brandSecondary || $5[310] !== t433 || $5[311] !== t453 || $5[312] !== t473 || $5[313] !== t483 || $5[314] !== t493 || $5[315] !== t542 || $5[316] !== t552 || $5[317] !== t572 || $5[318] !== t582 || $5[319] !== t612 || $5[320] !== t622 || $5[321] !== t63 || $5[322] !== t65) {
470333
- t66 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Overlay, {
470334
- children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
470335
- flexDirection: "column",
470336
- borderStyle: "rounded",
470337
- border: true,
470338
- borderColor: t423,
470339
- width: pw,
469924
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469925
+ bg: bg2,
469926
+ fg: t2.textMuted,
470340
469927
  children: [
470341
- t433,
470342
- t453,
470343
- t473,
470344
- t483,
470345
- t493,
470346
- t542,
470347
- t552,
470348
- t572,
470349
- t582,
470350
- t612,
470351
- t622,
470352
- t63,
470353
- t65
469928
+ " ",
469929
+ "<Esc>",
469930
+ " back"
470354
469931
  ]
470355
469932
  }, undefined, true, undefined, this)
470356
- }, undefined, false, undefined, this);
470357
- $5[308] = pw;
470358
- $5[309] = t2.brandSecondary;
470359
- $5[310] = t433;
470360
- $5[311] = t453;
470361
- $5[312] = t473;
470362
- $5[313] = t483;
470363
- $5[314] = t493;
470364
- $5[315] = t542;
470365
- $5[316] = t552;
470366
- $5[317] = t572;
470367
- $5[318] = t582;
470368
- $5[319] = t612;
470369
- $5[320] = t622;
470370
- $5[321] = t63;
470371
- $5[322] = t65;
470372
- $5[323] = t66;
470373
- } else {
470374
- t66 = $5[323];
470375
- }
470376
- t34 = t66;
470377
- break bb0;
470378
- }
470379
- if (!updateAvailable) {
470380
- const quip_0 = LATEST_QUIPS[Math.floor(Date.now() / 60000) % LATEST_QUIPS.length] ?? "";
470381
- const t423 = t2.brand;
470382
- let t433;
470383
- if ($5[324] !== iw) {
470384
- t433 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469933
+ }, undefined, false, undefined, this)
469934
+ ]
469935
+ }, undefined, true, undefined, this)
469936
+ }, undefined, false, undefined, this);
469937
+ }
469938
+ if (!updateAvailable) {
469939
+ const quip_0 = LATEST_QUIPS[Math.floor(Date.now() / 60000) % LATEST_QUIPS.length] ?? "";
469940
+ const clErrorQuip = CHANGELOG_ERROR_QUIPS[Math.floor(Date.now() / 60000) % CHANGELOG_ERROR_QUIPS.length] ?? "";
469941
+ return /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Overlay, {
469942
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
469943
+ flexDirection: "column",
469944
+ borderStyle: "rounded",
469945
+ border: true,
469946
+ borderColor: t2.brand,
469947
+ width: pw,
469948
+ children: [
469949
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470385
469950
  w: iw,
470386
- bg: POPUP_BG
470387
- }, undefined, false, undefined, this);
470388
- $5[324] = iw;
470389
- $5[325] = t433;
470390
- } else {
470391
- t433 = $5[325];
470392
- }
470393
- let t443;
470394
- if ($5[326] !== ghostChar || $5[327] !== t2.brand) {
470395
- t443 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470396
- fg: t2.brand,
470397
- attributes: BOLD5,
470398
- children: [
470399
- " ",
470400
- ghostChar,
470401
- " "
470402
- ]
470403
- }, undefined, true, undefined, this);
470404
- $5[326] = ghostChar;
470405
- $5[327] = t2.brand;
470406
- $5[328] = t443;
470407
- } else {
470408
- t443 = $5[328];
470409
- }
470410
- let t453;
470411
- if ($5[329] !== titleReady) {
470412
- t453 = titleReady ? "SoulForge" : garble("SoulForge");
470413
- $5[329] = titleReady;
470414
- $5[330] = t453;
470415
- } else {
470416
- t453 = $5[330];
470417
- }
470418
- let t463;
470419
- if ($5[331] !== t2.textPrimary || $5[332] !== t453) {
470420
- t463 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470421
- fg: t2.textPrimary,
470422
- attributes: BOLD5,
470423
- children: t453
470424
- }, undefined, false, undefined, this);
470425
- $5[331] = t2.textPrimary;
470426
- $5[332] = t453;
470427
- $5[333] = t463;
470428
- } else {
470429
- t463 = $5[333];
470430
- }
470431
- let t473;
470432
- if ($5[334] !== t443 || $5[335] !== t463) {
470433
- t473 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470434
- bg: POPUP_BG,
470435
- children: [
470436
- t443,
470437
- t463
470438
- ]
470439
- }, undefined, true, undefined, this);
470440
- $5[334] = t443;
470441
- $5[335] = t463;
470442
- $5[336] = t473;
470443
- } else {
470444
- t473 = $5[336];
470445
- }
470446
- let t483;
470447
- if ($5[337] !== iw || $5[338] !== t473) {
470448
- t483 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469951
+ bg: bg2
469952
+ }, undefined, false, undefined, this),
469953
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470449
469954
  w: iw,
470450
- children: t473
470451
- }, undefined, false, undefined, this);
470452
- $5[337] = iw;
470453
- $5[338] = t473;
470454
- $5[339] = t483;
470455
- } else {
470456
- t483 = $5[339];
470457
- }
470458
- let t493;
470459
- if ($5[340] !== t2.brandDim || $5[341] !== wispFrame) {
470460
- t493 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470461
- bg: POPUP_BG,
470462
- fg: t2.brandDim,
470463
- attributes: DIM4,
470464
- children: [
470465
- " ",
470466
- wispFrame
470467
- ]
470468
- }, undefined, true, undefined, this);
470469
- $5[340] = t2.brandDim;
470470
- $5[341] = wispFrame;
470471
- $5[342] = t493;
470472
- } else {
470473
- t493 = $5[342];
470474
- }
470475
- let t503;
470476
- if ($5[343] !== iw || $5[344] !== t493) {
470477
- t503 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469955
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469956
+ bg: bg2,
469957
+ children: [
469958
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469959
+ fg: t2.brand,
469960
+ attributes: BOLD5,
469961
+ children: [
469962
+ " ",
469963
+ ghostChar,
469964
+ " "
469965
+ ]
469966
+ }, undefined, true, undefined, this),
469967
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
469968
+ fg: t2.textPrimary,
469969
+ attributes: BOLD5,
469970
+ children: titleReady ? "SoulForge" : garble("SoulForge")
469971
+ }, undefined, false, undefined, this)
469972
+ ]
469973
+ }, undefined, true, undefined, this)
469974
+ }, undefined, false, undefined, this),
469975
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470478
469976
  w: iw,
470479
- children: t493
470480
- }, undefined, false, undefined, this);
470481
- $5[343] = iw;
470482
- $5[344] = t493;
470483
- $5[345] = t503;
470484
- } else {
470485
- t503 = $5[345];
470486
- }
470487
- let t513;
470488
- if ($5[346] !== iw || $5[347] !== t2.textFaint) {
470489
- t513 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
469977
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469978
+ bg: bg2,
469979
+ fg: t2.brandDim,
469980
+ attributes: DIM4,
469981
+ children: [
469982
+ " ",
469983
+ wispFrame
469984
+ ]
469985
+ }, undefined, true, undefined, this)
469986
+ }, undefined, false, undefined, this),
469987
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
470490
469988
  w: iw,
470491
- bg: POPUP_BG,
469989
+ bg: bg2,
470492
469990
  fg: t2.textFaint
470493
- }, undefined, false, undefined, this);
470494
- $5[346] = iw;
470495
- $5[347] = t2.textFaint;
470496
- $5[348] = t513;
470497
- } else {
470498
- t513 = $5[348];
470499
- }
470500
- let t522;
470501
- if ($5[349] !== iw) {
470502
- t522 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
469991
+ }, undefined, false, undefined, this),
469992
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470503
469993
  w: iw,
470504
- bg: POPUP_BG
470505
- }, undefined, false, undefined, this);
470506
- $5[349] = iw;
470507
- $5[350] = t522;
470508
- } else {
470509
- t522 = $5[350];
470510
- }
470511
- const t532 = t2.textMuted;
470512
- let t542;
470513
- if ($5[351] === Symbol.for("react.memo_cache_sentinel")) {
470514
- t542 = icon("check");
470515
- $5[351] = t542;
470516
- } else {
470517
- t542 = $5[351];
470518
- }
470519
- let t552;
470520
- if ($5[352] !== t2.textMuted) {
470521
- t552 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470522
- fg: t532,
470523
- children: [
470524
- " ",
470525
- t542,
470526
- " Version",
470527
- " "
470528
- ]
470529
- }, undefined, true, undefined, this);
470530
- $5[352] = t2.textMuted;
470531
- $5[353] = t552;
470532
- } else {
470533
- t552 = $5[353];
470534
- }
470535
- let t562;
470536
- if ($5[354] !== t2.success || $5[355] !== vCurrent) {
470537
- t562 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470538
- fg: t2.success,
470539
- attributes: BOLD5,
470540
- children: vCurrent
470541
- }, undefined, false, undefined, this);
470542
- $5[354] = t2.success;
470543
- $5[355] = vCurrent;
470544
- $5[356] = t562;
470545
- } else {
470546
- t562 = $5[356];
470547
- }
470548
- let t572;
470549
- if ($5[357] !== t2.textFaint) {
470550
- t572 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470551
- fg: t2.textFaint,
470552
- children: " \u2014 latest"
470553
- }, undefined, false, undefined, this);
470554
- $5[357] = t2.textFaint;
470555
- $5[358] = t572;
470556
- } else {
470557
- t572 = $5[358];
470558
- }
470559
- let t582;
470560
- if ($5[359] !== t552 || $5[360] !== t562 || $5[361] !== t572) {
470561
- t582 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470562
- bg: POPUP_BG,
470563
- children: [
470564
- t552,
470565
- t562,
470566
- t572
470567
- ]
470568
- }, undefined, true, undefined, this);
470569
- $5[359] = t552;
470570
- $5[360] = t562;
470571
- $5[361] = t572;
470572
- $5[362] = t582;
470573
- } else {
470574
- t582 = $5[362];
470575
- }
470576
- let t592;
470577
- if ($5[363] !== iw || $5[364] !== t582) {
470578
- t592 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
469994
+ bg: bg2
469995
+ }, undefined, false, undefined, this),
469996
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470579
469997
  w: iw,
470580
- children: t582
470581
- }, undefined, false, undefined, this);
470582
- $5[363] = iw;
470583
- $5[364] = t582;
470584
- $5[365] = t592;
470585
- } else {
470586
- t592 = $5[365];
470587
- }
470588
- const t602 = t2.textMuted;
470589
- let t612;
470590
- if ($5[366] === Symbol.for("react.memo_cache_sentinel")) {
470591
- t612 = icon("wrench");
470592
- $5[366] = t612;
470593
- } else {
470594
- t612 = $5[366];
470595
- }
470596
- let t622;
470597
- if ($5[367] !== t2.textMuted) {
470598
- t622 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470599
- fg: t602,
469998
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
469999
+ bg: bg2,
470000
+ children: [
470001
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470002
+ fg: t2.textMuted,
470003
+ children: [
470004
+ " ",
470005
+ icon("check"),
470006
+ " Version",
470007
+ " "
470008
+ ]
470009
+ }, undefined, true, undefined, this),
470010
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470011
+ fg: t2.success,
470012
+ attributes: BOLD5,
470013
+ children: vCurrent
470014
+ }, undefined, false, undefined, this),
470015
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470016
+ fg: t2.textFaint,
470017
+ children: " \u2014 latest"
470018
+ }, undefined, false, undefined, this)
470019
+ ]
470020
+ }, undefined, true, undefined, this)
470021
+ }, undefined, false, undefined, this),
470022
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470023
+ w: iw,
470024
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470025
+ bg: bg2,
470026
+ children: [
470027
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470028
+ fg: t2.textMuted,
470029
+ children: [
470030
+ " ",
470031
+ icon("wrench"),
470032
+ " Via",
470033
+ " "
470034
+ ]
470035
+ }, undefined, true, undefined, this),
470036
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470037
+ fg: t2.textSecondary,
470038
+ children: installMethod
470039
+ }, undefined, false, undefined, this)
470040
+ ]
470041
+ }, undefined, true, undefined, this)
470042
+ }, undefined, false, undefined, this),
470043
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470044
+ w: iw,
470045
+ bg: bg2
470046
+ }, undefined, false, undefined, this),
470047
+ currentRelease && currentRelease.commits.length > 0 ? /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(import_jsx_dev_runtime2.Fragment, {
470600
470048
  children: [
470601
- " ",
470602
- t612,
470603
- " Via",
470604
- " "
470049
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
470050
+ w: iw,
470051
+ bg: bg2,
470052
+ fg: t2.textFaint
470053
+ }, undefined, false, undefined, this),
470054
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470055
+ w: iw,
470056
+ bg: bg2
470057
+ }, undefined, false, undefined, this),
470058
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470059
+ w: iw,
470060
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470061
+ bg: bg2,
470062
+ fg: t2.brandAlt,
470063
+ attributes: BOLD5,
470064
+ children: [
470065
+ " ",
470066
+ "What's in this version"
470067
+ ]
470068
+ }, undefined, true, undefined, this)
470069
+ }, undefined, false, undefined, this),
470070
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470071
+ w: iw,
470072
+ bg: bg2
470073
+ }, undefined, false, undefined, this),
470074
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(ChangelogSection, {
470075
+ releases: [currentRelease],
470076
+ maxLines: maxChangelog,
470077
+ iw,
470078
+ bg: bg2,
470079
+ t: t2
470080
+ }, undefined, false, undefined, this),
470081
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470082
+ w: iw,
470083
+ bg: bg2
470084
+ }, undefined, false, undefined, this)
470605
470085
  ]
470606
- }, undefined, true, undefined, this);
470607
- $5[367] = t2.textMuted;
470608
- $5[368] = t622;
470609
- } else {
470610
- t622 = $5[368];
470611
- }
470612
- let t63;
470613
- if ($5[369] !== installMethod || $5[370] !== t2.textSecondary) {
470614
- t63 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470615
- fg: t2.textSecondary,
470616
- children: installMethod
470617
- }, undefined, false, undefined, this);
470618
- $5[369] = installMethod;
470619
- $5[370] = t2.textSecondary;
470620
- $5[371] = t63;
470621
- } else {
470622
- t63 = $5[371];
470623
- }
470624
- let t64;
470625
- if ($5[372] !== t622 || $5[373] !== t63) {
470626
- t64 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470627
- bg: POPUP_BG,
470086
+ }, undefined, true, undefined, this) : changelogError ? /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(import_jsx_dev_runtime2.Fragment, {
470628
470087
  children: [
470629
- t622,
470630
- t63
470088
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
470089
+ w: iw,
470090
+ bg: bg2,
470091
+ fg: t2.textFaint
470092
+ }, undefined, false, undefined, this),
470093
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470094
+ w: iw,
470095
+ bg: bg2
470096
+ }, undefined, false, undefined, this),
470097
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470098
+ w: iw,
470099
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470100
+ bg: bg2,
470101
+ fg: t2.error,
470102
+ attributes: ITALIC4,
470103
+ children: [
470104
+ " ",
470105
+ icon("warning"),
470106
+ " ",
470107
+ clErrorQuip
470108
+ ]
470109
+ }, undefined, true, undefined, this)
470110
+ }, undefined, false, undefined, this),
470111
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470112
+ w: iw,
470113
+ bg: bg2
470114
+ }, undefined, false, undefined, this)
470631
470115
  ]
470632
- }, undefined, true, undefined, this);
470633
- $5[372] = t622;
470634
- $5[373] = t63;
470635
- $5[374] = t64;
470636
- } else {
470637
- t64 = $5[374];
470638
- }
470639
- let t65;
470640
- if ($5[375] !== iw || $5[376] !== t64) {
470641
- t65 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470642
- w: iw,
470643
- children: t64
470644
- }, undefined, false, undefined, this);
470645
- $5[375] = iw;
470646
- $5[376] = t64;
470647
- $5[377] = t65;
470648
- } else {
470649
- t65 = $5[377];
470650
- }
470651
- let t66;
470652
- if ($5[378] !== iw) {
470653
- t66 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470654
- w: iw,
470655
- bg: POPUP_BG
470656
- }, undefined, false, undefined, this);
470657
- $5[378] = iw;
470658
- $5[379] = t66;
470659
- } else {
470660
- t66 = $5[379];
470661
- }
470662
- let t67;
470663
- if ($5[380] !== iw || $5[381] !== t2.textFaint) {
470664
- t67 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
470665
- w: iw,
470666
- bg: POPUP_BG,
470667
- fg: t2.textFaint
470668
- }, undefined, false, undefined, this);
470669
- $5[380] = iw;
470670
- $5[381] = t2.textFaint;
470671
- $5[382] = t67;
470672
- } else {
470673
- t67 = $5[382];
470674
- }
470675
- let t68;
470676
- if ($5[383] !== iw) {
470677
- t68 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470678
- w: iw,
470679
- bg: POPUP_BG
470680
- }, undefined, false, undefined, this);
470681
- $5[383] = iw;
470682
- $5[384] = t68;
470683
- } else {
470684
- t68 = $5[384];
470685
- }
470686
- let t69;
470687
- if ($5[385] !== t2.brandAlt) {
470688
- t69 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470689
- bg: POPUP_BG,
470690
- fg: t2.brandAlt,
470691
- attributes: ITALIC4,
470116
+ }, undefined, true, undefined, this) : /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(import_jsx_dev_runtime2.Fragment, {
470692
470117
  children: [
470693
- " ",
470694
- quip_0
470118
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
470119
+ w: iw,
470120
+ bg: bg2,
470121
+ fg: t2.textFaint
470122
+ }, undefined, false, undefined, this),
470123
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470124
+ w: iw,
470125
+ bg: bg2
470126
+ }, undefined, false, undefined, this),
470127
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470128
+ w: iw,
470129
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470130
+ bg: bg2,
470131
+ fg: t2.brandAlt,
470132
+ attributes: ITALIC4,
470133
+ children: [
470134
+ " ",
470135
+ quip_0
470136
+ ]
470137
+ }, undefined, true, undefined, this)
470138
+ }, undefined, false, undefined, this),
470139
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470140
+ w: iw,
470141
+ bg: bg2
470142
+ }, undefined, false, undefined, this)
470695
470143
  ]
470696
- }, undefined, true, undefined, this);
470697
- $5[385] = t2.brandAlt;
470698
- $5[386] = t69;
470699
- } else {
470700
- t69 = $5[386];
470701
- }
470702
- let t70;
470703
- if ($5[387] !== iw || $5[388] !== t69) {
470704
- t70 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470705
- w: iw,
470706
- children: t69
470707
- }, undefined, false, undefined, this);
470708
- $5[387] = iw;
470709
- $5[388] = t69;
470710
- $5[389] = t70;
470711
- } else {
470712
- t70 = $5[389];
470713
- }
470714
- let t71;
470715
- if ($5[390] !== iw) {
470716
- t71 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470717
- w: iw,
470718
- bg: POPUP_BG
470719
- }, undefined, false, undefined, this);
470720
- $5[390] = iw;
470721
- $5[391] = t71;
470722
- } else {
470723
- t71 = $5[391];
470724
- }
470725
- let t72;
470726
- if ($5[392] !== iw || $5[393] !== t2.textFaint) {
470727
- t72 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
470144
+ }, undefined, true, undefined, this),
470145
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
470728
470146
  w: iw,
470729
- bg: POPUP_BG,
470147
+ bg: bg2,
470730
470148
  fg: t2.textFaint
470731
- }, undefined, false, undefined, this);
470732
- $5[392] = iw;
470733
- $5[393] = t2.textFaint;
470734
- $5[394] = t72;
470735
- } else {
470736
- t72 = $5[394];
470737
- }
470738
- let t73;
470739
- if ($5[395] !== t2.textFaint) {
470740
- t73 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470741
- bg: POPUP_BG,
470742
- fg: t2.textFaint,
470743
- children: [
470744
- " ",
470745
- "[esc] close"
470746
- ]
470747
- }, undefined, true, undefined, this);
470748
- $5[395] = t2.textFaint;
470749
- $5[396] = t73;
470750
- } else {
470751
- t73 = $5[396];
470752
- }
470753
- let t74;
470754
- if ($5[397] !== iw || $5[398] !== t73) {
470755
- t74 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470149
+ }, undefined, false, undefined, this),
470150
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470756
470151
  w: iw,
470757
- children: t73
470758
- }, undefined, false, undefined, this);
470759
- $5[397] = iw;
470760
- $5[398] = t73;
470761
- $5[399] = t74;
470762
- } else {
470763
- t74 = $5[399];
470764
- }
470765
- let t75;
470766
- if ($5[400] !== pw || $5[401] !== t2.brand || $5[402] !== t433 || $5[403] !== t483 || $5[404] !== t503 || $5[405] !== t513 || $5[406] !== t522 || $5[407] !== t592 || $5[408] !== t65 || $5[409] !== t66 || $5[410] !== t67 || $5[411] !== t68 || $5[412] !== t70 || $5[413] !== t71 || $5[414] !== t72 || $5[415] !== t74) {
470767
- t75 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Overlay, {
470768
- children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
470769
- flexDirection: "column",
470770
- borderStyle: "rounded",
470771
- border: true,
470772
- borderColor: t423,
470773
- width: pw,
470152
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470153
+ bg: bg2,
470154
+ truncate: true,
470774
470155
  children: [
470775
- t433,
470776
- t483,
470777
- t503,
470778
- t513,
470779
- t522,
470780
- t592,
470781
- t65,
470782
- t66,
470783
- t67,
470784
- t68,
470785
- t70,
470786
- t71,
470787
- t72,
470788
- t74
470156
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470157
+ fg: t2.brandDim,
470158
+ children: [
470159
+ " ",
470160
+ icon("globe"),
470161
+ " ",
470162
+ "<G>"
470163
+ ]
470164
+ }, undefined, true, undefined, this),
470165
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470166
+ fg: t2.textFaint,
470167
+ children: " view full changelog on GitHub"
470168
+ }, undefined, false, undefined, this),
470169
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470170
+ fg: t2.textFaint,
470171
+ children: " "
470172
+ }, undefined, false, undefined, this),
470173
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470174
+ fg: t2.textFaint,
470175
+ children: "<Esc>"
470176
+ }, undefined, false, undefined, this)
470789
470177
  ]
470790
470178
  }, undefined, true, undefined, this)
470791
- }, undefined, false, undefined, this);
470792
- $5[400] = pw;
470793
- $5[401] = t2.brand;
470794
- $5[402] = t433;
470795
- $5[403] = t483;
470796
- $5[404] = t503;
470797
- $5[405] = t513;
470798
- $5[406] = t522;
470799
- $5[407] = t592;
470800
- $5[408] = t65;
470801
- $5[409] = t66;
470802
- $5[410] = t67;
470803
- $5[411] = t68;
470804
- $5[412] = t70;
470805
- $5[413] = t71;
470806
- $5[414] = t72;
470807
- $5[415] = t74;
470808
- $5[416] = t75;
470809
- } else {
470810
- t75 = $5[416];
470811
- }
470812
- t34 = t75;
470813
- break bb0;
470814
- }
470815
- T1 = Overlay;
470816
- t16 = "column";
470817
- t17 = "rounded";
470818
- t18 = true;
470819
- t19 = t2.success;
470820
- t20 = pw;
470821
- if ($5[417] !== iw) {
470822
- t21 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470179
+ }, undefined, false, undefined, this)
470180
+ ]
470181
+ }, undefined, true, undefined, this)
470182
+ }, undefined, false, undefined, this);
470183
+ }
470184
+ return /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Overlay, {
470185
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
470186
+ flexDirection: "column",
470187
+ borderStyle: "rounded",
470188
+ border: true,
470189
+ borderColor: t2.success,
470190
+ width: pw,
470191
+ children: [
470192
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470823
470193
  w: iw,
470824
- bg: POPUP_BG
470825
- }, undefined, false, undefined, this);
470826
- $5[417] = iw;
470827
- $5[418] = t21;
470828
- } else {
470829
- t21 = $5[418];
470830
- }
470831
- let t422;
470832
- if ($5[419] !== ghostChar || $5[420] !== t2.success) {
470833
- t422 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470834
- fg: t2.success,
470835
- attributes: BOLD5,
470836
- children: [
470837
- " ",
470838
- ghostChar,
470839
- " "
470840
- ]
470841
- }, undefined, true, undefined, this);
470842
- $5[419] = ghostChar;
470843
- $5[420] = t2.success;
470844
- $5[421] = t422;
470845
- } else {
470846
- t422 = $5[421];
470847
- }
470848
- let t432;
470849
- if ($5[422] !== titleReady) {
470850
- t432 = titleReady ? `${sparkle} Update Available` : garble("Update Available");
470851
- $5[422] = titleReady;
470852
- $5[423] = t432;
470853
- } else {
470854
- t432 = $5[423];
470855
- }
470856
- let t442;
470857
- if ($5[424] !== t2.success || $5[425] !== t432) {
470858
- t442 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470859
- fg: t2.success,
470860
- attributes: BOLD5,
470861
- children: t432
470862
- }, undefined, false, undefined, this);
470863
- $5[424] = t2.success;
470864
- $5[425] = t432;
470865
- $5[426] = t442;
470866
- } else {
470867
- t442 = $5[426];
470868
- }
470869
- let t452;
470870
- if ($5[427] !== t422 || $5[428] !== t442) {
470871
- t452 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470872
- bg: POPUP_BG,
470873
- children: [
470874
- t422,
470875
- t442
470876
- ]
470877
- }, undefined, true, undefined, this);
470878
- $5[427] = t422;
470879
- $5[428] = t442;
470880
- $5[429] = t452;
470881
- } else {
470882
- t452 = $5[429];
470883
- }
470884
- if ($5[430] !== iw || $5[431] !== t452) {
470885
- t222 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470194
+ bg: bg2
470195
+ }, undefined, false, undefined, this),
470196
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470886
470197
  w: iw,
470887
- children: t452
470888
- }, undefined, false, undefined, this);
470889
- $5[430] = iw;
470890
- $5[431] = t452;
470891
- $5[432] = t222;
470892
- } else {
470893
- t222 = $5[432];
470894
- }
470895
- let t462;
470896
- if ($5[433] !== t2.brandDim || $5[434] !== wispFrame) {
470897
- t462 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470898
- bg: POPUP_BG,
470899
- fg: t2.brandDim,
470900
- attributes: DIM4,
470901
- children: [
470902
- " ",
470903
- wispFrame
470904
- ]
470905
- }, undefined, true, undefined, this);
470906
- $5[433] = t2.brandDim;
470907
- $5[434] = wispFrame;
470908
- $5[435] = t462;
470909
- } else {
470910
- t462 = $5[435];
470911
- }
470912
- if ($5[436] !== iw || $5[437] !== t462) {
470913
- t23 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470198
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470199
+ bg: bg2,
470200
+ children: [
470201
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470202
+ fg: t2.success,
470203
+ attributes: BOLD5,
470204
+ children: [
470205
+ " ",
470206
+ ghostChar,
470207
+ " "
470208
+ ]
470209
+ }, undefined, true, undefined, this),
470210
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470211
+ fg: t2.success,
470212
+ attributes: BOLD5,
470213
+ children: titleReady ? `${sparkle} Update Available` : garble("Update Available")
470214
+ }, undefined, false, undefined, this)
470215
+ ]
470216
+ }, undefined, true, undefined, this)
470217
+ }, undefined, false, undefined, this),
470218
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470914
470219
  w: iw,
470915
- children: t462
470916
- }, undefined, false, undefined, this);
470917
- $5[436] = iw;
470918
- $5[437] = t462;
470919
- $5[438] = t23;
470920
- } else {
470921
- t23 = $5[438];
470922
- }
470923
- if ($5[439] !== iw || $5[440] !== t2.textFaint) {
470924
- t24 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
470220
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470221
+ bg: bg2,
470222
+ fg: t2.brandDim,
470223
+ attributes: DIM4,
470224
+ children: [
470225
+ " ",
470226
+ wispFrame
470227
+ ]
470228
+ }, undefined, true, undefined, this)
470229
+ }, undefined, false, undefined, this),
470230
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
470925
470231
  w: iw,
470926
- bg: POPUP_BG,
470232
+ bg: bg2,
470927
470233
  fg: t2.textFaint
470928
- }, undefined, false, undefined, this);
470929
- $5[439] = iw;
470930
- $5[440] = t2.textFaint;
470931
- $5[441] = t24;
470932
- } else {
470933
- t24 = $5[441];
470934
- }
470935
- if ($5[442] !== iw) {
470936
- t25 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470234
+ }, undefined, false, undefined, this),
470235
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470937
470236
  w: iw,
470938
- bg: POPUP_BG
470939
- }, undefined, false, undefined, this);
470940
- $5[442] = iw;
470941
- $5[443] = t25;
470942
- } else {
470943
- t25 = $5[443];
470944
- }
470945
- const t472 = t2.textMuted;
470946
- let t482;
470947
- if ($5[444] === Symbol.for("react.memo_cache_sentinel")) {
470948
- t482 = icon("clock");
470949
- $5[444] = t482;
470950
- } else {
470951
- t482 = $5[444];
470952
- }
470953
- let t492;
470954
- if ($5[445] !== t2.textMuted) {
470955
- t492 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470956
- fg: t472,
470957
- children: [
470958
- " ",
470959
- t482,
470960
- " Current",
470961
- " "
470962
- ]
470963
- }, undefined, true, undefined, this);
470964
- $5[445] = t2.textMuted;
470965
- $5[446] = t492;
470966
- } else {
470967
- t492 = $5[446];
470968
- }
470969
- let t502;
470970
- if ($5[447] !== t2.textPrimary || $5[448] !== vCurrent) {
470971
- t502 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470972
- fg: t2.textPrimary,
470973
- children: vCurrent
470974
- }, undefined, false, undefined, this);
470975
- $5[447] = t2.textPrimary;
470976
- $5[448] = vCurrent;
470977
- $5[449] = t502;
470978
- } else {
470979
- t502 = $5[449];
470980
- }
470981
- let t512;
470982
- if ($5[450] !== t492 || $5[451] !== t502) {
470983
- t512 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470984
- bg: POPUP_BG,
470985
- children: [
470986
- t492,
470987
- t502
470988
- ]
470989
- }, undefined, true, undefined, this);
470990
- $5[450] = t492;
470991
- $5[451] = t502;
470992
- $5[452] = t512;
470993
- } else {
470994
- t512 = $5[452];
470995
- }
470996
- if ($5[453] !== iw || $5[454] !== t512) {
470997
- t26 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470237
+ bg: bg2
470238
+ }, undefined, false, undefined, this),
470239
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470998
470240
  w: iw,
470999
- children: t512
471000
- }, undefined, false, undefined, this);
471001
- $5[453] = iw;
471002
- $5[454] = t512;
471003
- $5[455] = t26;
471004
- } else {
471005
- t26 = $5[455];
471006
- }
471007
- let t52;
471008
- if ($5[456] !== t2.textMuted) {
471009
- t52 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471010
- fg: t2.textMuted,
471011
- children: [
471012
- " ",
471013
- sparkle,
471014
- " Latest",
471015
- " "
471016
- ]
471017
- }, undefined, true, undefined, this);
471018
- $5[456] = t2.textMuted;
471019
- $5[457] = t52;
471020
- } else {
471021
- t52 = $5[457];
471022
- }
471023
- let t53;
471024
- if ($5[458] !== t2.success || $5[459] !== vLatest) {
471025
- t53 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471026
- fg: t2.success,
471027
- attributes: BOLD5,
471028
- children: vLatest
471029
- }, undefined, false, undefined, this);
471030
- $5[458] = t2.success;
471031
- $5[459] = vLatest;
471032
- $5[460] = t53;
471033
- } else {
471034
- t53 = $5[460];
471035
- }
471036
- let t54;
471037
- if ($5[461] !== t52 || $5[462] !== t53) {
471038
- t54 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
471039
- bg: POPUP_BG,
471040
- children: [
471041
- t52,
471042
- t53
471043
- ]
471044
- }, undefined, true, undefined, this);
471045
- $5[461] = t52;
471046
- $5[462] = t53;
471047
- $5[463] = t54;
471048
- } else {
471049
- t54 = $5[463];
471050
- }
471051
- if ($5[464] !== iw || $5[465] !== t54) {
471052
- t27 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470241
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470242
+ bg: bg2,
470243
+ children: [
470244
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470245
+ fg: t2.textMuted,
470246
+ children: [
470247
+ " ",
470248
+ icon("clock"),
470249
+ " Current",
470250
+ " "
470251
+ ]
470252
+ }, undefined, true, undefined, this),
470253
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470254
+ fg: t2.textPrimary,
470255
+ children: vCurrent
470256
+ }, undefined, false, undefined, this)
470257
+ ]
470258
+ }, undefined, true, undefined, this)
470259
+ }, undefined, false, undefined, this),
470260
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
471053
470261
  w: iw,
471054
- children: t54
471055
- }, undefined, false, undefined, this);
471056
- $5[464] = iw;
471057
- $5[465] = t54;
471058
- $5[466] = t27;
471059
- } else {
471060
- t27 = $5[466];
471061
- }
471062
- const t55 = t2.textMuted;
471063
- let t56;
471064
- if ($5[467] === Symbol.for("react.memo_cache_sentinel")) {
471065
- t56 = icon("wrench");
471066
- $5[467] = t56;
471067
- } else {
471068
- t56 = $5[467];
471069
- }
471070
- let t57;
471071
- if ($5[468] !== t2.textMuted) {
471072
- t57 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471073
- fg: t55,
471074
- children: [
471075
- " ",
471076
- t56,
471077
- " Via",
471078
- " "
471079
- ]
471080
- }, undefined, true, undefined, this);
471081
- $5[468] = t2.textMuted;
471082
- $5[469] = t57;
471083
- } else {
471084
- t57 = $5[469];
471085
- }
471086
- let t58;
471087
- if ($5[470] !== installMethod || $5[471] !== t2.textSecondary) {
471088
- t58 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471089
- fg: t2.textSecondary,
471090
- children: installMethod
471091
- }, undefined, false, undefined, this);
471092
- $5[470] = installMethod;
471093
- $5[471] = t2.textSecondary;
471094
- $5[472] = t58;
471095
- } else {
471096
- t58 = $5[472];
471097
- }
471098
- let t59;
471099
- if ($5[473] !== t57 || $5[474] !== t58) {
471100
- t59 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
471101
- bg: POPUP_BG,
471102
- children: [
471103
- t57,
471104
- t58
471105
- ]
471106
- }, undefined, true, undefined, this);
471107
- $5[473] = t57;
471108
- $5[474] = t58;
471109
- $5[475] = t59;
471110
- } else {
471111
- t59 = $5[475];
471112
- }
471113
- if ($5[476] !== iw || $5[477] !== t59) {
471114
- t28 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470262
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470263
+ bg: bg2,
470264
+ children: [
470265
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470266
+ fg: t2.textMuted,
470267
+ children: [
470268
+ " ",
470269
+ sparkle,
470270
+ " Latest",
470271
+ " "
470272
+ ]
470273
+ }, undefined, true, undefined, this),
470274
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470275
+ fg: t2.success,
470276
+ attributes: BOLD5,
470277
+ children: vLatest
470278
+ }, undefined, false, undefined, this)
470279
+ ]
470280
+ }, undefined, true, undefined, this)
470281
+ }, undefined, false, undefined, this),
470282
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
471115
470283
  w: iw,
471116
- children: t59
471117
- }, undefined, false, undefined, this);
471118
- $5[476] = iw;
471119
- $5[477] = t59;
471120
- $5[478] = t28;
471121
- } else {
471122
- t28 = $5[478];
471123
- }
471124
- if ($5[479] !== iw) {
471125
- t29 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470284
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470285
+ bg: bg2,
470286
+ children: [
470287
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470288
+ fg: t2.textMuted,
470289
+ children: [
470290
+ " ",
470291
+ icon("wrench"),
470292
+ " Via",
470293
+ " "
470294
+ ]
470295
+ }, undefined, true, undefined, this),
470296
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470297
+ fg: t2.textSecondary,
470298
+ children: installMethod
470299
+ }, undefined, false, undefined, this)
470300
+ ]
470301
+ }, undefined, true, undefined, this)
470302
+ }, undefined, false, undefined, this),
470303
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
471126
470304
  w: iw,
471127
- bg: POPUP_BG
471128
- }, undefined, false, undefined, this);
471129
- $5[479] = iw;
471130
- $5[480] = t29;
471131
- } else {
471132
- t29 = $5[480];
471133
- }
471134
- if ($5[481] !== changelog || $5[482] !== iw || $5[483] !== maxChangelog || $5[484] !== t2.brand || $5[485] !== t2.brandAlt || $5[486] !== t2.textFaint || $5[487] !== t2.textSecondary) {
471135
- t30 = changelog.length > 0 && /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(import_jsx_dev_runtime2.Fragment, {
470305
+ bg: bg2
470306
+ }, undefined, false, undefined, this),
470307
+ changelog.length > 0 ? /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(import_jsx_dev_runtime2.Fragment, {
471136
470308
  children: [
471137
470309
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
471138
470310
  w: iw,
471139
- bg: POPUP_BG,
470311
+ bg: bg2,
471140
470312
  fg: t2.textFaint
471141
470313
  }, undefined, false, undefined, this),
471142
470314
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
471143
470315
  w: iw,
471144
- bg: POPUP_BG
470316
+ bg: bg2
471145
470317
  }, undefined, false, undefined, this),
471146
470318
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
471147
470319
  w: iw,
471148
470320
  children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
471149
- bg: POPUP_BG,
470321
+ bg: bg2,
471150
470322
  fg: t2.brandAlt,
471151
470323
  attributes: BOLD5,
471152
470324
  children: [
471153
470325
  " ",
471154
- "Versions since yours"
470326
+ "What's new"
471155
470327
  ]
471156
470328
  }, undefined, true, undefined, this)
471157
470329
  }, undefined, false, undefined, this),
471158
470330
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
471159
470331
  w: iw,
471160
- bg: POPUP_BG
470332
+ bg: bg2
471161
470333
  }, undefined, false, undefined, this),
471162
- /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
471163
- flexDirection: "column",
471164
- height: Math.min(changelog.length, maxChangelog),
471165
- overflow: "hidden",
471166
- children: changelog.slice(0, maxChangelog).map((entry, i_2) => /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
471167
- w: iw,
471168
- children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
471169
- bg: POPUP_BG,
471170
- children: [
471171
- /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471172
- fg: t2.brand,
471173
- children: " \u25C6 "
471174
- }, undefined, false, undefined, this),
471175
- /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471176
- fg: t2.textSecondary,
471177
- children: trunc(entry, iw - 10)
471178
- }, undefined, false, undefined, this)
471179
- ]
471180
- }, undefined, true, undefined, this)
471181
- }, String(i_2), false, undefined, this))
470334
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(ChangelogSection, {
470335
+ releases: changelog,
470336
+ maxLines: maxChangelog,
470337
+ iw,
470338
+ bg: bg2,
470339
+ t: t2
470340
+ }, undefined, false, undefined, this),
470341
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470342
+ w: iw,
470343
+ bg: bg2
470344
+ }, undefined, false, undefined, this)
470345
+ ]
470346
+ }, undefined, true, undefined, this) : changelogError ? /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(import_jsx_dev_runtime2.Fragment, {
470347
+ children: [
470348
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
470349
+ w: iw,
470350
+ bg: bg2,
470351
+ fg: t2.textFaint
471182
470352
  }, undefined, false, undefined, this),
471183
- changelog.length > maxChangelog && /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470353
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470354
+ w: iw,
470355
+ bg: bg2
470356
+ }, undefined, false, undefined, this),
470357
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
471184
470358
  w: iw,
471185
470359
  children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
471186
- bg: POPUP_BG,
471187
- fg: t2.textFaint,
470360
+ bg: bg2,
470361
+ fg: t2.error,
470362
+ attributes: ITALIC4,
471188
470363
  children: [
471189
- " ",
471190
- "\u2026 and ",
471191
- changelog.length - maxChangelog,
471192
- " more"
470364
+ " ",
470365
+ icon("warning"),
470366
+ " ",
470367
+ CHANGELOG_ERROR_QUIPS[Math.floor(Date.now() / 60000) % CHANGELOG_ERROR_QUIPS.length]
471193
470368
  ]
471194
470369
  }, undefined, true, undefined, this)
471195
470370
  }, undefined, false, undefined, this),
471196
470371
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
471197
470372
  w: iw,
471198
- bg: POPUP_BG
470373
+ bg: bg2
471199
470374
  }, undefined, false, undefined, this)
471200
470375
  ]
471201
- }, undefined, true, undefined, this);
471202
- $5[481] = changelog;
471203
- $5[482] = iw;
471204
- $5[483] = maxChangelog;
471205
- $5[484] = t2.brand;
471206
- $5[485] = t2.brandAlt;
471207
- $5[486] = t2.textFaint;
471208
- $5[487] = t2.textSecondary;
471209
- $5[488] = t30;
471210
- } else {
471211
- t30 = $5[488];
471212
- }
471213
- if ($5[489] !== iw || $5[490] !== t2.textFaint) {
471214
- t31 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
470376
+ }, undefined, true, undefined, this) : null,
470377
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
471215
470378
  w: iw,
471216
- bg: POPUP_BG,
470379
+ bg: bg2,
471217
470380
  fg: t2.textFaint
471218
- }, undefined, false, undefined, this);
471219
- $5[489] = iw;
471220
- $5[490] = t2.textFaint;
471221
- $5[491] = t31;
471222
- } else {
471223
- t31 = $5[491];
471224
- }
471225
- if ($5[492] !== iw) {
471226
- t32 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470381
+ }, undefined, false, undefined, this),
470382
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
471227
470383
  w: iw,
471228
- bg: POPUP_BG
471229
- }, undefined, false, undefined, this);
471230
- $5[492] = iw;
471231
- $5[493] = t32;
471232
- } else {
471233
- t32 = $5[493];
471234
- }
471235
- const t60 = t2.textMuted;
471236
- let t61;
471237
- if ($5[494] === Symbol.for("react.memo_cache_sentinel")) {
471238
- t61 = icon("terminal");
471239
- $5[494] = t61;
471240
- } else {
471241
- t61 = $5[494];
471242
- }
471243
- let t62;
471244
- if ($5[495] !== t2.textMuted) {
471245
- t62 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
471246
- bg: POPUP_BG,
471247
- fg: t60,
471248
- children: [
471249
- " ",
471250
- t61,
471251
- " Upgrade command"
471252
- ]
471253
- }, undefined, true, undefined, this);
471254
- $5[495] = t2.textMuted;
471255
- $5[496] = t62;
471256
- } else {
471257
- t62 = $5[496];
471258
- }
471259
- if ($5[497] !== iw || $5[498] !== t62) {
471260
- t33 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470384
+ bg: bg2
470385
+ }, undefined, false, undefined, this),
470386
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
471261
470387
  w: iw,
471262
- children: t62
471263
- }, undefined, false, undefined, this);
471264
- $5[497] = iw;
471265
- $5[498] = t62;
471266
- $5[499] = t33;
471267
- } else {
471268
- t33 = $5[499];
471269
- }
471270
- T0 = PopupRow;
471271
- t15 = iw;
471272
- t13 = POPUP_BG;
471273
- if ($5[500] !== t2.textFaint) {
471274
- t14 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471275
- fg: t2.textFaint,
471276
- children: [
471277
- " ",
471278
- arrowIc,
471279
- " "
471280
- ]
471281
- }, undefined, true, undefined, this);
471282
- $5[500] = t2.textFaint;
471283
- $5[501] = t14;
471284
- } else {
471285
- t14 = $5[501];
471286
- }
471287
- t10 = t2.brand;
471288
- t11 = BOLD5;
471289
- t12 = trunc(upgradeCmd, iw - 10);
471290
- }
471291
- $5[22] = changelog;
471292
- $5[23] = current;
471293
- $5[24] = errorMsg;
471294
- $5[25] = installMethod;
471295
- $5[26] = iw;
471296
- $5[27] = latest;
471297
- $5[28] = logH;
471298
- $5[29] = logLines;
471299
- $5[30] = maxChangelog;
471300
- $5[31] = phase;
471301
- $5[32] = pw;
471302
- $5[33] = quipIdx;
471303
- $5[34] = spinIdx;
471304
- $5[35] = t2.brand;
471305
- $5[36] = t2.brandAlt;
471306
- $5[37] = t2.brandDim;
471307
- $5[38] = t2.brandSecondary;
471308
- $5[39] = t2.success;
471309
- $5[40] = t2.textFaint;
471310
- $5[41] = t2.textMuted;
471311
- $5[42] = t2.textPrimary;
471312
- $5[43] = t2.textSecondary;
471313
- $5[44] = tick;
471314
- $5[45] = updateAvailable;
471315
- $5[46] = T0;
471316
- $5[47] = T1;
471317
- $5[48] = arrowIc;
471318
- $5[49] = canAuto;
471319
- $5[50] = t10;
471320
- $5[51] = t11;
471321
- $5[52] = t12;
471322
- $5[53] = t13;
471323
- $5[54] = t14;
471324
- $5[55] = t15;
471325
- $5[56] = t16;
471326
- $5[57] = t17;
471327
- $5[58] = t18;
471328
- $5[59] = t19;
471329
- $5[60] = t20;
471330
- $5[61] = t21;
471331
- $5[62] = t222;
471332
- $5[63] = t23;
471333
- $5[64] = t24;
471334
- $5[65] = t25;
471335
- $5[66] = t26;
471336
- $5[67] = t27;
471337
- $5[68] = t28;
471338
- $5[69] = t29;
471339
- $5[70] = t30;
471340
- $5[71] = t31;
471341
- $5[72] = t32;
471342
- $5[73] = t33;
471343
- $5[74] = t34;
471344
- } else {
471345
- T0 = $5[46];
471346
- T1 = $5[47];
471347
- arrowIc = $5[48];
471348
- canAuto = $5[49];
471349
- t10 = $5[50];
471350
- t11 = $5[51];
471351
- t12 = $5[52];
471352
- t13 = $5[53];
471353
- t14 = $5[54];
471354
- t15 = $5[55];
471355
- t16 = $5[56];
471356
- t17 = $5[57];
471357
- t18 = $5[58];
471358
- t19 = $5[59];
471359
- t20 = $5[60];
471360
- t21 = $5[61];
471361
- t222 = $5[62];
471362
- t23 = $5[63];
471363
- t24 = $5[64];
471364
- t25 = $5[65];
471365
- t26 = $5[66];
471366
- t27 = $5[67];
471367
- t28 = $5[68];
471368
- t29 = $5[69];
471369
- t30 = $5[70];
471370
- t31 = $5[71];
471371
- t32 = $5[72];
471372
- t33 = $5[73];
471373
- t34 = $5[74];
471374
- }
471375
- if (t34 !== Symbol.for("react.early_return_sentinel")) {
471376
- return t34;
471377
- }
471378
- let t35;
471379
- if ($5[502] !== t10 || $5[503] !== t11 || $5[504] !== t12) {
471380
- t35 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471381
- fg: t10,
471382
- attributes: t11,
471383
- children: t12
471384
- }, undefined, false, undefined, this);
471385
- $5[502] = t10;
471386
- $5[503] = t11;
471387
- $5[504] = t12;
471388
- $5[505] = t35;
471389
- } else {
471390
- t35 = $5[505];
471391
- }
471392
- let t36;
471393
- if ($5[506] !== t13 || $5[507] !== t14 || $5[508] !== t35) {
471394
- t36 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
471395
- bg: t13,
471396
- children: [
471397
- t14,
471398
- t35
471399
- ]
471400
- }, undefined, true, undefined, this);
471401
- $5[506] = t13;
471402
- $5[507] = t14;
471403
- $5[508] = t35;
471404
- $5[509] = t36;
471405
- } else {
471406
- t36 = $5[509];
471407
- }
471408
- let t37;
471409
- if ($5[510] !== T0 || $5[511] !== t15 || $5[512] !== t36) {
471410
- t37 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(T0, {
471411
- w: t15,
471412
- children: t36
471413
- }, undefined, false, undefined, this);
471414
- $5[510] = T0;
471415
- $5[511] = t15;
471416
- $5[512] = t36;
471417
- $5[513] = t37;
471418
- } else {
471419
- t37 = $5[513];
471420
- }
471421
- let t38;
471422
- if ($5[514] !== iw) {
471423
- t38 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
471424
- w: iw,
471425
- bg: POPUP_BG
471426
- }, undefined, false, undefined, this);
471427
- $5[514] = iw;
471428
- $5[515] = t38;
471429
- } else {
471430
- t38 = $5[515];
471431
- }
471432
- let t39;
471433
- if ($5[516] !== iw || $5[517] !== t2.textFaint) {
471434
- t39 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
471435
- w: iw,
471436
- bg: POPUP_BG,
471437
- fg: t2.textFaint
471438
- }, undefined, false, undefined, this);
471439
- $5[516] = iw;
471440
- $5[517] = t2.textFaint;
471441
- $5[518] = t39;
471442
- } else {
471443
- t39 = $5[518];
471444
- }
471445
- let t40;
471446
- if ($5[519] !== arrowIc || $5[520] !== canAuto || $5[521] !== t2.success || $5[522] !== t2.textFaint || $5[523] !== t2.textMuted) {
471447
- t40 = canAuto && /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(import_jsx_dev_runtime2.Fragment, {
471448
- children: [
471449
- /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471450
- fg: t2.success,
471451
- attributes: BOLD5,
471452
- children: [
471453
- " ",
471454
- arrowIc,
471455
- " [u]"
471456
- ]
471457
- }, undefined, true, undefined, this),
471458
- /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471459
- fg: t2.textMuted,
471460
- children: " upgrade"
470388
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470389
+ bg: bg2,
470390
+ fg: t2.textMuted,
470391
+ children: [
470392
+ " ",
470393
+ icon("terminal"),
470394
+ " Upgrade command"
470395
+ ]
470396
+ }, undefined, true, undefined, this)
471461
470397
  }, undefined, false, undefined, this),
471462
- /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471463
- fg: t2.textFaint,
471464
- children: " "
470398
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470399
+ w: iw,
470400
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470401
+ bg: bg2,
470402
+ children: [
470403
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470404
+ fg: t2.textFaint,
470405
+ children: [
470406
+ " ",
470407
+ arrowIc,
470408
+ " "
470409
+ ]
470410
+ }, undefined, true, undefined, this),
470411
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470412
+ fg: t2.brand,
470413
+ attributes: BOLD5,
470414
+ children: trunc(upgradeCmd, iw - 10)
470415
+ }, undefined, false, undefined, this)
470416
+ ]
470417
+ }, undefined, true, undefined, this)
470418
+ }, undefined, false, undefined, this),
470419
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Gap3, {
470420
+ w: iw,
470421
+ bg: bg2
470422
+ }, undefined, false, undefined, this),
470423
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Hr4, {
470424
+ w: iw,
470425
+ bg: bg2,
470426
+ fg: t2.textFaint
470427
+ }, undefined, false, undefined, this),
470428
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470429
+ w: iw,
470430
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470431
+ bg: bg2,
470432
+ truncate: true,
470433
+ children: [
470434
+ canAuto && /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(import_jsx_dev_runtime2.Fragment, {
470435
+ children: [
470436
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470437
+ fg: t2.success,
470438
+ attributes: BOLD5,
470439
+ children: [
470440
+ " ",
470441
+ arrowIc,
470442
+ " ",
470443
+ "<U>"
470444
+ ]
470445
+ }, undefined, true, undefined, this),
470446
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470447
+ fg: t2.textMuted,
470448
+ children: " upgrade"
470449
+ }, undefined, false, undefined, this),
470450
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470451
+ fg: t2.textFaint,
470452
+ children: " "
470453
+ }, undefined, false, undefined, this)
470454
+ ]
470455
+ }, undefined, true, undefined, this),
470456
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470457
+ fg: copied ? t2.success : t2.textFaint,
470458
+ children: copied ? " \u2713 copied" : " <C> copy"
470459
+ }, undefined, false, undefined, this),
470460
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470461
+ fg: t2.textFaint,
470462
+ children: " "
470463
+ }, undefined, false, undefined, this),
470464
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470465
+ fg: t2.textFaint,
470466
+ children: [
470467
+ "<D>",
470468
+ " dismiss"
470469
+ ]
470470
+ }, undefined, true, undefined, this),
470471
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470472
+ fg: t2.textFaint,
470473
+ children: " "
470474
+ }, undefined, false, undefined, this),
470475
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470476
+ fg: t2.textFaint,
470477
+ children: "<Esc>"
470478
+ }, undefined, false, undefined, this)
470479
+ ]
470480
+ }, undefined, true, undefined, this)
470481
+ }, undefined, false, undefined, this),
470482
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
470483
+ w: iw,
470484
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
470485
+ bg: bg2,
470486
+ truncate: true,
470487
+ children: [
470488
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470489
+ fg: t2.brandDim,
470490
+ children: [
470491
+ " ",
470492
+ icon("globe"),
470493
+ " ",
470494
+ "<G>"
470495
+ ]
470496
+ }, undefined, true, undefined, this),
470497
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
470498
+ fg: t2.textFaint,
470499
+ children: " view full changelog on GitHub"
470500
+ }, undefined, false, undefined, this)
470501
+ ]
470502
+ }, undefined, true, undefined, this)
471465
470503
  }, undefined, false, undefined, this)
471466
470504
  ]
471467
- }, undefined, true, undefined, this);
471468
- $5[519] = arrowIc;
471469
- $5[520] = canAuto;
471470
- $5[521] = t2.success;
471471
- $5[522] = t2.textFaint;
471472
- $5[523] = t2.textMuted;
471473
- $5[524] = t40;
471474
- } else {
471475
- t40 = $5[524];
471476
- }
471477
- const t41 = copied ? t2.success : t2.textFaint;
471478
- const t42 = copied ? " \u2713 copied" : " [c] copy";
471479
- let t43;
471480
- if ($5[525] !== t41 || $5[526] !== t42) {
471481
- t43 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471482
- fg: t41,
471483
- children: t42
471484
- }, undefined, false, undefined, this);
471485
- $5[525] = t41;
471486
- $5[526] = t42;
471487
- $5[527] = t43;
471488
- } else {
471489
- t43 = $5[527];
471490
- }
471491
- let t44;
471492
- let t45;
471493
- let t46;
471494
- let t47;
471495
- if ($5[528] !== t2.textFaint) {
471496
- t44 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471497
- fg: t2.textFaint,
471498
- children: " "
471499
- }, undefined, false, undefined, this);
471500
- t45 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471501
- fg: t2.textFaint,
471502
- children: "[d] dismiss"
471503
- }, undefined, false, undefined, this);
471504
- t46 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471505
- fg: t2.textFaint,
471506
- children: " "
471507
- }, undefined, false, undefined, this);
471508
- t47 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("span", {
471509
- fg: t2.textFaint,
471510
- children: "[esc]"
471511
- }, undefined, false, undefined, this);
471512
- $5[528] = t2.textFaint;
471513
- $5[529] = t44;
471514
- $5[530] = t45;
471515
- $5[531] = t46;
471516
- $5[532] = t47;
471517
- } else {
471518
- t44 = $5[529];
471519
- t45 = $5[530];
471520
- t46 = $5[531];
471521
- t47 = $5[532];
471522
- }
471523
- let t48;
471524
- if ($5[533] !== t40 || $5[534] !== t43 || $5[535] !== t44 || $5[536] !== t45 || $5[537] !== t46 || $5[538] !== t47) {
471525
- t48 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
471526
- bg: POPUP_BG,
471527
- truncate: true,
471528
- children: [
471529
- t40,
471530
- t43,
471531
- t44,
471532
- t45,
471533
- t46,
471534
- t47
471535
- ]
471536
- }, undefined, true, undefined, this);
471537
- $5[533] = t40;
471538
- $5[534] = t43;
471539
- $5[535] = t44;
471540
- $5[536] = t45;
471541
- $5[537] = t46;
471542
- $5[538] = t47;
471543
- $5[539] = t48;
471544
- } else {
471545
- t48 = $5[539];
471546
- }
471547
- let t49;
471548
- if ($5[540] !== iw || $5[541] !== t48) {
471549
- t49 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(PopupRow, {
471550
- w: iw,
471551
- children: t48
471552
- }, undefined, false, undefined, this);
471553
- $5[540] = iw;
471554
- $5[541] = t48;
471555
- $5[542] = t49;
471556
- } else {
471557
- t49 = $5[542];
471558
- }
471559
- let t50;
471560
- if ($5[543] !== t16 || $5[544] !== t17 || $5[545] !== t18 || $5[546] !== t19 || $5[547] !== t20 || $5[548] !== t21 || $5[549] !== t222 || $5[550] !== t23 || $5[551] !== t24 || $5[552] !== t25 || $5[553] !== t26 || $5[554] !== t27 || $5[555] !== t28 || $5[556] !== t29 || $5[557] !== t30 || $5[558] !== t31 || $5[559] !== t32 || $5[560] !== t33 || $5[561] !== t37 || $5[562] !== t38 || $5[563] !== t39 || $5[564] !== t49) {
471561
- t50 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
471562
- flexDirection: t16,
471563
- borderStyle: t17,
471564
- border: t18,
471565
- borderColor: t19,
471566
- width: t20,
471567
- children: [
471568
- t21,
471569
- t222,
471570
- t23,
471571
- t24,
471572
- t25,
471573
- t26,
471574
- t27,
471575
- t28,
471576
- t29,
471577
- t30,
471578
- t31,
471579
- t32,
471580
- t33,
471581
- t37,
471582
- t38,
471583
- t39,
471584
- t49
471585
- ]
471586
- }, undefined, true, undefined, this);
471587
- $5[543] = t16;
471588
- $5[544] = t17;
471589
- $5[545] = t18;
471590
- $5[546] = t19;
471591
- $5[547] = t20;
471592
- $5[548] = t21;
471593
- $5[549] = t222;
471594
- $5[550] = t23;
471595
- $5[551] = t24;
471596
- $5[552] = t25;
471597
- $5[553] = t26;
471598
- $5[554] = t27;
471599
- $5[555] = t28;
471600
- $5[556] = t29;
471601
- $5[557] = t30;
471602
- $5[558] = t31;
471603
- $5[559] = t32;
471604
- $5[560] = t33;
471605
- $5[561] = t37;
471606
- $5[562] = t38;
471607
- $5[563] = t39;
471608
- $5[564] = t49;
471609
- $5[565] = t50;
471610
- } else {
471611
- t50 = $5[565];
471612
- }
471613
- let t51;
471614
- if ($5[566] !== T1 || $5[567] !== t50) {
471615
- t51 = /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(T1, {
471616
- children: t50
471617
- }, undefined, false, undefined, this);
471618
- $5[566] = T1;
471619
- $5[567] = t50;
471620
- $5[568] = t51;
471621
- } else {
471622
- t51 = $5[568];
471623
- }
471624
- return t51;
471625
- }
471626
- function _temp327(i_0) {
471627
- return (i_0 + 1) % UPGRADE_QUIPS.length;
471628
- }
471629
- function _temp231(i4) {
471630
- return i4 + 1;
471631
- }
471632
- function _temp81(prev) {
471633
- return prev + 1;
470505
+ }, undefined, true, undefined, this)
470506
+ }, undefined, false, undefined, this);
471634
470507
  }
471635
- var import_compiler_runtime60, import_react104, UPGRADE_QUIPS, LATEST_QUIPS, SPINNER2, GHOST_FADE2, WISP, MAX_LOG = 50, BOLD5, ITALIC4, DIM4;
470508
+ var import_compiler_runtime60, import_react104, UPGRADE_QUIPS, LATEST_QUIPS, CHANGELOG_ERROR_QUIPS, SPINNER2, GHOST_FADE2, WISP, MAX_LOG = 50, BOLD5, ITALIC4, DIM4, TYPE_BADGE;
471636
470509
  var init_UpdateModal = __esm(async () => {
471637
470510
  init_icons();
471638
470511
  init_theme();
@@ -471649,12 +470522,39 @@ var init_UpdateModal = __esm(async () => {
471649
470522
  import_react104 = __toESM(require_react(), 1);
471650
470523
  UPGRADE_QUIPS = ["Heating the forge\u2026", "Melting down the old version\u2026", "Pouring molten code into the mold\u2026", "Hammering out the bugs\u2026", "Quenching in liquid nitrogen\u2026", "Polishing the new blade\u2026", "Enchanting with fresh runes\u2026", "Consulting the package spirits\u2026", "Negotiating with the registry gods\u2026", "Bribing the dependency elves\u2026", "Aligning the semantic versions\u2026", "Reticulating splines\u2026", "Convincing npm to cooperate\u2026", "Performing arcane rituals\u2026", "Almost there, forgemaster\u2026"];
471651
470524
  LATEST_QUIPS = ["The forge burns bright \u2014 you're on the cutting edge.", "No updates. The blade is already sharp.", "You're running the latest. The gods are pleased.", "Peak version achieved. Nothing to see here.", "Already forged to perfection.", "The scrolls confirm: you're up to date.", "No new runes to inscribe today.", "Your version is so fresh it's still warm."];
470525
+ CHANGELOG_ERROR_QUIPS = ["The scroll courier didn't make it \u2014 changelog unavailable", "The raven carrying the changelog was lost to the void", "The archive gates are sealed \u2014 try again later", "The changelog runes could not be summoned", "The forge's scrying pool is clouded \u2014 no changelog today", "The record keeper is away from the anvil", "The changelog embers have gone cold \u2014 GitHub unreachable"];
471652
470526
  SPINNER2 = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
471653
470527
  GHOST_FADE2 = ["\u2591", "\u2592", "\u2593"];
471654
470528
  WISP = ["~\u223F~", "\u223F~\u223F", "\xB7\u223F\xB7", "\u223F\xB7\u223F"];
471655
470529
  BOLD5 = TextAttributes.BOLD;
471656
470530
  ITALIC4 = TextAttributes.ITALIC;
471657
470531
  DIM4 = TextAttributes.DIM;
470532
+ TYPE_BADGE = {
470533
+ feat: {
470534
+ label: "feat",
470535
+ color: "success"
470536
+ },
470537
+ fix: {
470538
+ label: "fix",
470539
+ color: "brandSecondary"
470540
+ },
470541
+ perf: {
470542
+ label: "perf",
470543
+ color: "brandAlt"
470544
+ },
470545
+ refactor: {
470546
+ label: "refac",
470547
+ color: "textSecondary"
470548
+ },
470549
+ docs: {
470550
+ label: "docs",
470551
+ color: "textMuted"
470552
+ },
470553
+ other: {
470554
+ label: "misc",
470555
+ color: "textMuted"
470556
+ }
470557
+ };
471658
470558
  });
471659
470559
 
471660
470560
  // src/components/settings/EditorSettings.tsx
@@ -477035,7 +475935,7 @@ function ShutdownSplash(t0) {
477035
475935
  let t3;
477036
475936
  if ($5[2] === Symbol.for("react.memo_cache_sentinel")) {
477037
475937
  t2 = () => {
477038
- const timer = setInterval(() => setTick(_temp83), 80);
475938
+ const timer = setInterval(() => setTick(_temp81), 80);
477039
475939
  return () => clearInterval(timer);
477040
475940
  };
477041
475941
  t3 = [];
@@ -477232,7 +476132,7 @@ function ShutdownSplash(t0) {
477232
476132
  }
477233
476133
  return t14;
477234
476134
  }
477235
- function _temp83(t2) {
476135
+ function _temp81(t2) {
477236
476136
  return t2 + 1;
477237
476137
  }
477238
476138
  function nativeCopy(text3) {