@aion0/forge 0.5.35 → 0.5.36
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/RELEASE_NOTES.md
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
# Forge v0.5.
|
|
1
|
+
# Forge v0.5.36
|
|
2
2
|
|
|
3
3
|
Released: 2026-04-11
|
|
4
4
|
|
|
5
|
-
## Changes since v0.5.
|
|
5
|
+
## Changes since v0.5.35
|
|
6
6
|
|
|
7
|
-
###
|
|
8
|
-
-
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
- fix: workspace smith bell always sends to Telegram
|
|
9
9
|
|
|
10
|
-
### Other
|
|
11
|
-
- feat(telegram): /i inject command for direct terminal input
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
**Full Changelog**: https://github.com/aiwatching/forge/compare/v0.5.34...v0.5.35
|
|
11
|
+
**Full Changelog**: https://github.com/aiwatching/forge/compare/v0.5.35...v0.5.36
|
|
@@ -3,12 +3,12 @@ import { loadSettings } from '@/lib/settings';
|
|
|
3
3
|
import { addNotification } from '@/lib/notifications';
|
|
4
4
|
|
|
5
5
|
export async function POST(req: Request) {
|
|
6
|
-
const { tabLabel } = await req.json();
|
|
6
|
+
const { tabLabel, source } = await req.json();
|
|
7
7
|
const label = tabLabel || 'Terminal';
|
|
8
8
|
|
|
9
|
-
// Check settings — terminal bell
|
|
9
|
+
// Check settings — terminal bell can be disabled (but workspace smith bells always go through)
|
|
10
10
|
const settings = loadSettings();
|
|
11
|
-
if ((settings as any).terminalBellEnabled === false) {
|
|
11
|
+
if ((settings as any).terminalBellEnabled === false && source !== 'workspace') {
|
|
12
12
|
return NextResponse.json({ ok: true, skipped: true });
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -2025,11 +2025,11 @@ function fireSmithBell(label: string, status: 'done' | 'failed') {
|
|
|
2025
2025
|
if (typeof Notification !== 'undefined' && Notification.permission === 'granted') {
|
|
2026
2026
|
new Notification(title, { body, icon: '/icon.png' });
|
|
2027
2027
|
}
|
|
2028
|
-
// Telegram + in-app via API (reuse terminal-bell endpoint)
|
|
2028
|
+
// Telegram + in-app via API (reuse terminal-bell endpoint, marked as workspace source)
|
|
2029
2029
|
fetch('/api/terminal-bell', {
|
|
2030
2030
|
method: 'POST',
|
|
2031
2031
|
headers: { 'Content-Type': 'application/json' },
|
|
2032
|
-
body: JSON.stringify({ tabLabel: `${label} (${status})
|
|
2032
|
+
body: JSON.stringify({ tabLabel: `${label} (${status})`, source: 'workspace' }),
|
|
2033
2033
|
}).catch(() => {});
|
|
2034
2034
|
}
|
|
2035
2035
|
|
package/next-env.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="next" />
|
|
2
2
|
/// <reference types="next/image-types/global" />
|
|
3
|
-
import "./.next/
|
|
3
|
+
import "./.next/types/routes.d.ts";
|
|
4
4
|
|
|
5
5
|
// NOTE: This file should not be edited
|
|
6
6
|
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
package/package.json
CHANGED