ltcai 2.0.0 → 2.2.0
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/README.md +140 -589
- package/auto_setup.py +17 -17
- package/docs/CHANGELOG.md +99 -0
- package/docs/MULTI_AGENT_RUNTIME.md +23 -5
- package/docs/PLUGIN_SDK.md +21 -8
- package/docs/REALTIME_COLLABORATION.md +19 -6
- package/docs/V2_ARCHITECTURE.md +65 -33
- package/docs/WORKFLOW_DESIGNER.md +18 -8
- package/docs/architecture.md +127 -135
- package/docs/kg-schema.md +3 -3
- package/docs/public-deploy.md +2 -3
- package/knowledge_graph.py +2 -2
- package/latticeai/__init__.py +1 -1
- package/latticeai/api/agents.py +57 -1
- package/latticeai/api/marketplace.py +81 -0
- package/latticeai/api/models.py +8 -0
- package/latticeai/api/plugins.py +1 -1
- package/latticeai/api/realtime.py +1 -1
- package/latticeai/api/workflow_designer.py +10 -1
- package/latticeai/core/config.py +1 -1
- package/latticeai/core/graph_curator.py +2 -2
- package/latticeai/core/marketplace.py +178 -0
- package/latticeai/core/model_compat.py +7 -63
- package/latticeai/core/model_resolution.py +1 -1
- package/latticeai/core/multi_agent.py +359 -68
- package/latticeai/core/plugins.py +29 -13
- package/latticeai/core/realtime.py +1 -1
- package/latticeai/core/workflow_engine.py +1 -1
- package/latticeai/core/workspace_os.py +257 -10
- package/latticeai/server_app.py +17 -5
- package/latticeai/services/model_catalog.py +105 -153
- package/latticeai/services/model_recommendation.py +28 -17
- package/latticeai/services/model_runtime.py +2 -2
- package/latticeai/services/platform_runtime.py +9 -5
- package/llm_router.py +80 -92
- package/ltcai_cli.py +2 -3
- package/package.json +2 -2
- package/static/agents.html +47 -3
- package/static/chat.html +5 -6
- package/static/plugins.html +51 -0
- package/static/scripts/chat.js +34 -36
- package/static/workflows.html +22 -0
- package/static/workspace.html +1 -1
- package/telegram_bot.py +1 -1
package/static/scripts/chat.js
CHANGED
|
@@ -227,7 +227,7 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
227
227
|
my_status: '내 상태 보기', auto_setup: '자동 설정',
|
|
228
228
|
nav_home: '홈', nav_chat: '채팅', nav_workspace: 'Workspace OS', nav_knowledge: '지식 그래프',
|
|
229
229
|
nav_pipeline: '파이프라인', nav_files: '내 컴퓨터',
|
|
230
|
-
nav_model_status: '모델 상태', nav_runtime: '
|
|
230
|
+
nav_model_status: '모델 상태', nav_runtime: '실행 방식 설정',
|
|
231
231
|
nav_advanced_settings: '고급 설정',
|
|
232
232
|
history_search_ph: '대화 검색...', new_chat: 'New Chat',
|
|
233
233
|
history_section: '대화', history_empty: '아직 저장된 대화가 없습니다.',
|
|
@@ -235,7 +235,7 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
235
235
|
confirm_delete_chat: '이 대화를 삭제할까요?',
|
|
236
236
|
home_greeting: '안녕하세요, {name}님',
|
|
237
237
|
home_greeting_short: '안녕하세요',
|
|
238
|
-
ops_ai_model: 'AI 모델', ops_local_runtime: '
|
|
238
|
+
ops_ai_model: 'AI 모델', ops_local_runtime: '내 컴퓨터에서 실행',
|
|
239
239
|
ops_admin_network: '관리자 네트워크', ops_admin_security: '관리자 보안',
|
|
240
240
|
ops_pipeline_value: '멀티 LLM 파이프라인',
|
|
241
241
|
ops_pipeline_meta: 'Plan → Execute → Review 모델 설정',
|
|
@@ -248,7 +248,7 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
248
248
|
home_recent_files: '최근 파일', home_open_files: '파일 열기', home_no_files: '파일이 없습니다',
|
|
249
249
|
chat_intro_title: 'Lattice AI',
|
|
250
250
|
chat_intro_desc: '로컬 모델, 파일, 지식 그래프, 멀티모달 작업을 한 대화 흐름에서 연결하는 개인 AI 워크스페이스입니다.',
|
|
251
|
-
chat_cap_file: '파일 생성', chat_cap_knowledge: '지식 정리', chat_cap_runtime: '
|
|
251
|
+
chat_cap_file: '파일 생성', chat_cap_knowledge: '지식 정리', chat_cap_runtime: '내 컴퓨터에서 실행',
|
|
252
252
|
// 계정 모달
|
|
253
253
|
tab_profile: '프로필', tab_password: '비밀번호',
|
|
254
254
|
label_name: '이름', label_nickname: '닉네임',
|
|
@@ -283,12 +283,12 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
283
283
|
mode_default: '기본 모드',
|
|
284
284
|
mode_default_sub: '대화, 파일 생성, 지식 정리를 한 화면에서',
|
|
285
285
|
mode_advanced: '고급 모드',
|
|
286
|
-
mode_advanced_sub: '
|
|
286
|
+
mode_advanced_sub: '같은 기능을 더 자세한 설명으로 표시',
|
|
287
287
|
mode_admin: '관리자 모드',
|
|
288
|
-
mode_admin_sub: '
|
|
288
|
+
mode_admin_sub: '사용자, 정책, 감사 로그 관리',
|
|
289
289
|
// 패널 제목
|
|
290
290
|
model_switcher: '모델 스위처',
|
|
291
|
-
model_switcher_sub: '실행
|
|
291
|
+
model_switcher_sub: '제작 국가, 제작 회사, 실행 방식, 인터넷 사용 여부를 확인하고 모델을 선택합니다.',
|
|
292
292
|
// 권한 다이얼로그
|
|
293
293
|
perm_title: '파일 접근 요청', btn_deny: '거부', btn_allow: '허용',
|
|
294
294
|
},
|
|
@@ -306,7 +306,7 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
306
306
|
my_status: 'My Status', auto_setup: 'Auto Setup',
|
|
307
307
|
nav_home: 'Home', nav_chat: 'Chat', nav_workspace: 'Workspace OS', nav_knowledge: 'Knowledge Graph',
|
|
308
308
|
nav_pipeline: 'Pipeline', nav_files: 'My Computer',
|
|
309
|
-
nav_model_status: 'Model Status', nav_runtime: '
|
|
309
|
+
nav_model_status: 'Model Status', nav_runtime: 'Execution Settings',
|
|
310
310
|
nav_advanced_settings: 'Advanced Settings',
|
|
311
311
|
history_search_ph: 'Search chats...', new_chat: 'New Chat',
|
|
312
312
|
history_section: 'Chats', history_empty: 'No saved chats yet.',
|
|
@@ -314,7 +314,7 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
314
314
|
confirm_delete_chat: 'Delete this chat?',
|
|
315
315
|
home_greeting: 'Hello, {name}',
|
|
316
316
|
home_greeting_short: 'Hello',
|
|
317
|
-
ops_ai_model: 'AI model', ops_local_runtime: '
|
|
317
|
+
ops_ai_model: 'AI model', ops_local_runtime: 'Runs on this computer',
|
|
318
318
|
ops_admin_network: 'Admin Network', ops_admin_security: 'Admin Security',
|
|
319
319
|
ops_pipeline_value: 'Multi-LLM Pipeline',
|
|
320
320
|
ops_pipeline_meta: 'Plan → Execute → Review model setup',
|
|
@@ -327,7 +327,7 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
327
327
|
home_recent_files: 'Recent Files', home_open_files: 'Open Files', home_no_files: 'No files yet',
|
|
328
328
|
chat_intro_title: 'Lattice AI',
|
|
329
329
|
chat_intro_desc: 'A personal AI workspace that connects local models, files, knowledge graphs, and multimodal work in one conversation flow.',
|
|
330
|
-
chat_cap_file: 'File creation', chat_cap_knowledge: 'Knowledge organizing', chat_cap_runtime: '
|
|
330
|
+
chat_cap_file: 'File creation', chat_cap_knowledge: 'Knowledge organizing', chat_cap_runtime: 'Runs on this computer',
|
|
331
331
|
// Account modal
|
|
332
332
|
tab_profile: 'Profile', tab_password: 'Password',
|
|
333
333
|
label_name: 'Name', label_nickname: 'Nickname',
|
|
@@ -367,7 +367,7 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
367
367
|
mode_admin_sub: 'Admin dashboard for operators',
|
|
368
368
|
// Panel titles
|
|
369
369
|
model_switcher: 'Model Switcher',
|
|
370
|
-
model_switcher_sub: '
|
|
370
|
+
model_switcher_sub: 'Check maker country, maker company, execution method, internet use, then select a model.',
|
|
371
371
|
// Permission dialog
|
|
372
372
|
perm_title: 'File Access Request', btn_deny: 'Deny', btn_allow: 'Allow',
|
|
373
373
|
}
|
|
@@ -650,11 +650,8 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
650
650
|
}
|
|
651
651
|
|
|
652
652
|
async function _loadHomeDashboard() {
|
|
653
|
-
const mode = getCurrentMode();
|
|
654
|
-
|
|
655
|
-
// 자동 설정 카드: 고급/관리자 모드만
|
|
656
653
|
const setupCard = document.getElementById('home-setup-card');
|
|
657
|
-
if (setupCard) setupCard.style.display =
|
|
654
|
+
if (setupCard) setupCard.style.display = 'flex';
|
|
658
655
|
|
|
659
656
|
// 모델 + sysinfo 병렬 fetch
|
|
660
657
|
try {
|
|
@@ -953,7 +950,7 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
953
950
|
const selected = models.find(item => item.checked && !item.disabled && (item.model_id || item.action?.model_id))
|
|
954
951
|
|| models.find(item => !item.disabled && (item.model_id || item.action?.model_id));
|
|
955
952
|
const zero = onboardingRecs?.summary?.zero_config || onboardingEnv?.zero_config?.recommend || {};
|
|
956
|
-
const modelId = selected?.model_id || selected?.action?.model_id || zero.model_id || 'mlx-community/
|
|
953
|
+
const modelId = selected?.model_id || selected?.action?.model_id || zero.model_id || 'mlx-community/gemma-4-12b-it-4bit';
|
|
957
954
|
const engineItem = (onboardingRecs?.engines || []).find(item => item.checked && !item.disabled);
|
|
958
955
|
const runtime = engineItem?.name || (zero.runtime === 'mlx' ? 'MLX' : zero.runtime) || 'MLX';
|
|
959
956
|
return {
|
|
@@ -1351,7 +1348,7 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
1351
1348
|
<button class="onboarding-mode" onclick="finishOnboarding('advanced')">
|
|
1352
1349
|
<i class="ti ti-terminal-2"></i>
|
|
1353
1350
|
<h3>고급 모드</h3>
|
|
1354
|
-
<p
|
|
1351
|
+
<p>같은 기능을 유지하면서 모델, 메모리, 실행 방식 설명을 더 자세히 표시합니다.</p>
|
|
1355
1352
|
</button>
|
|
1356
1353
|
${adminCard}
|
|
1357
1354
|
</div>
|
|
@@ -1528,7 +1525,7 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
1528
1525
|
const isUnavailable = unsupported || (!isLocalEngine && engineMissing) || keyMissing || verifyFailed;
|
|
1529
1526
|
const badge = unsupported ? '현재 환경 미지원'
|
|
1530
1527
|
: engineMissing && isLocalEngine ? '설치 후 자동 로드'
|
|
1531
|
-
: engineMissing ? '
|
|
1528
|
+
: engineMissing ? '실행 도구 설치 필요'
|
|
1532
1529
|
: needsPull ? '다운로드 후 자동 로드'
|
|
1533
1530
|
: keyMissing ? `필요: ${model.requires || 'API key'}`
|
|
1534
1531
|
: verifyFailed ? `실패: ${model.verify_reason || '검증 실패'}`
|
|
@@ -1539,11 +1536,19 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
1539
1536
|
const action = isLocalEngine
|
|
1540
1537
|
? `selectModelByCard('${encodeURIComponent(model.id)}', '${engine?.id || ''}')`
|
|
1541
1538
|
: `loadSelectedModel('${encodeURIComponent(model.id)}', '${engine?.id || ''}')`;
|
|
1539
|
+
const sourceLine = [
|
|
1540
|
+
model.source_country,
|
|
1541
|
+
model.source_company,
|
|
1542
|
+
model.execution_method,
|
|
1543
|
+
model.internet_requirement,
|
|
1544
|
+
model.model_name || model.name,
|
|
1545
|
+
].filter(Boolean).join(' · ');
|
|
1546
|
+
const detailLine = sourceLine || `${model.id} · ${badge}`;
|
|
1542
1547
|
return `
|
|
1543
1548
|
<button class="model-option${cls}" ${isUnavailable ? 'disabled' : ''} onclick="${action}">
|
|
1544
1549
|
<div>
|
|
1545
1550
|
<strong>${escapeHtml(model.name || compactModelName(model.id))}</strong>
|
|
1546
|
-
<span>${escapeHtml(model.id)} · ${escapeHtml(badge)}</span>
|
|
1551
|
+
<span>${escapeHtml(detailLine)}${sourceLine ? `<br>${escapeHtml(model.id)} · ${escapeHtml(badge)}` : ''}</span>
|
|
1547
1552
|
</div>
|
|
1548
1553
|
<i class="ti ${icon}"></i>
|
|
1549
1554
|
</button>
|
|
@@ -1556,12 +1561,9 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
1556
1561
|
if (raw.includes('claude')) return 'Claude';
|
|
1557
1562
|
if (raw.includes('grok')) return 'Grok';
|
|
1558
1563
|
if (raw.includes('gemini')) return 'Gemini';
|
|
1559
|
-
if (raw.includes('mistral') || raw.includes('mixtral')) return 'Mistral';
|
|
1560
1564
|
if (raw.includes('qwen')) return 'Qwen';
|
|
1561
1565
|
if (raw.includes('llama')) return 'Llama';
|
|
1562
1566
|
if (raw.includes('gemma')) return 'Gemma';
|
|
1563
|
-
if (raw.includes('phi')) return 'Phi';
|
|
1564
|
-
if (raw.includes('deepseek')) return 'DeepSeek';
|
|
1565
1567
|
return (model?.family || '기타');
|
|
1566
1568
|
}
|
|
1567
1569
|
|
|
@@ -1642,17 +1644,17 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
1642
1644
|
const cloudEngines = cachedEngineList.filter(engine => engine.kind === 'cloud');
|
|
1643
1645
|
const isLocal = modelPanelFilter === 'local';
|
|
1644
1646
|
const target = isLocal ? localEngines : cloudEngines;
|
|
1645
|
-
const emptyText = isLocal ? '
|
|
1647
|
+
const emptyText = isLocal ? '내 컴퓨터에서 실행할 수 있는 항목이 없습니다.' : '인터넷 연결 후 사용할 수 있는 항목이 없습니다.';
|
|
1646
1648
|
|
|
1647
1649
|
modelList.innerHTML = `
|
|
1648
|
-
<div class="model-group-title"
|
|
1650
|
+
<div class="model-group-title">실행 방식</div>
|
|
1649
1651
|
<div class="model-filter">
|
|
1650
|
-
<button class="model-filter-btn ${isLocal ? 'active' : ''}" onclick="setModelPanelFilter('local')"
|
|
1651
|
-
<button class="model-filter-btn ${!isLocal ? 'active' : ''}" onclick="setModelPanelFilter('cloud')"
|
|
1652
|
+
<button class="model-filter-btn ${isLocal ? 'active' : ''}" onclick="setModelPanelFilter('local')">내 컴퓨터에서만 실행</button>
|
|
1653
|
+
<button class="model-filter-btn ${!isLocal ? 'active' : ''}" onclick="setModelPanelFilter('cloud')">인터넷 연결 후 사용</button>
|
|
1652
1654
|
</div>
|
|
1653
1655
|
${!isLocal ? `
|
|
1654
1656
|
<div style="display:flex;justify-content:flex-end;margin:-2px 0 8px;">
|
|
1655
|
-
<button class="admin-action" onclick="verifyCloudModels(true)"><i class="ti ti-activity"></i>
|
|
1657
|
+
<button class="admin-action" onclick="verifyCloudModels(true)"><i class="ti ti-activity"></i> 인터넷 모델 실사용 테스트</button>
|
|
1656
1658
|
</div>
|
|
1657
1659
|
` : ''}
|
|
1658
1660
|
${target.length ? target.map(engineCardHtml).join('') : `<div class="sensitivity-preview">${emptyText}</div>`}
|
|
@@ -1680,7 +1682,7 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
1680
1682
|
|
|
1681
1683
|
async function verifyCloudModels(force = true) {
|
|
1682
1684
|
const modelList = document.getElementById('model-list');
|
|
1683
|
-
modelList.innerHTML = `<div class="sensitivity-preview"
|
|
1685
|
+
modelList.innerHTML = `<div class="sensitivity-preview">인터넷 모델 실사용 테스트 중입니다... (연결 방식별로 수 초~수십 초)</div>`;
|
|
1684
1686
|
try {
|
|
1685
1687
|
const res = await apiFetch('/engines/verify-cloud', {
|
|
1686
1688
|
method: 'POST',
|
|
@@ -1688,9 +1690,9 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
1688
1690
|
body: JSON.stringify({ force })
|
|
1689
1691
|
});
|
|
1690
1692
|
const data = await res.json();
|
|
1691
|
-
if (!res.ok) throw new Error(data.detail || '
|
|
1693
|
+
if (!res.ok) throw new Error(data.detail || '인터넷 모델 실사용 테스트 실패');
|
|
1692
1694
|
await openModelPanel();
|
|
1693
|
-
addMessage('ai',
|
|
1695
|
+
addMessage('ai', `인터넷 모델 실사용 테스트를 완료했습니다. 실패한 모델은 잠금 상태로 표시됩니다.`);
|
|
1694
1696
|
} catch (e) {
|
|
1695
1697
|
modelList.innerHTML = `
|
|
1696
1698
|
<div class="sensitivity-preview">${escapeHtml(e.message)}</div>
|
|
@@ -1832,7 +1834,7 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
1832
1834
|
</div>
|
|
1833
1835
|
</div>
|
|
1834
1836
|
<div id="model-download-detail" class="model-download-detail">
|
|
1835
|
-
|
|
1837
|
+
실행 도구 설치, 모델 다운로드, 연결 준비, 로드까지 자동으로 진행합니다. 첫 실행은 수 분이 걸릴 수 있습니다.
|
|
1836
1838
|
</div>
|
|
1837
1839
|
</div>
|
|
1838
1840
|
`;
|
|
@@ -4363,7 +4365,7 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
4363
4365
|
const keys = env.api_keys || {};
|
|
4364
4366
|
|
|
4365
4367
|
const mlxLabel = mlx.available
|
|
4366
|
-
? (mlx.
|
|
4368
|
+
? (mlx.mlx_vlm ? 'MLX-VLM 설치됨' : 'MLX 설치됨 · MLX-VLM 필요')
|
|
4367
4369
|
: '미설치';
|
|
4368
4370
|
|
|
4369
4371
|
const cloudKeys = Object.entries(keys).filter(([,v]) => v).map(([k]) => k.toUpperCase());
|
|
@@ -4378,7 +4380,7 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
4378
4380
|
{ icon: mlx.available ? '✅' : '⚠️', label: 'MLX', value: mlxLabel, ok: mlx.available },
|
|
4379
4381
|
{ icon: tools.ollama ? '✅' : '○', label: 'Ollama', value: tools.ollama ? '설치됨' : '미설치', ok: true },
|
|
4380
4382
|
{ icon: tools.brew ? '✅' : '○', label: 'Homebrew', value: tools.brew ? '설치됨' : '미설치', ok: true },
|
|
4381
|
-
{ icon: cloudKeys.length ? '✅' : '○', label: '
|
|
4383
|
+
{ icon: cloudKeys.length ? '✅' : '○', label: '인터넷 AI',
|
|
4382
4384
|
value: cloudKeys.length ? cloudKeys.join(', ') : '없음', ok: true },
|
|
4383
4385
|
{ icon: env.os === 'Darwin' ? '🍎' : '🐧',
|
|
4384
4386
|
label: '운영체제',
|
|
@@ -4607,10 +4609,6 @@ const chatViewport = document.getElementById('chat-viewport');
|
|
|
4607
4609
|
let _mcpCurrentTab = 'registry';
|
|
4608
4610
|
|
|
4609
4611
|
async function openMcpModal() {
|
|
4610
|
-
if (getCurrentMode() === 'default') {
|
|
4611
|
-
showToast('고급 모드에서 사용할 수 있습니다.');
|
|
4612
|
-
return;
|
|
4613
|
-
}
|
|
4614
4612
|
document.getElementById('mcp-modal-overlay').classList.add('open');
|
|
4615
4613
|
await renderMcpModal(_mcpCurrentTab);
|
|
4616
4614
|
}
|
package/static/workflows.html
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
<h3>Run history</h3>
|
|
36
36
|
<div id="runs"><div class="empty">No runs yet.</div></div>
|
|
37
37
|
</div>
|
|
38
|
+
|
|
39
|
+
<div class="section">
|
|
40
|
+
<h3>Replay viewer</h3>
|
|
41
|
+
<div id="replay"><div class="empty">Select a workflow run.</div></div>
|
|
42
|
+
</div>
|
|
38
43
|
</main>
|
|
39
44
|
|
|
40
45
|
<script type="module">
|
|
@@ -109,10 +114,27 @@
|
|
|
109
114
|
<div class="card" style="margin-bottom:10px">
|
|
110
115
|
<div class="row"><h3>${escapeHtml(r.name)}</h3><div class="spacer"></div>${badge(r.status)}</div>
|
|
111
116
|
<div class="meta">${escapeHtml(r.created_at)} · ${ (r.timeline||[]).length } steps</div>
|
|
117
|
+
<div class="row" style="margin-top:10px"><button class="ghost" data-replay="${r.id}">Replay</button></div>
|
|
112
118
|
<pre>${escapeHtml(JSON.stringify(r.timeline, null, 2))}</pre>
|
|
113
119
|
</div>`).join("");
|
|
114
120
|
}
|
|
115
121
|
|
|
122
|
+
document.getElementById("runs").addEventListener("click", async (e) => {
|
|
123
|
+
const btn = e.target.closest("button[data-replay]");
|
|
124
|
+
if (!btn) return;
|
|
125
|
+
const out = document.getElementById("replay");
|
|
126
|
+
out.innerHTML = `<div class="empty">Loading replay…</div>`;
|
|
127
|
+
try {
|
|
128
|
+
const data = await api(`/workflows/api/runs/${btn.dataset.replay}/replay`);
|
|
129
|
+
const frames = data.replay.frames || [];
|
|
130
|
+
out.innerHTML = frames.map((f) => `<div class="timeline-item">
|
|
131
|
+
<div class="row"><strong>${escapeHtml(f.event)}</strong><div class="spacer"></div>${badge(f.decision || "event")}</div>
|
|
132
|
+
<div class="t-meta">${escapeHtml(String(f.actor||""))} · ${escapeHtml(f.when||"")}</div>
|
|
133
|
+
<pre>${escapeHtml(JSON.stringify({ why: f.why, input: f.input, output: f.output }, null, 2))}</pre>
|
|
134
|
+
</div>`).join("") || `<div class="empty">No replay frames.</div>`;
|
|
135
|
+
} catch (err) { out.innerHTML = `<div class="empty">${escapeHtml(err.message)}</div>`; }
|
|
136
|
+
});
|
|
137
|
+
|
|
116
138
|
loadTemplate();
|
|
117
139
|
loadList().catch((e) => toast(e.message));
|
|
118
140
|
loadRuns().catch(() => {});
|
package/static/workspace.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32.png">
|
|
9
9
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap">
|
|
10
10
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css">
|
|
11
|
-
<link rel="stylesheet" href="/static/workspace.css?v=2.
|
|
11
|
+
<link rel="stylesheet" href="/static/workspace.css?v=2.2.0">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div class="workspace-shell">
|
package/telegram_bot.py
CHANGED
|
@@ -840,7 +840,7 @@ async def handle_command(client, chat_id, command: str, args: str):
|
|
|
840
840
|
await send_message(client, chat_id, HELP_TEXT)
|
|
841
841
|
elif cmd == "agent":
|
|
842
842
|
if not args:
|
|
843
|
-
await send_message(client, chat_id, "사용법: /agent <작업 내용>\n예: /agent 쇼핑몰 메인 페이지 HTML 만들어줘\n\n특정
|
|
843
|
+
await send_message(client, chat_id, "사용법: /agent <작업 내용>\n예: /agent 쇼핑몰 메인 페이지 HTML 만들어줘\n\n특정 AI 지정:\n/agent <작업> --exec openai/gpt-4o --review together:Qwen/Qwen3-VL-32B-Instruct")
|
|
844
844
|
return
|
|
845
845
|
# Parse optional --exec / --review flags
|
|
846
846
|
exec_model = reviewing_model = None
|