@pixelbyte-software/pixcode 1.53.10 â 1.53.11
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-ChssgA1r.js â index-Bo8oVc2f.js} +1 -1
- package/dist/index.html +1 -1
- package/dist-server/server/index.js +32 -5
- package/dist-server/server/index.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/services/telegram/bot.js +43 -5
- package/dist-server/server/services/telegram/bot.js.map +1 -1
- package/package.json +1 -1
- package/server/index.js +32 -5
- package/server/routes/git.js +17 -0
- package/server/services/telegram/bot.js +45 -5
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-
|
|
38
|
+
<script type="module" crossorigin src="/assets/index-Bo8oVc2f.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">
|
|
@@ -39,22 +39,47 @@ const DAEMON_COMMAND_CONTEXT = {
|
|
|
39
39
|
function resolveMonacoAssetsPath() {
|
|
40
40
|
const appParent = path.dirname(APP_ROOT);
|
|
41
41
|
const appGrandparent = path.dirname(appParent);
|
|
42
|
+
const nodePathRoots = String(process.env.NODE_PATH || '')
|
|
43
|
+
.split(path.delimiter)
|
|
44
|
+
.map((entry) => entry.trim())
|
|
45
|
+
.filter(Boolean);
|
|
42
46
|
const candidates = [
|
|
43
47
|
path.join(APP_ROOT, 'node_modules', 'monaco-editor', 'min', 'vs'),
|
|
44
48
|
path.join(appParent, 'node_modules', 'monaco-editor', 'min', 'vs'),
|
|
45
49
|
path.join(appParent, 'monaco-editor', 'min', 'vs'),
|
|
46
50
|
path.join(appGrandparent, 'node_modules', 'monaco-editor', 'min', 'vs'),
|
|
47
51
|
path.join(appGrandparent, 'monaco-editor', 'min', 'vs'),
|
|
52
|
+
...nodePathRoots.flatMap((nodePathRoot) => [
|
|
53
|
+
path.join(nodePathRoot, 'monaco-editor', 'min', 'vs'),
|
|
54
|
+
path.join(nodePathRoot, 'node_modules', 'monaco-editor', 'min', 'vs'),
|
|
55
|
+
]),
|
|
56
|
+
];
|
|
57
|
+
const resolutionPaths = [
|
|
58
|
+
APP_ROOT,
|
|
59
|
+
appParent,
|
|
60
|
+
appGrandparent,
|
|
61
|
+
__dirname,
|
|
62
|
+
process.cwd(),
|
|
63
|
+
...nodePathRoots,
|
|
48
64
|
];
|
|
49
65
|
try {
|
|
50
66
|
const monacoPackagePath = require.resolve('monaco-editor/package.json', {
|
|
51
|
-
paths:
|
|
67
|
+
paths: resolutionPaths,
|
|
52
68
|
});
|
|
53
69
|
candidates.push(path.join(path.dirname(monacoPackagePath), 'min', 'vs'));
|
|
54
70
|
}
|
|
55
71
|
catch {
|
|
56
72
|
// The editor will show its normal load failure if the dependency is unavailable.
|
|
57
73
|
}
|
|
74
|
+
try {
|
|
75
|
+
const monacoLoaderPath = require.resolve('monaco-editor/min/vs/loader.js', {
|
|
76
|
+
paths: resolutionPaths,
|
|
77
|
+
});
|
|
78
|
+
candidates.push(path.dirname(monacoLoaderPath));
|
|
79
|
+
}
|
|
80
|
+
catch {
|
|
81
|
+
// Some package managers only expose the package root; candidates above cover that case.
|
|
82
|
+
}
|
|
58
83
|
return candidates.find((candidate) => fs.existsSync(path.join(candidate, 'loader.js'))) || null;
|
|
59
84
|
}
|
|
60
85
|
import { c } from './utils/colors.js';
|
|
@@ -3634,7 +3659,9 @@ function handleShellConnection(ws, request) {
|
|
|
3634
3659
|
});
|
|
3635
3660
|
// Handle process exit
|
|
3636
3661
|
shellProcess.onExit((exitCode) => {
|
|
3637
|
-
|
|
3662
|
+
const cleanShellExit = exitCode.exitCode === 0;
|
|
3663
|
+
const normalizedExitSignal = cleanShellExit ? null : (exitCode.signal || null);
|
|
3664
|
+
console.log('đ Shell process exited with code:', exitCode.exitCode, 'signal:', normalizedExitSignal);
|
|
3638
3665
|
if (outputFlushTimer) {
|
|
3639
3666
|
clearTimeout(outputFlushTimer);
|
|
3640
3667
|
outputFlushTimer = null;
|
|
@@ -3645,11 +3672,11 @@ function handleShellConnection(ws, request) {
|
|
|
3645
3672
|
console.log('âŠī¸ Ignoring stale PTY exit for replacement session:', ptySessionKey);
|
|
3646
3673
|
return;
|
|
3647
3674
|
}
|
|
3648
|
-
const exitMessage = `\r\n\x1b[33mProcess exited with code ${exitCode.exitCode}${
|
|
3675
|
+
const exitMessage = `\r\n\x1b[33mProcess exited with code ${exitCode.exitCode}${normalizedExitSignal ? ` (${normalizedExitSignal})` : ''}\x1b[0m\r\n`;
|
|
3649
3676
|
if (session) {
|
|
3650
|
-
session.lifecycleState =
|
|
3677
|
+
session.lifecycleState = cleanShellExit ? 'completed' : 'failed';
|
|
3651
3678
|
session.exitCode = typeof exitCode.exitCode === 'number' ? exitCode.exitCode : null;
|
|
3652
|
-
session.exitSignal =
|
|
3679
|
+
session.exitSignal = normalizedExitSignal;
|
|
3653
3680
|
session.completedAt = new Date().toISOString();
|
|
3654
3681
|
session.updatedAt = Date.now();
|
|
3655
3682
|
if (session.startupInputTimerId) {
|