@pixelbyte-software/pixcode 1.53.11 → 1.53.13
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-Bo8oVc2f.js → index-CZReJ0_S.js} +184 -184
- 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 +269 -53
- 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/auth.js +41 -1
- package/dist-server/server/routes/auth.js.map +1 -1
- package/dist-server/server/routes/network.js +17 -1
- package/dist-server/server/routes/network.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/external-access.js +45 -21
- package/dist-server/server/services/external-access.js.map +1 -1
- package/dist-server/server/services/qr-login.js +115 -0
- package/dist-server/server/services/qr-login.js.map +1 -0
- package/dist-server/server/services/telegram/bot.js +18 -1
- package/dist-server/server/services/telegram/bot.js.map +1 -1
- package/dist-server/server/services/telegram/control-center.js +187 -5
- package/dist-server/server/services/telegram/control-center.js.map +1 -1
- package/dist-server/server/services/telegram/translations.js +34 -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 +291 -58
- package/server/projects.js +128 -41
- package/server/routes/auth.js +47 -1
- package/server/routes/network.js +18 -1
- package/server/routes/plugins.js +370 -0
- package/server/services/external-access.js +49 -21
- package/server/services/qr-login.js +126 -0
- package/server/services/telegram/bot.js +15 -0
- package/server/services/telegram/control-center.js +192 -5
- package/server/services/telegram/translations.js +34 -2
- package/dist/assets/index-FhOsv2Yy.css +0 -32
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
handleTelegramControlCallback,
|
|
8
8
|
handleTelegramControlMessage,
|
|
9
9
|
isTelegramControlCommand,
|
|
10
|
+
sendActiveTerminalAttachedNotice,
|
|
10
11
|
showMainMenu,
|
|
11
12
|
} from './control-center.js';
|
|
12
13
|
import { t } from './translations.js';
|
|
@@ -359,6 +360,20 @@ export const notifyUser = async ({ userId, kind, title, error }) => {
|
|
|
359
360
|
return sendToUser(userId, text);
|
|
360
361
|
};
|
|
361
362
|
|
|
363
|
+
export const notifyTelegramTerminalAttached = async ({ userId, terminal }) => {
|
|
364
|
+
const link = telegramLinksDb.getByUserId(userId);
|
|
365
|
+
if (!bot) return { ok: false, reason: 'bot_not_running' };
|
|
366
|
+
if (!link?.chat_id || !link?.verified_at) return { ok: false, reason: 'telegram_not_paired' };
|
|
367
|
+
if (!terminal) return { ok: false, reason: 'missing_terminal' };
|
|
368
|
+
try {
|
|
369
|
+
await sendActiveTerminalAttachedNotice({ bot, chatId: link.chat_id, link, terminal });
|
|
370
|
+
return { ok: true };
|
|
371
|
+
} catch (err) {
|
|
372
|
+
console.warn('[telegram] terminal attach notice failed:', err?.message || err);
|
|
373
|
+
return { ok: false, reason: err?.message || String(err) };
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
|
|
362
377
|
// Boot the bot automatically if a token was previously persisted. This runs
|
|
363
378
|
// once during server startup so a restart doesn't silently un-pair everyone.
|
|
364
379
|
export const restoreBotFromConfig = async () => {
|
|
@@ -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,165 @@ 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),
|
|
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 = '', includeOutput = false } = {}) {
|
|
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 (includeOutput && output) {
|
|
616
|
+
lines.push('', `💬 ${t(lang, 'control.activity.output')}:`);
|
|
617
|
+
lines.push(truncate(output, 2400));
|
|
618
|
+
} else {
|
|
619
|
+
lines.push('', t(lang, 'control.terminalOutputHidden'));
|
|
620
|
+
}
|
|
621
|
+
return truncate(lines.join('\n'), 3400);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
export async function sendActiveTerminalAttachedNotice({ bot, chatId, link, terminal }) {
|
|
625
|
+
const lang = languageFor(link);
|
|
626
|
+
const lines = [
|
|
627
|
+
t(lang, 'control.terminalAttached'),
|
|
628
|
+
'',
|
|
629
|
+
`🤖 ${t(lang, 'control.activity.provider')}: ${terminal.provider}`,
|
|
630
|
+
`📁 ${t(lang, 'control.activity.project')}: ${compact(terminalProjectLabel(terminal), 90)}`,
|
|
631
|
+
`📌 ${t(lang, 'control.activity.status')}: ${t(lang, 'control.terminalReadyStatus')}`,
|
|
632
|
+
];
|
|
633
|
+
if (terminal.sessionId) {
|
|
634
|
+
lines.push(`🧵 ${t(lang, 'control.activity.session')}: ${terminal.sessionId}`);
|
|
635
|
+
}
|
|
636
|
+
lines.push('', t(lang, 'control.terminalReadyPrompt'));
|
|
637
|
+
await send(bot, chatId, truncate(lines.join('\n'), 3400), {
|
|
638
|
+
parse_mode: undefined,
|
|
639
|
+
reply_markup: { inline_keyboard: terminalControlKeyboard(lang) },
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
async function showActiveTerminalStatus({ bot, chatId, link, editMessageId }) {
|
|
644
|
+
const lang = languageFor(link);
|
|
645
|
+
const state = getState(link.user_id);
|
|
646
|
+
const terminal = getActiveTerminal(state);
|
|
647
|
+
if (!terminal) {
|
|
648
|
+
await send(bot, chatId, t(lang, 'control.noActiveTerminal'), {
|
|
649
|
+
editMessageId,
|
|
650
|
+
reply_markup: { inline_keyboard: [[button(t(lang, 'control.button.mainMenu'), 'menu')]] },
|
|
651
|
+
});
|
|
652
|
+
return;
|
|
653
|
+
}
|
|
654
|
+
try {
|
|
655
|
+
const data = await localApi(link.user_id, terminalOutputUrl(terminal), { timeoutMs: 12_000 });
|
|
656
|
+
await send(bot, chatId, renderTerminalSnapshot(lang, terminal, data), {
|
|
657
|
+
editMessageId,
|
|
658
|
+
parse_mode: undefined,
|
|
659
|
+
reply_markup: { inline_keyboard: terminalControlKeyboard(lang) },
|
|
660
|
+
});
|
|
661
|
+
} catch (error) {
|
|
662
|
+
await send(bot, chatId, t(lang, 'control.terminalStatusFailed', { error: error?.message || String(error) }), {
|
|
663
|
+
editMessageId,
|
|
664
|
+
reply_markup: { inline_keyboard: terminalControlKeyboard(lang) },
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
async function detachActiveTerminal({ bot, chatId, link, editMessageId }) {
|
|
670
|
+
const lang = languageFor(link);
|
|
671
|
+
updateTelegramControlState(link.user_id, { activeTerminal: null });
|
|
672
|
+
await send(bot, chatId, t(lang, 'control.terminalDetached'), {
|
|
673
|
+
editMessageId,
|
|
674
|
+
reply_markup: { inline_keyboard: [[button(t(lang, 'control.button.mainMenu'), 'menu')]] },
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
async function sendToActiveTerminal({ bot, chatId, link, text }) {
|
|
679
|
+
const lang = languageFor(link);
|
|
680
|
+
const state = getState(link.user_id);
|
|
681
|
+
const terminal = getActiveTerminal(state);
|
|
682
|
+
if (!terminal) return false;
|
|
683
|
+
if (state.remoteControlEnabled === false) {
|
|
684
|
+
await send(bot, chatId, t(lang, 'control.disabled'));
|
|
685
|
+
return true;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
const sent = await send(bot, chatId, t(lang, 'control.terminalSending', {
|
|
689
|
+
provider: terminal.provider,
|
|
690
|
+
project: terminalProjectLabel(terminal),
|
|
691
|
+
}), {
|
|
692
|
+
parse_mode: undefined,
|
|
693
|
+
reply_markup: { inline_keyboard: terminalControlKeyboard(lang) },
|
|
553
694
|
});
|
|
695
|
+
const editMessageId = sent?.message_id || sent?.message?.message_id || null;
|
|
696
|
+
|
|
697
|
+
try {
|
|
698
|
+
await localApi(link.user_id, '/api/shell/sessions/provider-input', {
|
|
699
|
+
method: 'POST',
|
|
700
|
+
timeoutMs: 15_000,
|
|
701
|
+
body: {
|
|
702
|
+
provider: terminal.provider,
|
|
703
|
+
projectPath: terminal.projectPath,
|
|
704
|
+
tabId: terminal.tabId,
|
|
705
|
+
sessionId: terminal.sessionId,
|
|
706
|
+
input: text,
|
|
707
|
+
submit: true,
|
|
708
|
+
},
|
|
709
|
+
});
|
|
710
|
+
await new Promise((resolve) => setTimeout(resolve, 700));
|
|
711
|
+
const data = await localApi(link.user_id, terminalOutputUrl(terminal), { timeoutMs: 12_000 });
|
|
712
|
+
await send(bot, chatId, renderTerminalSnapshot(lang, terminal, data, {
|
|
713
|
+
prefix: t(lang, 'control.terminalSent'),
|
|
714
|
+
}), {
|
|
715
|
+
editMessageId,
|
|
716
|
+
parse_mode: undefined,
|
|
717
|
+
reply_markup: { inline_keyboard: terminalControlKeyboard(lang) },
|
|
718
|
+
});
|
|
719
|
+
} catch (error) {
|
|
720
|
+
await send(bot, chatId, t(lang, 'control.terminalSendFailed', {
|
|
721
|
+
error: error?.message || String(error),
|
|
722
|
+
}), {
|
|
723
|
+
editMessageId,
|
|
724
|
+
reply_markup: { inline_keyboard: terminalControlKeyboard(lang) },
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
return true;
|
|
554
728
|
}
|
|
555
729
|
|
|
556
730
|
async function listProjects() {
|
|
@@ -1646,6 +1820,14 @@ async function handleCommand({ bot, chatId, link, text }) {
|
|
|
1646
1820
|
await showSessions({ bot, chatId, link });
|
|
1647
1821
|
return true;
|
|
1648
1822
|
}
|
|
1823
|
+
if (command === '/terminal') {
|
|
1824
|
+
await showActiveTerminalStatus({ bot, chatId, link });
|
|
1825
|
+
return true;
|
|
1826
|
+
}
|
|
1827
|
+
if (command === '/detach') {
|
|
1828
|
+
await detachActiveTerminal({ bot, chatId, link });
|
|
1829
|
+
return true;
|
|
1830
|
+
}
|
|
1649
1831
|
if (command === '/newchat') {
|
|
1650
1832
|
await startNewChat({ bot, chatId, link });
|
|
1651
1833
|
return true;
|
|
@@ -1736,6 +1918,9 @@ async function handleTelegramControlMessageInternal({ bot, msg, link }) {
|
|
|
1736
1918
|
if (await handleCommand({ bot, chatId, link, text })) return true;
|
|
1737
1919
|
|
|
1738
1920
|
const state = getState(link.user_id);
|
|
1921
|
+
if (getActiveTerminal(state)) {
|
|
1922
|
+
return sendToActiveTerminal({ bot, chatId, link, text });
|
|
1923
|
+
}
|
|
1739
1924
|
if (state.routerEnabled === false) return false;
|
|
1740
1925
|
if (!state.remoteControlEnabled) {
|
|
1741
1926
|
await send(bot, chatId, t(languageFor(link), 'control.disabled'));
|
|
@@ -1836,6 +2021,8 @@ async function handleTelegramControlCallbackInternal({ bot, query, link }) {
|
|
|
1836
2021
|
if (action === 'control_room') return showControlRoom({ bot, chatId, link, editMessageId });
|
|
1837
2022
|
if (action === 'webhooks') return showWebhookMenu({ bot, chatId, link, editMessageId });
|
|
1838
2023
|
if (action === 'sessions') return showSessions({ bot, chatId, link, editMessageId });
|
|
2024
|
+
if (action === 'terminal_status') return showActiveTerminalStatus({ bot, chatId, link, editMessageId });
|
|
2025
|
+
if (action === 'detach_terminal') return detachActiveTerminal({ bot, chatId, link, editMessageId });
|
|
1839
2026
|
if (action === 'new_chat') return startNewChat({ bot, chatId, link, editMessageId });
|
|
1840
2027
|
if (action === 'install_menu') return showInstallMenu({ bot, chatId, link, editMessageId });
|
|
1841
2028
|
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,18 @@ 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.terminalReadyStatus': 'attached',
|
|
83
|
+
'control.terminalReadyPrompt': 'Write your next message here to continue this web CLI session. Use /detach to return Telegram to the normal AI router.',
|
|
84
|
+
'control.terminalNotRunning': 'The attached CLI terminal is not running anymore.',
|
|
85
|
+
'control.terminalNoOutput': 'No terminal output yet.',
|
|
86
|
+
'control.terminalOutputHidden': 'Live CLI screen output is not dumped into Telegram because full-screen terminal UIs are noisy. Keep sending messages here, or open Pixcode for the live terminal.',
|
|
87
|
+
'control.terminalSending': '📲 Sending to {{provider}} terminal on {{project}}...',
|
|
88
|
+
'control.terminalSent': '📲 Sent to the active terminal.',
|
|
89
|
+
'control.terminalSendFailed': 'Could not send to the active terminal: {{error}}',
|
|
90
|
+
'control.terminalStatusFailed': 'Could not read the active terminal: {{error}}',
|
|
91
|
+
'control.terminalDetached': 'Telegram is detached from the web CLI session. Plain messages will use the normal AI router again.',
|
|
76
92
|
'control.newChatReady': 'New chat is ready. Send the prompt you want to run.',
|
|
77
93
|
'control.disabled': 'Telegram remote control is disabled. Enable it in Pixcode → Settings → Telegram or send /control on.',
|
|
78
94
|
'control.selectProjectFirst': 'Select a project first with /projects.',
|
|
@@ -162,7 +178,7 @@ const TR = {
|
|
|
162
178
|
'bridge.queued': '📨 Mesaj son oturumuna iletildi. Ajan cevap verince sana yazacağım.',
|
|
163
179
|
'bridge.disabled': 'Mesaj köprüsü kapalı. Pixcode → Ayarlar → Telegram\'dan açabilirsin.',
|
|
164
180
|
'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.',
|
|
181
|
+
'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
182
|
'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
183
|
'control.unknownCommand': 'Bu komutu henüz tanımıyorum. Kullanabileceğin Pixcode komutları:',
|
|
168
184
|
'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 +186,7 @@ const TR = {
|
|
|
170
186
|
'control.summary.provider': 'Sağlayıcı',
|
|
171
187
|
'control.summary.workflow': 'İş akışı',
|
|
172
188
|
'control.summary.progress': 'İlerleme',
|
|
189
|
+
'control.summary.terminal': 'Terminal',
|
|
173
190
|
'control.notSelected': 'seçilmedi',
|
|
174
191
|
'control.button.projects': 'Projeler',
|
|
175
192
|
'control.button.provider': 'Sağlayıcı',
|
|
@@ -201,6 +218,9 @@ const TR = {
|
|
|
201
218
|
'control.button.deny': 'Reddet',
|
|
202
219
|
'control.button.confirm': 'Onayla',
|
|
203
220
|
'control.button.cancel': 'Vazgeç',
|
|
221
|
+
'control.button.terminal': 'Aktif terminal',
|
|
222
|
+
'control.button.terminalRefresh': 'Terminali yenile',
|
|
223
|
+
'control.button.detachTerminal': 'Terminalden ayrıl',
|
|
204
224
|
'control.noProjects': 'Henüz Pixcode projesi bulunamadı. Önce Pixcode içinde proje ekle/aç.',
|
|
205
225
|
'control.pickProject': 'Telegramın kontrol edeceği projeyi seç:',
|
|
206
226
|
'control.projectNotFound': '"{{query}}" ile eşleşen proje bulunamadı. Listeden birini seç.',
|
|
@@ -217,6 +237,18 @@ const TR = {
|
|
|
217
237
|
'control.noWebhooks': 'Henüz webhook yapılandırılmadı.',
|
|
218
238
|
'control.noSessions': 'Seçili proje için oturum bulunamadı.',
|
|
219
239
|
'control.recentSessions': 'Son oturumlar:',
|
|
240
|
+
'control.noActiveTerminal': 'Bu Telegram sohbetine bağlı web CLI oturumu yok. Pixcode içinde CLI tabı açıp Telegram butonuna bas.',
|
|
241
|
+
'control.terminalAttached': '📲 Telegram bu web CLI oturumuna bağlı. Düz mesajlar terminale gönderilecek.',
|
|
242
|
+
'control.terminalReadyStatus': 'bağlandı',
|
|
243
|
+
'control.terminalReadyPrompt': 'Bu web CLI oturumuna devam etmek için sonraki mesajını buraya yaz. Telegramı normal AI router akışına döndürmek için /detach kullan.',
|
|
244
|
+
'control.terminalNotRunning': 'Bağlı CLI terminali artık çalışmıyor.',
|
|
245
|
+
'control.terminalNoOutput': 'Henüz terminal çıktısı yok.',
|
|
246
|
+
'control.terminalOutputHidden': 'Canlı CLI ekran çıktısı Telegrama dökülmez; tam ekran terminal arayüzleri burada gürültülü görünür. Buradan mesaj göndermeye devam et veya canlı terminal için Pixcodeu aç.',
|
|
247
|
+
'control.terminalSending': '📲 {{project}} üzerinde {{provider}} terminaline gönderiliyor...',
|
|
248
|
+
'control.terminalSent': '📲 Aktif terminale gönderildi.',
|
|
249
|
+
'control.terminalSendFailed': 'Aktif terminale gönderilemedi: {{error}}',
|
|
250
|
+
'control.terminalStatusFailed': 'Aktif terminal okunamadı: {{error}}',
|
|
251
|
+
'control.terminalDetached': 'Telegram web CLI oturumundan ayrıldı. Düz mesajlar tekrar normal AI router akışına gidecek.',
|
|
220
252
|
'control.newChatReady': 'Yeni sohbet hazır. Çalıştırmak istediğin promptu gönder.',
|
|
221
253
|
'control.disabled': 'Telegram uzaktan kontrol kapalı. Pixcode → Ayarlar → Telegram içinden aç veya /control on gönder.',
|
|
222
254
|
'control.selectProjectFirst': 'Önce /projects ile proje seç.',
|