@aion0/forge 0.2.6 → 0.2.7

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.
@@ -180,7 +180,7 @@ if (isDev) {
180
180
  });
181
181
  child.on('exit', (code) => process.exit(code || 0));
182
182
  } else {
183
- if (!existsSync(join(ROOT, '.next'))) {
183
+ if (!existsSync(join(ROOT, '.next', 'BUILD_ID'))) {
184
184
  console.log('[forge] Building...');
185
185
  execSync('npx next build', { cwd: ROOT, stdio: 'inherit', env: { ...process.env } });
186
186
  }
@@ -1202,12 +1202,11 @@ async function handleDocs(chatId: number, input: string) {
1202
1202
  } catch {}
1203
1203
 
1204
1204
  const recent = entries.slice(-8).join('\n\n');
1205
- const header = `šŸ“– Docs: ${docRoot.split('/').pop()}\nšŸ“‹ Session: ${sessionId.slice(0, 12)}${summary ? ` • AI: ${tModel}` : ''}\n`;
1206
-
1207
1205
  const tModel = loadSettings().telegramModel || 'sonnet';
1208
1206
  const summary = entries.length > 3
1209
1207
  ? await aiSummarize(entries.slice(-15).join('\n'), 'Summarize this Claude Code session in 2-3 sentences. What was the user working on? What is the current status? Answer in the same language as the content.')
1210
1208
  : '';
1209
+ const header = `šŸ“– Docs: ${docRoot.split('/').pop()}\nšŸ“‹ Session: ${sessionId.slice(0, 12)}${summary ? ` • AI: ${tModel}` : ''}\n`;
1211
1210
  const summaryBlock = summary ? `\nšŸ“ (${tModel}) ${summary}\n` : '';
1212
1211
 
1213
1212
  const fullText = header + summaryBlock + '\n--- Recent ---\n' + recent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aion0/forge",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Unified AI workflow platform — multi-model task orchestration, persistent sessions, web terminal, remote access",
5
5
  "type": "module",
6
6
  "scripts": {