deepcode-ai 1.2.23 → 1.2.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -11509,7 +11509,7 @@ function parseVersion(version) {
11509
11509
  if (!match) return null;
11510
11510
  return [Number(match[1]), Number(match[2]), Number(match[3])];
11511
11511
  }
11512
- var VERSION = "1.2.23".length > 0 ? "1.2.23" : "0.0.0-dev";
11512
+ var VERSION = "1.2.24".length > 0 ? "1.2.24" : "0.0.0-dev";
11513
11513
  async function updateCommand() {
11514
11514
  writeStdoutLine(`Current version: ${VERSION}`);
11515
11515
  const update = await checkForUpdate(VERSION, { force: true });
@@ -28726,7 +28726,8 @@ var AppHeader = ({
28726
28726
  cwd,
28727
28727
  providerLabel,
28728
28728
  mode,
28729
- iterationInfo
28729
+ iterationInfo,
28730
+ updateAvailable
28730
28731
  }) => {
28731
28732
  const {
28732
28733
  streamingState,
@@ -28799,6 +28800,14 @@ var AppHeader = ({
28799
28800
  " \u2193",
28800
28801
  fmt(totalOutputTokenCount)
28801
28802
  ] })
28803
+ ] }),
28804
+ updateAvailable && /* @__PURE__ */ jsxs45(Box41, { flexDirection: "row", gap: 1, children: [
28805
+ /* @__PURE__ */ jsx51(Text49, { color: theme.status.warning, children: "\u2B06" }),
28806
+ /* @__PURE__ */ jsxs45(Text49, { color: theme.text.secondary, dimColor: true, children: [
28807
+ "nova vers\xE3o dispon\xEDvel: ",
28808
+ updateAvailable,
28809
+ " \u2014 execute /update"
28810
+ ] })
28802
28811
  ] })
28803
28812
  ]
28804
28813
  }
@@ -31446,6 +31455,7 @@ var AppContainer = ({ cwd, config, provider, model, resumeSessionId, startupWarn
31446
31455
  dangerous: "ask"
31447
31456
  });
31448
31457
  const [sessionDisplayName, setSessionDisplayName] = useState33("");
31458
+ const [updateAvailable, setUpdateAvailable] = useState33(null);
31449
31459
  const [providerConfigVersion, setProviderConfigVersion] = useState33(0);
31450
31460
  const [, setThemeVersion] = useState33(0);
31451
31461
  const [mcpConnected, setMcpConnected] = useState33(0);
@@ -32032,19 +32042,13 @@ var AppContainer = ({ cwd, config, provider, model, resumeSessionId, startupWarn
32032
32042
  if (!mounted || !update) return;
32033
32043
  const available = [];
32034
32044
  if (isNewer(VERSION, update.latest)) {
32035
- available.push(`latest v${update.latest}`);
32045
+ available.push(`v${update.latest}`);
32036
32046
  }
32037
32047
  if (update.stable && isNewer(VERSION, update.stable)) {
32038
- available.push(`stable v${update.stable}`);
32048
+ available.push(`v${update.stable} (stable)`);
32039
32049
  }
32040
32050
  if (available.length === 0) return;
32041
- addHistoryItem(
32042
- {
32043
- type: "info",
32044
- text: `Atualiza\xE7\xE3o dispon\xEDvel: ${available.join(", ")}. Execute /update para instru\xE7\xF5es.`
32045
- },
32046
- Date.now()
32047
- );
32051
+ setUpdateAvailable(available[0] ?? null);
32048
32052
  }).catch(() => {
32049
32053
  });
32050
32054
  } catch (error) {
@@ -33005,7 +33009,8 @@ var AppContainer = ({ cwd, config, provider, model, resumeSessionId, startupWarn
33005
33009
  cwd,
33006
33010
  providerLabel,
33007
33011
  mode: agentMode,
33008
- iterationInfo
33012
+ iterationInfo,
33013
+ updateAvailable
33009
33014
  }
33010
33015
  ),
33011
33016
  initError ? /* @__PURE__ */ jsx62(Box52, { marginLeft: 2, marginRight: 2, children: /* @__PURE__ */ jsxs56(Text60, { color: theme.status.error, children: [