@pixelbyte-software/pixcode 1.53.12 → 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/index.html CHANGED
@@ -35,7 +35,7 @@
35
35
 
36
36
  <!-- Prevent zoom on iOS -->
37
37
  <meta name="format-detection" content="telephone=no" />
38
- <script type="module" crossorigin src="/assets/index-kP_gZ-wL.js"></script>
38
+ <script type="module" crossorigin src="/assets/index-CZReJ0_S.js"></script>
39
39
  <link rel="modulepreload" crossorigin href="/assets/vendor-react-DB6V5Fl1.js">
40
40
  <link rel="modulepreload" crossorigin href="/assets/vendor-codemirror-CIYNS698.js">
41
41
  <link rel="modulepreload" crossorigin href="/assets/vendor-xterm-C7tpxJl7.js">
@@ -120,7 +120,7 @@ import { adapterRegistry, ClaudeCodeA2AAdapter, CodexA2AAdapter, CursorA2AAdapte
120
120
  import networkRoutes from './routes/network.js';
121
121
  import telegramRoutes from './routes/telegram.js';
122
122
  import { restoreRequestedTunnel } from './services/external-access.js';
123
- import { restoreBotFromConfig } from './services/telegram/bot.js';
123
+ import { notifyTelegramTerminalAttached, restoreBotFromConfig } from './services/telegram/bot.js';
124
124
  import { ensurePortOpen } from './utils/port-access.js';
125
125
  import { applyAllStoredCredentialsToEnv, } from './services/provider-credentials.js';
126
126
  import { primeCliBinPath } from './services/install-jobs.js';
@@ -1566,7 +1566,7 @@ function requireVerifiedTelegramLink(req, res) {
1566
1566
  }
1567
1567
  // Bind the paired Telegram chat to an already running provider terminal tab.
1568
1568
  // This route lives next to the PTY registry so it can verify the target is live.
1569
- app.post('/api/telegram/active-terminal', authenticateToken, requireProjectPathAccess('useShell'), (req, res) => {
1569
+ app.post('/api/telegram/active-terminal', authenticateToken, requireProjectPathAccess('useShell'), async (req, res) => {
1570
1570
  try {
1571
1571
  const link = requireVerifiedTelegramLink(req, res);
1572
1572
  if (!link)
@@ -1622,7 +1622,17 @@ app.post('/api/telegram/active-terminal', authenticateToken, requireProjectPathA
1622
1622
  selectedProjectName: projectName,
1623
1623
  selectedProjectPath: resolvedMatchedProjectPath,
1624
1624
  });
1625
- res.json({ success: true, activeTerminal: control.activeTerminal, control, matchStatus: match.status });
1625
+ notifyTelegramTerminalAttached({
1626
+ userId: req.user.id,
1627
+ terminal: control.activeTerminal,
1628
+ }).then((telegramNotice) => {
1629
+ if (telegramNotice?.ok === false) {
1630
+ console.warn('[telegram] terminal attach notice not delivered:', telegramNotice.reason);
1631
+ }
1632
+ }).catch((error) => {
1633
+ console.warn('[telegram] terminal attach notice failed:', error?.message || error);
1634
+ });
1635
+ res.json({ success: true, activeTerminal: control.activeTerminal, control, matchStatus: match.status, telegramNotice: { queued: true } });
1626
1636
  }
1627
1637
  catch (error) {
1628
1638
  console.error('telegram/active-terminal failed:', error);