@aion0/forge 0.5.23 → 0.5.24
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 +19 -6
- package/app/api/smith-templates/route.ts +81 -0
- package/components/WorkspaceView.tsx +841 -83
- package/lib/claude-sessions.ts +2 -1
- package/lib/forge-mcp-server.ts +247 -33
- package/lib/help-docs/11-workspace.md +722 -166
- package/lib/telegram-bot.ts +1 -1
- package/lib/workspace/orchestrator.ts +263 -76
- package/lib/workspace/presets.ts +535 -58
- package/lib/workspace/requests.ts +287 -0
- package/lib/workspace/session-monitor.ts +4 -3
- package/lib/workspace/types.ts +1 -0
- package/lib/workspace/watch-manager.ts +1 -1
- package/lib/workspace-standalone.ts +1 -1
- package/package.json +1 -1
- package/scripts/bench/README.md +66 -0
- package/scripts/bench/results/.gitignore +2 -0
- package/scripts/bench/run.ts +635 -0
- package/scripts/bench/tasks/01-text-utils/task.md +26 -0
- package/scripts/bench/tasks/01-text-utils/validator.sh +46 -0
- package/scripts/bench/tasks/02-pagination/setup.sh +19 -0
- package/scripts/bench/tasks/02-pagination/task.md +48 -0
- package/scripts/bench/tasks/02-pagination/validator.sh +69 -0
- package/scripts/bench/tasks/03-bug-fix/setup.sh +82 -0
- package/scripts/bench/tasks/03-bug-fix/task.md +30 -0
- package/scripts/bench/tasks/03-bug-fix/validator.sh +29 -0
- package/templates/smith-lead.json +45 -0
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
|
-
# Forge v0.5.
|
|
1
|
+
# Forge v0.5.24
|
|
2
2
|
|
|
3
|
-
Released: 2026-04-
|
|
3
|
+
Released: 2026-04-05
|
|
4
4
|
|
|
5
|
-
## Changes since v0.5.
|
|
5
|
+
## Changes since v0.5.23
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
- feat: add benchmark harness comparing Claude Code vs Forge multi-smith
|
|
9
|
+
- feat: smith mascot animations with theme picker
|
|
10
|
+
- feat: smith templates, topo cache, SOP-driven presets, output conflict fix
|
|
11
|
+
- feat: auto DAG notifications, claim_request for parallel engineers
|
|
12
|
+
- feat: request/response document system for multi-agent delivery workflow
|
|
6
13
|
|
|
7
14
|
### Bug Fixes
|
|
8
|
-
-
|
|
9
|
-
- fix:
|
|
15
|
+
- feat: add benchmark harness comparing Claude Code vs Forge multi-smith
|
|
16
|
+
- fix: Claude Code session path encoding — replace all non-alphanumeric chars
|
|
17
|
+
- fix: add 200ms delay between paste-buffer and Enter in injectIntoSession
|
|
18
|
+
- fix: persistent session agents stay 'starting' until session ready in startDaemon
|
|
19
|
+
|
|
20
|
+
### Other
|
|
21
|
+
- tweak: role injection polish + output warnings + docs rewrite
|
|
22
|
+
- tweak: reduce session-monitor timeout from 60min to 20min
|
|
10
23
|
|
|
11
24
|
|
|
12
|
-
**Full Changelog**: https://github.com/aiwatching/forge/compare/v0.5.
|
|
25
|
+
**Full Changelog**: https://github.com/aiwatching/forge/compare/v0.5.23...v0.5.24
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { NextResponse } from 'next/server';
|
|
2
|
+
import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync, unlinkSync } from 'node:fs';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
import { getDataDir } from '@/lib/dirs';
|
|
5
|
+
|
|
6
|
+
function getTemplatesDir(): string {
|
|
7
|
+
const dir = join(getDataDir(), 'smith-templates');
|
|
8
|
+
if (!existsSync(dir)) mkdirSync(dir, { recursive: true });
|
|
9
|
+
return dir;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface SmithTemplate {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
config: Record<string, any>; // agent config without id/dependsOn/boundSessionId
|
|
18
|
+
createdAt: number;
|
|
19
|
+
updatedAt: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// List all smith templates
|
|
23
|
+
export async function GET() {
|
|
24
|
+
const dir = getTemplatesDir();
|
|
25
|
+
const files = readdirSync(dir).filter(f => f.endsWith('.json'));
|
|
26
|
+
const templates: SmithTemplate[] = [];
|
|
27
|
+
for (const f of files) {
|
|
28
|
+
try {
|
|
29
|
+
const data = JSON.parse(readFileSync(join(dir, f), 'utf-8'));
|
|
30
|
+
templates.push(data);
|
|
31
|
+
} catch {}
|
|
32
|
+
}
|
|
33
|
+
templates.sort((a, b) => (b.updatedAt || 0) - (a.updatedAt || 0));
|
|
34
|
+
return NextResponse.json({ templates });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Save or delete a smith template
|
|
38
|
+
export async function POST(req: Request) {
|
|
39
|
+
const body = await req.json();
|
|
40
|
+
const { action } = body;
|
|
41
|
+
|
|
42
|
+
if (action === 'delete') {
|
|
43
|
+
const { id } = body;
|
|
44
|
+
if (!id) return NextResponse.json({ error: 'id required' }, { status: 400 });
|
|
45
|
+
const fp = join(getTemplatesDir(), `${id}.json`);
|
|
46
|
+
if (existsSync(fp)) unlinkSync(fp);
|
|
47
|
+
return NextResponse.json({ ok: true });
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Save (create or update)
|
|
51
|
+
const { config, name, icon, description } = body;
|
|
52
|
+
if (!config || !name) {
|
|
53
|
+
return NextResponse.json({ error: 'config and name required' }, { status: 400 });
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Strip runtime/instance-specific fields
|
|
57
|
+
const cleanConfig = { ...config };
|
|
58
|
+
delete cleanConfig.id;
|
|
59
|
+
delete cleanConfig.dependsOn;
|
|
60
|
+
delete cleanConfig.boundSessionId;
|
|
61
|
+
delete cleanConfig.tmuxSession;
|
|
62
|
+
delete cleanConfig.content;
|
|
63
|
+
delete cleanConfig.entries;
|
|
64
|
+
delete cleanConfig.type;
|
|
65
|
+
|
|
66
|
+
const id = body.id || `smith-${Date.now()}-${Math.random().toString(36).slice(2, 5)}`;
|
|
67
|
+
const now = Date.now();
|
|
68
|
+
|
|
69
|
+
const template: SmithTemplate = {
|
|
70
|
+
id,
|
|
71
|
+
name: name.trim(),
|
|
72
|
+
icon: icon || cleanConfig.icon || '🤖',
|
|
73
|
+
description: description?.trim() || '',
|
|
74
|
+
config: cleanConfig,
|
|
75
|
+
createdAt: body.id ? (body.createdAt || now) : now,
|
|
76
|
+
updatedAt: now,
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
writeFileSync(join(getTemplatesDir(), `${id}.json`), JSON.stringify(template, null, 2));
|
|
80
|
+
return NextResponse.json({ ok: true, template });
|
|
81
|
+
}
|