@pixelbyte-software/pixcode 1.53.10 → 1.53.12
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/dist/assets/index-BEyC4q_s.css +32 -0
- package/dist/assets/{index-ChssgA1r.js → index-kP_gZ-wL.js} +178 -178
- package/dist/index.html +2 -2
- package/dist-server/server/database/db.js +26 -0
- package/dist-server/server/database/db.js.map +1 -1
- package/dist-server/server/index.js +290 -57
- package/dist-server/server/index.js.map +1 -1
- package/dist-server/server/projects.js +126 -43
- package/dist-server/server/projects.js.map +1 -1
- package/dist-server/server/routes/git.js +16 -0
- package/dist-server/server/routes/git.js.map +1 -1
- package/dist-server/server/routes/plugins.js +364 -0
- package/dist-server/server/routes/plugins.js.map +1 -1
- package/dist-server/server/services/telegram/bot.js +43 -5
- package/dist-server/server/services/telegram/bot.js.map +1 -1
- package/dist-server/server/services/telegram/control-center.js +169 -5
- package/dist-server/server/services/telegram/control-center.js.map +1 -1
- package/dist-server/server/services/telegram/translations.js +28 -2
- package/dist-server/server/services/telegram/translations.js.map +1 -1
- package/package.json +1 -1
- package/server/database/db.js +26 -0
- package/server/index.js +312 -62
- package/server/projects.js +128 -41
- package/server/routes/git.js +17 -0
- package/server/routes/plugins.js +370 -0
- package/server/services/telegram/bot.js +45 -5
- package/server/services/telegram/control-center.js +173 -5
- package/server/services/telegram/translations.js +28 -2
- package/dist/assets/index-FhOsv2Yy.css +0 -32
|
@@ -75,6 +75,8 @@ const CONTROL_COMMANDS = new Set([
|
|
|
75
75
|
'/workflow',
|
|
76
76
|
'/orchestrate',
|
|
77
77
|
'/cancel',
|
|
78
|
+
'/terminal',
|
|
79
|
+
'/detach',
|
|
78
80
|
'menu',
|
|
79
81
|
]);
|
|
80
82
|
|
|
@@ -509,16 +511,27 @@ function startActivityHeartbeat({ bot, chatId, activity }) {
|
|
|
509
511
|
}
|
|
510
512
|
|
|
511
513
|
function stateSummary(lang, state) {
|
|
512
|
-
|
|
514
|
+
const lines = [
|
|
513
515
|
`${t(lang, 'control.summary.project')}: ${state.selectedProjectName || t(lang, 'control.notSelected')}`,
|
|
514
516
|
`${t(lang, 'control.summary.provider')}: ${state.selectedProvider}${state.selectedModel ? ` / ${state.selectedModel}` : ''}`,
|
|
515
517
|
`${t(lang, 'control.summary.workflow')}: ${state.selectedWorkflowId || t(lang, 'control.notSelected')}`,
|
|
516
518
|
`${t(lang, 'control.summary.progress')}: ${state.progressMode}`,
|
|
517
|
-
]
|
|
519
|
+
];
|
|
520
|
+
if (state.activeTerminal) {
|
|
521
|
+
lines.push(`${t(lang, 'control.summary.terminal')}: ${state.activeTerminal.provider} / ${state.activeTerminal.projectLabel || state.activeTerminal.projectName || compact(state.activeTerminal.projectPath, 50)}`);
|
|
522
|
+
}
|
|
523
|
+
return lines.join('\n');
|
|
518
524
|
}
|
|
519
525
|
|
|
520
|
-
function
|
|
526
|
+
function terminalControlKeyboard(lang) {
|
|
521
527
|
return [
|
|
528
|
+
[button(t(lang, 'control.button.terminalRefresh'), 'terminal_status'), button(t(lang, 'control.button.detachTerminal'), 'detach_terminal')],
|
|
529
|
+
[button(t(lang, 'control.button.mainMenu'), 'menu')],
|
|
530
|
+
];
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
function mainMenuKeyboard(lang, state = null) {
|
|
534
|
+
const keyboard = [
|
|
522
535
|
[button(t(lang, 'control.button.projects'), 'projects'), button(t(lang, 'control.button.provider'), 'providers')],
|
|
523
536
|
[button(t(lang, 'control.button.models'), 'models'), button(t(lang, 'control.button.workflows'), 'workflows')],
|
|
524
537
|
[button(t(lang, 'control.button.runs'), 'runs'), button(t(lang, 'control.button.approvals'), 'approvals')],
|
|
@@ -527,6 +540,10 @@ function mainMenuKeyboard(lang) {
|
|
|
527
540
|
[button(t(lang, 'control.button.install'), 'install_menu'), button(t(lang, 'control.button.auth'), 'auth_menu')],
|
|
528
541
|
[button(t(lang, 'control.button.settings'), 'settings')],
|
|
529
542
|
];
|
|
543
|
+
if (state?.activeTerminal) {
|
|
544
|
+
keyboard.splice(1, 0, [button(t(lang, 'control.button.terminal'), 'terminal_status'), button(t(lang, 'control.button.detachTerminal'), 'detach_terminal')]);
|
|
545
|
+
}
|
|
546
|
+
return keyboard;
|
|
530
547
|
}
|
|
531
548
|
|
|
532
549
|
export async function showMainMenu({ bot, chatId, link, editMessageId, notice }) {
|
|
@@ -535,7 +552,7 @@ export async function showMainMenu({ bot, chatId, link, editMessageId, notice })
|
|
|
535
552
|
const prefix = notice ? `${notice}\n\n` : '';
|
|
536
553
|
await send(bot, chatId, `${prefix}${t(lang, 'control.menu')}\n\n${stateSummary(lang, state)}`, {
|
|
537
554
|
editMessageId,
|
|
538
|
-
reply_markup: { inline_keyboard: mainMenuKeyboard(lang) },
|
|
555
|
+
reply_markup: { inline_keyboard: mainMenuKeyboard(lang, state) },
|
|
539
556
|
});
|
|
540
557
|
}
|
|
541
558
|
|
|
@@ -549,8 +566,146 @@ async function showCommandPalette({ bot, chatId, link, editMessageId, unknown =
|
|
|
549
566
|
const prefix = unknown ? `${t(lang, 'control.unknownCommand')}\n\n` : '';
|
|
550
567
|
await send(bot, chatId, `${prefix}${t(lang, 'control.help')}\n\n${t(lang, 'control.examples')}`, {
|
|
551
568
|
editMessageId,
|
|
552
|
-
reply_markup: { inline_keyboard: mainMenuKeyboard(lang) },
|
|
569
|
+
reply_markup: { inline_keyboard: mainMenuKeyboard(lang, getState(link.user_id)) },
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
function getActiveTerminal(state) {
|
|
574
|
+
const terminal = state?.activeTerminal;
|
|
575
|
+
if (
|
|
576
|
+
!terminal ||
|
|
577
|
+
!PROVIDERS.includes(terminal.provider) ||
|
|
578
|
+
typeof terminal.projectPath !== 'string' ||
|
|
579
|
+
!terminal.projectPath.trim()
|
|
580
|
+
) {
|
|
581
|
+
return null;
|
|
582
|
+
}
|
|
583
|
+
return terminal;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
function terminalProjectLabel(terminal) {
|
|
587
|
+
return terminal?.projectLabel || terminal?.projectName || terminal?.projectPath || '-';
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
function terminalOutputUrl(terminal, maxChars = 3200) {
|
|
591
|
+
const params = new URLSearchParams({
|
|
592
|
+
provider: terminal.provider,
|
|
593
|
+
projectPath: terminal.projectPath,
|
|
594
|
+
maxChars: String(maxChars),
|
|
553
595
|
});
|
|
596
|
+
if (terminal.tabId) params.set('tabId', terminal.tabId);
|
|
597
|
+
if (terminal.sessionId) params.set('sessionId', terminal.sessionId);
|
|
598
|
+
return `/api/shell/sessions/provider-output?${params.toString()}`;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
function renderTerminalSnapshot(lang, terminal, data, { prefix = '' } = {}) {
|
|
602
|
+
const active = data?.active !== false;
|
|
603
|
+
const lifecycle = data?.terminalState || data?.lifecycleState || (active ? 'running' : 'not running');
|
|
604
|
+
const output = String(data?.output || '').trim();
|
|
605
|
+
const lines = [
|
|
606
|
+
prefix || t(lang, active ? 'control.terminalAttached' : 'control.terminalNotRunning'),
|
|
607
|
+
'',
|
|
608
|
+
`🤖 ${t(lang, 'control.activity.provider')}: ${terminal.provider}`,
|
|
609
|
+
`📁 ${t(lang, 'control.activity.project')}: ${compact(terminalProjectLabel(terminal), 90)}`,
|
|
610
|
+
`📌 ${t(lang, 'control.activity.status')}: ${lifecycle}`,
|
|
611
|
+
];
|
|
612
|
+
if (terminal.sessionId || data?.sessionId) {
|
|
613
|
+
lines.push(`🧵 ${t(lang, 'control.activity.session')}: ${terminal.sessionId || data.sessionId}`);
|
|
614
|
+
}
|
|
615
|
+
if (output) {
|
|
616
|
+
lines.push('', `💬 ${t(lang, 'control.activity.output')}:`);
|
|
617
|
+
lines.push(truncate(output, 2400));
|
|
618
|
+
} else {
|
|
619
|
+
lines.push('', t(lang, 'control.terminalNoOutput'));
|
|
620
|
+
}
|
|
621
|
+
return truncate(lines.join('\n'), 3400);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
async function showActiveTerminalStatus({ bot, chatId, link, editMessageId }) {
|
|
625
|
+
const lang = languageFor(link);
|
|
626
|
+
const state = getState(link.user_id);
|
|
627
|
+
const terminal = getActiveTerminal(state);
|
|
628
|
+
if (!terminal) {
|
|
629
|
+
await send(bot, chatId, t(lang, 'control.noActiveTerminal'), {
|
|
630
|
+
editMessageId,
|
|
631
|
+
reply_markup: { inline_keyboard: [[button(t(lang, 'control.button.mainMenu'), 'menu')]] },
|
|
632
|
+
});
|
|
633
|
+
return;
|
|
634
|
+
}
|
|
635
|
+
try {
|
|
636
|
+
const data = await localApi(link.user_id, terminalOutputUrl(terminal), { timeoutMs: 12_000 });
|
|
637
|
+
await send(bot, chatId, renderTerminalSnapshot(lang, terminal, data), {
|
|
638
|
+
editMessageId,
|
|
639
|
+
parse_mode: undefined,
|
|
640
|
+
reply_markup: { inline_keyboard: terminalControlKeyboard(lang) },
|
|
641
|
+
});
|
|
642
|
+
} catch (error) {
|
|
643
|
+
await send(bot, chatId, t(lang, 'control.terminalStatusFailed', { error: error?.message || String(error) }), {
|
|
644
|
+
editMessageId,
|
|
645
|
+
reply_markup: { inline_keyboard: terminalControlKeyboard(lang) },
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
async function detachActiveTerminal({ bot, chatId, link, editMessageId }) {
|
|
651
|
+
const lang = languageFor(link);
|
|
652
|
+
updateTelegramControlState(link.user_id, { activeTerminal: null });
|
|
653
|
+
await send(bot, chatId, t(lang, 'control.terminalDetached'), {
|
|
654
|
+
editMessageId,
|
|
655
|
+
reply_markup: { inline_keyboard: [[button(t(lang, 'control.button.mainMenu'), 'menu')]] },
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
async function sendToActiveTerminal({ bot, chatId, link, text }) {
|
|
660
|
+
const lang = languageFor(link);
|
|
661
|
+
const state = getState(link.user_id);
|
|
662
|
+
const terminal = getActiveTerminal(state);
|
|
663
|
+
if (!terminal) return false;
|
|
664
|
+
if (state.remoteControlEnabled === false) {
|
|
665
|
+
await send(bot, chatId, t(lang, 'control.disabled'));
|
|
666
|
+
return true;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
const sent = await send(bot, chatId, t(lang, 'control.terminalSending', {
|
|
670
|
+
provider: terminal.provider,
|
|
671
|
+
project: terminalProjectLabel(terminal),
|
|
672
|
+
}), {
|
|
673
|
+
parse_mode: undefined,
|
|
674
|
+
reply_markup: { inline_keyboard: terminalControlKeyboard(lang) },
|
|
675
|
+
});
|
|
676
|
+
const editMessageId = sent?.message_id || sent?.message?.message_id || null;
|
|
677
|
+
|
|
678
|
+
try {
|
|
679
|
+
await localApi(link.user_id, '/api/shell/sessions/provider-input', {
|
|
680
|
+
method: 'POST',
|
|
681
|
+
timeoutMs: 15_000,
|
|
682
|
+
body: {
|
|
683
|
+
provider: terminal.provider,
|
|
684
|
+
projectPath: terminal.projectPath,
|
|
685
|
+
tabId: terminal.tabId,
|
|
686
|
+
sessionId: terminal.sessionId,
|
|
687
|
+
input: text,
|
|
688
|
+
submit: true,
|
|
689
|
+
},
|
|
690
|
+
});
|
|
691
|
+
await new Promise((resolve) => setTimeout(resolve, 700));
|
|
692
|
+
const data = await localApi(link.user_id, terminalOutputUrl(terminal), { timeoutMs: 12_000 });
|
|
693
|
+
await send(bot, chatId, renderTerminalSnapshot(lang, terminal, data, {
|
|
694
|
+
prefix: t(lang, 'control.terminalSent'),
|
|
695
|
+
}), {
|
|
696
|
+
editMessageId,
|
|
697
|
+
parse_mode: undefined,
|
|
698
|
+
reply_markup: { inline_keyboard: terminalControlKeyboard(lang) },
|
|
699
|
+
});
|
|
700
|
+
} catch (error) {
|
|
701
|
+
await send(bot, chatId, t(lang, 'control.terminalSendFailed', {
|
|
702
|
+
error: error?.message || String(error),
|
|
703
|
+
}), {
|
|
704
|
+
editMessageId,
|
|
705
|
+
reply_markup: { inline_keyboard: terminalControlKeyboard(lang) },
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
return true;
|
|
554
709
|
}
|
|
555
710
|
|
|
556
711
|
async function listProjects() {
|
|
@@ -1646,6 +1801,14 @@ async function handleCommand({ bot, chatId, link, text }) {
|
|
|
1646
1801
|
await showSessions({ bot, chatId, link });
|
|
1647
1802
|
return true;
|
|
1648
1803
|
}
|
|
1804
|
+
if (command === '/terminal') {
|
|
1805
|
+
await showActiveTerminalStatus({ bot, chatId, link });
|
|
1806
|
+
return true;
|
|
1807
|
+
}
|
|
1808
|
+
if (command === '/detach') {
|
|
1809
|
+
await detachActiveTerminal({ bot, chatId, link });
|
|
1810
|
+
return true;
|
|
1811
|
+
}
|
|
1649
1812
|
if (command === '/newchat') {
|
|
1650
1813
|
await startNewChat({ bot, chatId, link });
|
|
1651
1814
|
return true;
|
|
@@ -1736,6 +1899,9 @@ async function handleTelegramControlMessageInternal({ bot, msg, link }) {
|
|
|
1736
1899
|
if (await handleCommand({ bot, chatId, link, text })) return true;
|
|
1737
1900
|
|
|
1738
1901
|
const state = getState(link.user_id);
|
|
1902
|
+
if (getActiveTerminal(state)) {
|
|
1903
|
+
return sendToActiveTerminal({ bot, chatId, link, text });
|
|
1904
|
+
}
|
|
1739
1905
|
if (state.routerEnabled === false) return false;
|
|
1740
1906
|
if (!state.remoteControlEnabled) {
|
|
1741
1907
|
await send(bot, chatId, t(languageFor(link), 'control.disabled'));
|
|
@@ -1836,6 +2002,8 @@ async function handleTelegramControlCallbackInternal({ bot, query, link }) {
|
|
|
1836
2002
|
if (action === 'control_room') return showControlRoom({ bot, chatId, link, editMessageId });
|
|
1837
2003
|
if (action === 'webhooks') return showWebhookMenu({ bot, chatId, link, editMessageId });
|
|
1838
2004
|
if (action === 'sessions') return showSessions({ bot, chatId, link, editMessageId });
|
|
2005
|
+
if (action === 'terminal_status') return showActiveTerminalStatus({ bot, chatId, link, editMessageId });
|
|
2006
|
+
if (action === 'detach_terminal') return detachActiveTerminal({ bot, chatId, link, editMessageId });
|
|
1839
2007
|
if (action === 'new_chat') return startNewChat({ bot, chatId, link, editMessageId });
|
|
1840
2008
|
if (action === 'install_menu') return showInstallMenu({ bot, chatId, link, editMessageId });
|
|
1841
2009
|
if (action === 'auth_menu') return showAuthMenu({ bot, chatId, link, editMessageId });
|
|
@@ -18,7 +18,7 @@ const EN = {
|
|
|
18
18
|
'bridge.queued': '📨 Message forwarded to your latest session. I will reply when the agent responds.',
|
|
19
19
|
'bridge.disabled': 'Message bridge is disabled. Enable it in Pixcode → Settings → Telegram.',
|
|
20
20
|
'control.menu': 'Pixcode Telegram control center',
|
|
21
|
-
'control.help': 'Commands: /menu, /projects, /provider, /model, /workflows, /runs, /approvals, /control-room, /webhooks, /sessions, /newchat, /chat <prompt>, /workflow <prompt>, /install, /auth, /settings, /progress final|steps|errors|all, /control on|off.',
|
|
21
|
+
'control.help': 'Commands: /menu, /projects, /provider, /model, /workflows, /runs, /approvals, /control-room, /webhooks, /sessions, /terminal, /detach, /newchat, /chat <prompt>, /workflow <prompt>, /install, /auth, /settings, /progress final|steps|errors|all, /control on|off.',
|
|
22
22
|
'control.examples': 'Examples:\n/chat summarize this project\n/chat fix the last error\n/workflow review the current changes\n/settings to change language and progress mode',
|
|
23
23
|
'control.unknownCommand': 'I do not know that command yet. Here are the available Pixcode commands:',
|
|
24
24
|
'control.onboarding': 'How to start:\n/projects to pick a project\n/provider to pick the CLI\n/model to choose the model\n/chat <prompt> to run the current agent\n/workflow <prompt> to run orchestration\n/help to see all commands',
|
|
@@ -26,6 +26,7 @@ const EN = {
|
|
|
26
26
|
'control.summary.provider': 'Provider',
|
|
27
27
|
'control.summary.workflow': 'Workflow',
|
|
28
28
|
'control.summary.progress': 'Progress',
|
|
29
|
+
'control.summary.terminal': 'Terminal',
|
|
29
30
|
'control.notSelected': 'not selected',
|
|
30
31
|
'control.button.projects': 'Projects',
|
|
31
32
|
'control.button.provider': 'Provider',
|
|
@@ -57,6 +58,9 @@ const EN = {
|
|
|
57
58
|
'control.button.deny': 'Deny',
|
|
58
59
|
'control.button.confirm': 'Confirm',
|
|
59
60
|
'control.button.cancel': 'Cancel',
|
|
61
|
+
'control.button.terminal': 'Active terminal',
|
|
62
|
+
'control.button.terminalRefresh': 'Refresh terminal',
|
|
63
|
+
'control.button.detachTerminal': 'Detach terminal',
|
|
60
64
|
'control.noProjects': 'No Pixcode projects were found yet. Add/open a project in Pixcode first.',
|
|
61
65
|
'control.pickProject': 'Pick the project Telegram should control:',
|
|
62
66
|
'control.projectNotFound': 'No project matched "{{query}}". Pick one from the list.',
|
|
@@ -73,6 +77,15 @@ const EN = {
|
|
|
73
77
|
'control.noWebhooks': 'No webhooks are configured yet.',
|
|
74
78
|
'control.noSessions': 'No sessions were found for the selected project.',
|
|
75
79
|
'control.recentSessions': 'Recent sessions:',
|
|
80
|
+
'control.noActiveTerminal': 'No web CLI session is attached to this Telegram chat. Open a CLI tab in Pixcode and press the Telegram button.',
|
|
81
|
+
'control.terminalAttached': '📲 Telegram is attached to this web CLI session. New plain messages will be sent to the terminal.',
|
|
82
|
+
'control.terminalNotRunning': 'The attached CLI terminal is not running anymore.',
|
|
83
|
+
'control.terminalNoOutput': 'No terminal output yet.',
|
|
84
|
+
'control.terminalSending': '📲 Sending to {{provider}} terminal on {{project}}...',
|
|
85
|
+
'control.terminalSent': '📲 Sent to the active terminal. Latest output:',
|
|
86
|
+
'control.terminalSendFailed': 'Could not send to the active terminal: {{error}}',
|
|
87
|
+
'control.terminalStatusFailed': 'Could not read the active terminal: {{error}}',
|
|
88
|
+
'control.terminalDetached': 'Telegram is detached from the web CLI session. Plain messages will use the normal AI router again.',
|
|
76
89
|
'control.newChatReady': 'New chat is ready. Send the prompt you want to run.',
|
|
77
90
|
'control.disabled': 'Telegram remote control is disabled. Enable it in Pixcode → Settings → Telegram or send /control on.',
|
|
78
91
|
'control.selectProjectFirst': 'Select a project first with /projects.',
|
|
@@ -162,7 +175,7 @@ const TR = {
|
|
|
162
175
|
'bridge.queued': '📨 Mesaj son oturumuna iletildi. Ajan cevap verince sana yazacağım.',
|
|
163
176
|
'bridge.disabled': 'Mesaj köprüsü kapalı. Pixcode → Ayarlar → Telegram\'dan açabilirsin.',
|
|
164
177
|
'control.menu': 'Pixcode Telegram kontrol merkezi',
|
|
165
|
-
'control.help': 'Komutlar: /menu, /projects, /provider, /model, /workflows, /runs, /approvals, /control-room, /webhooks, /sessions, /newchat, /chat <prompt>, /workflow <prompt>, /install, /auth, /settings, /progress final|steps|errors|all, /control on|off.',
|
|
178
|
+
'control.help': 'Komutlar: /menu, /projects, /provider, /model, /workflows, /runs, /approvals, /control-room, /webhooks, /sessions, /terminal, /detach, /newchat, /chat <prompt>, /workflow <prompt>, /install, /auth, /settings, /progress final|steps|errors|all, /control on|off.',
|
|
166
179
|
'control.examples': 'Örnekler:\n/chat bu projeyi özetle\n/chat son hatayı düzelt\n/workflow mevcut değişiklikleri incele\n/settings ile dil ve ilerleme modunu değiştir',
|
|
167
180
|
'control.unknownCommand': 'Bu komutu henüz tanımıyorum. Kullanabileceğin Pixcode komutları:',
|
|
168
181
|
'control.onboarding': 'Nasıl başlarsın:\n/projects ile proje seç\n/provider ile CLI seç\n/model ile modeli seç\n/chat <prompt> ile ajanı çalıştır\n/workflow <prompt> ile orkestrasyon başlat\n/help ile tüm komutları gör',
|
|
@@ -170,6 +183,7 @@ const TR = {
|
|
|
170
183
|
'control.summary.provider': 'Sağlayıcı',
|
|
171
184
|
'control.summary.workflow': 'İş akışı',
|
|
172
185
|
'control.summary.progress': 'İlerleme',
|
|
186
|
+
'control.summary.terminal': 'Terminal',
|
|
173
187
|
'control.notSelected': 'seçilmedi',
|
|
174
188
|
'control.button.projects': 'Projeler',
|
|
175
189
|
'control.button.provider': 'Sağlayıcı',
|
|
@@ -201,6 +215,9 @@ const TR = {
|
|
|
201
215
|
'control.button.deny': 'Reddet',
|
|
202
216
|
'control.button.confirm': 'Onayla',
|
|
203
217
|
'control.button.cancel': 'Vazgeç',
|
|
218
|
+
'control.button.terminal': 'Aktif terminal',
|
|
219
|
+
'control.button.terminalRefresh': 'Terminali yenile',
|
|
220
|
+
'control.button.detachTerminal': 'Terminalden ayrıl',
|
|
204
221
|
'control.noProjects': 'Henüz Pixcode projesi bulunamadı. Önce Pixcode içinde proje ekle/aç.',
|
|
205
222
|
'control.pickProject': 'Telegramın kontrol edeceği projeyi seç:',
|
|
206
223
|
'control.projectNotFound': '"{{query}}" ile eşleşen proje bulunamadı. Listeden birini seç.',
|
|
@@ -217,6 +234,15 @@ const TR = {
|
|
|
217
234
|
'control.noWebhooks': 'Henüz webhook yapılandırılmadı.',
|
|
218
235
|
'control.noSessions': 'Seçili proje için oturum bulunamadı.',
|
|
219
236
|
'control.recentSessions': 'Son oturumlar:',
|
|
237
|
+
'control.noActiveTerminal': 'Bu Telegram sohbetine bağlı web CLI oturumu yok. Pixcode içinde CLI tabı açıp Telegram butonuna bas.',
|
|
238
|
+
'control.terminalAttached': '📲 Telegram bu web CLI oturumuna bağlı. Düz mesajlar terminale gönderilecek.',
|
|
239
|
+
'control.terminalNotRunning': 'Bağlı CLI terminali artık çalışmıyor.',
|
|
240
|
+
'control.terminalNoOutput': 'Henüz terminal çıktısı yok.',
|
|
241
|
+
'control.terminalSending': '📲 {{project}} üzerinde {{provider}} terminaline gönderiliyor...',
|
|
242
|
+
'control.terminalSent': '📲 Aktif terminale gönderildi. Son çıktı:',
|
|
243
|
+
'control.terminalSendFailed': 'Aktif terminale gönderilemedi: {{error}}',
|
|
244
|
+
'control.terminalStatusFailed': 'Aktif terminal okunamadı: {{error}}',
|
|
245
|
+
'control.terminalDetached': 'Telegram web CLI oturumundan ayrıldı. Düz mesajlar tekrar normal AI router akışına gidecek.',
|
|
220
246
|
'control.newChatReady': 'Yeni sohbet hazır. Çalıştırmak istediğin promptu gönder.',
|
|
221
247
|
'control.disabled': 'Telegram uzaktan kontrol kapalı. Pixcode → Ayarlar → Telegram içinden aç veya /control on gönder.',
|
|
222
248
|
'control.selectProjectFirst': 'Önce /projects ile proje seç.',
|