codeep 1.2.34 → 1.2.35

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.
@@ -13,7 +13,7 @@ import { renderPermissionScreen, getPermissionOptions } from './components/Permi
13
13
  import { chat, setProjectContext } from '../api/index.js';
14
14
  import { config, loadApiKey, loadAllApiKeys, getCurrentProvider, autoSaveSession, startNewSession, getCurrentSessionId, loadSession, listSessionsWithInfo, deleteSession, hasReadPermission, hasWritePermission, setProjectPermission, initializeAsProject, isManuallyInitializedProject, setApiKey, setProvider, } from '../config/index.js';
15
15
  import { isProjectDirectory, getProjectContext, } from '../utils/project.js';
16
- import { getCurrentVersion } from '../utils/update.js';
16
+ import { getCurrentVersion, checkForUpdates, getUpdateInstructions } from '../utils/update.js';
17
17
  import { getProviderList } from '../config/providers.js';
18
18
  import { getSessionStats } from '../utils/tokenTracker.js';
19
19
  import { checkApiRateLimit } from '../utils/ratelimit.js';
@@ -399,6 +399,12 @@ Commands (in chat):
399
399
  welcomeLines.push('Shortcuts: /help commands • Ctrl+L clear • Esc cancel');
400
400
  app.addMessage({ role: 'system', content: welcomeLines.join('\n') });
401
401
  app.start();
402
+ // Check for updates in background — show notify if new version available
403
+ checkForUpdates().then(info => {
404
+ if (info.hasUpdate) {
405
+ app.notify(`Update available: v${info.latest} (current: v${info.current})\nRun: ${getUpdateInstructions()}`);
406
+ }
407
+ }).catch(() => { });
402
408
  const showIntroAnimation = process.stdout.rows >= 20;
403
409
  const showPermissionAndContinue = () => {
404
410
  app.showPermission(projectPath, isProject, (permission) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeep",
3
- "version": "1.2.34",
3
+ "version": "1.2.35",
4
4
  "description": "AI-powered coding assistant built for the terminal. Multiple LLM providers, project-aware context, and a seamless development workflow.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",