@mariozechner/pi-coding-agent 0.55.0 → 0.55.1

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.
@@ -410,10 +410,12 @@ export class InteractiveMode {
410
410
  * Check npm registry for a newer version.
411
411
  */
412
412
  async checkForNewVersion() {
413
- if (process.env.PI_SKIP_VERSION_CHECK)
413
+ if (process.env.PI_SKIP_VERSION_CHECK || process.env.PI_OFFLINE)
414
414
  return undefined;
415
415
  try {
416
- const response = await fetch("https://registry.npmjs.org/@mariozechner/pi-coding-agent/latest");
416
+ const response = await fetch("https://registry.npmjs.org/@mariozechner/pi-coding-agent/latest", {
417
+ signal: AbortSignal.timeout(10000),
418
+ });
417
419
  if (!response.ok)
418
420
  return undefined;
419
421
  const data = (await response.json());