@openchamber/web 1.8.6 → 1.8.7
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/bin/cli-entry.js +55 -0
- package/bin/cli.js +3 -11
- package/bin/cli.test.js +56 -0
- package/dist/assets/{ToolOutputDialog-BDB_7hZd.js → ToolOutputDialog-CM2Xnf7u.js} +1 -1
- package/dist/assets/{index-xEiu5N1g.js → index-TlwNP07y.js} +2 -2
- package/dist/assets/{main-BrWPBfGQ.js → main-2wCUnGyZ.js} +5 -5
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/server/index.js +3 -1
- package/server/lib/git/service.js +4 -2
package/dist/index.html
CHANGED
|
@@ -439,7 +439,7 @@
|
|
|
439
439
|
pointer-events: none;
|
|
440
440
|
}
|
|
441
441
|
</style>
|
|
442
|
-
<script type="module" crossorigin src="/assets/index-
|
|
442
|
+
<script type="module" crossorigin src="/assets/index-TlwNP07y.js"></script>
|
|
443
443
|
<link rel="modulepreload" crossorigin href="/assets/vendor-.bun-9lzLHWe8.js">
|
|
444
444
|
<link rel="stylesheet" crossorigin href="/assets/vendor--DbVqbJpV.css">
|
|
445
445
|
<link rel="stylesheet" crossorigin href="/assets/index-JYxeZFeM.css">
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -564,6 +564,7 @@ const searchFilesystemFiles = async (rootPath, options) => {
|
|
|
564
564
|
const result = await new Promise((resolve) => {
|
|
565
565
|
const child = spawn('git', ['check-ignore', '--', ...pathsToCheck], {
|
|
566
566
|
cwd: dir,
|
|
567
|
+
windowsHide: true,
|
|
567
568
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
568
569
|
});
|
|
569
570
|
|
|
@@ -1135,7 +1136,7 @@ const buildTemplateVariables = async (payload, sessionId) => {
|
|
|
1135
1136
|
if (worktreeDir) {
|
|
1136
1137
|
try {
|
|
1137
1138
|
const { simpleGit } = await import('simple-git');
|
|
1138
|
-
const git = simpleGit(worktreeDir);
|
|
1139
|
+
const git = simpleGit({ baseDir: worktreeDir, spawnOptions: { windowsHide: true } });
|
|
1139
1140
|
branch = await Promise.race([
|
|
1140
1141
|
git.revparse(['--abbrev-ref', 'HEAD']),
|
|
1141
1142
|
new Promise((_, reject) => setTimeout(() => reject(new Error('git timeout')), 3000)),
|
|
@@ -12950,6 +12951,7 @@ async function main(options = {}) {
|
|
|
12950
12951
|
const result = await new Promise((resolve) => {
|
|
12951
12952
|
const child = spawn('git', ['check-ignore', '--', ...pathsToCheck], {
|
|
12952
12953
|
cwd: resolvedPath,
|
|
12954
|
+
windowsHide: true,
|
|
12953
12955
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
12954
12956
|
});
|
|
12955
12957
|
|
|
@@ -125,10 +125,11 @@ const buildGitEnv = async () => {
|
|
|
125
125
|
|
|
126
126
|
const createGit = async (directory) => {
|
|
127
127
|
const env = await buildGitEnv();
|
|
128
|
+
const spawnOptions = { windowsHide: true };
|
|
128
129
|
if (!directory) {
|
|
129
|
-
return simpleGit({ env });
|
|
130
|
+
return simpleGit({ env, spawnOptions });
|
|
130
131
|
}
|
|
131
|
-
return simpleGit({ baseDir: normalizeDirectoryPath(directory), env });
|
|
132
|
+
return simpleGit({ baseDir: normalizeDirectoryPath(directory), env, spawnOptions });
|
|
132
133
|
};
|
|
133
134
|
|
|
134
135
|
const normalizeDirectoryPath = (value) => {
|
|
@@ -415,6 +416,7 @@ const runGitCommand = async (cwd, args) => {
|
|
|
415
416
|
const { stdout, stderr } = await execFileAsync('git', args, {
|
|
416
417
|
cwd,
|
|
417
418
|
env: await buildGitEnv(),
|
|
419
|
+
windowsHide: true,
|
|
418
420
|
maxBuffer: 20 * 1024 * 1024,
|
|
419
421
|
});
|
|
420
422
|
return {
|