@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.
- package/bin/forge-server.mjs +1 -1
- package/lib/telegram-bot.ts +1 -2
- package/package.json +1 -1
package/bin/forge-server.mjs
CHANGED
|
@@ -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
|
}
|
package/lib/telegram-bot.ts
CHANGED
|
@@ -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