@orbit-build/cli 1.6.3 → 1.6.5
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.js +115 -29
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -238108,7 +238108,7 @@ import picocolors36 from "picocolors";
|
|
|
238108
238108
|
// ../shared/dist/index.js
|
|
238109
238109
|
import { randomUUID } from "crypto";
|
|
238110
238110
|
import { dirname, isAbsolute, normalize, relative, resolve } from "path";
|
|
238111
|
-
import { execSync } from "child_process";
|
|
238111
|
+
import { execSync as execSync2 } from "child_process";
|
|
238112
238112
|
import { existsSync, realpathSync } from "fs";
|
|
238113
238113
|
import { readFileSync } from "fs";
|
|
238114
238114
|
import { z } from "zod";
|
|
@@ -238357,7 +238357,7 @@ function getGitBranch(cwd) {
|
|
|
238357
238357
|
return "";
|
|
238358
238358
|
}
|
|
238359
238359
|
try {
|
|
238360
|
-
const branch =
|
|
238360
|
+
const branch = execSync2("git rev-parse --abbrev-ref HEAD", {
|
|
238361
238361
|
...HIDDEN_CHILD_PROCESS_OPTIONS,
|
|
238362
238362
|
cwd,
|
|
238363
238363
|
stdio: ["ignore", "pipe", "ignore"],
|
|
@@ -242619,7 +242619,7 @@ function runConfig(cwd) {
|
|
|
242619
242619
|
}
|
|
242620
242620
|
|
|
242621
242621
|
// src/commands/doctor.ts
|
|
242622
|
-
import { execSync as
|
|
242622
|
+
import { execSync as execSync3 } from "child_process";
|
|
242623
242623
|
import { existsSync as existsSync14 } from "fs";
|
|
242624
242624
|
import { basename as basename5, join as join12 } from "path";
|
|
242625
242625
|
import picocolors6 from "picocolors";
|
|
@@ -247323,7 +247323,7 @@ ${jsonInstruction}`;
|
|
|
247323
247323
|
return choice.text;
|
|
247324
247324
|
}
|
|
247325
247325
|
};
|
|
247326
|
-
var DeepSeekProvider = class {
|
|
247326
|
+
var DeepSeekProvider = class _DeepSeekProvider {
|
|
247327
247327
|
constructor(apiKey, baseUrl = "https://api.deepseek.com", options = {}) {
|
|
247328
247328
|
this.baseUrl = baseUrl;
|
|
247329
247329
|
this.options = options;
|
|
@@ -247354,6 +247354,7 @@ var DeepSeekProvider = class {
|
|
|
247354
247354
|
}
|
|
247355
247355
|
baseUrl;
|
|
247356
247356
|
options;
|
|
247357
|
+
static RESPONSES_UNAVAILABLE_TTL_MS = 3e4;
|
|
247357
247358
|
id;
|
|
247358
247359
|
type = "deepseek";
|
|
247359
247360
|
capabilities = {
|
|
@@ -247374,6 +247375,7 @@ var DeepSeekProvider = class {
|
|
|
247374
247375
|
responsesTransport;
|
|
247375
247376
|
anthropicTransport;
|
|
247376
247377
|
configuredFormat;
|
|
247378
|
+
responsesUnavailableUntil = 0;
|
|
247377
247379
|
async initialize() {
|
|
247378
247380
|
await this.chatTransport.initialize();
|
|
247379
247381
|
}
|
|
@@ -247400,7 +247402,7 @@ var DeepSeekProvider = class {
|
|
|
247400
247402
|
return this.anthropicTransport.chat(input);
|
|
247401
247403
|
}
|
|
247402
247404
|
if (format === "responses") {
|
|
247403
|
-
return this.
|
|
247405
|
+
return this.chatWithResponsesFallback(input);
|
|
247404
247406
|
}
|
|
247405
247407
|
return this.chatTransport.chat(input);
|
|
247406
247408
|
}
|
|
@@ -247412,15 +247414,47 @@ var DeepSeekProvider = class {
|
|
|
247412
247414
|
}
|
|
247413
247415
|
selectFormat(input) {
|
|
247414
247416
|
if (this.configuredFormat !== "auto") return this.configuredFormat;
|
|
247417
|
+
if (this.responsesUnavailableUntil > Date.now()) {
|
|
247418
|
+
return "chat-completions";
|
|
247419
|
+
}
|
|
247415
247420
|
if (input.responseJsonSchema) return "responses";
|
|
247416
247421
|
return "chat-completions";
|
|
247417
247422
|
}
|
|
247423
|
+
/**
|
|
247424
|
+
* Responses is the preferred structured-output lane, but not every
|
|
247425
|
+
* DeepSeek-compatible gateway exposes it. Retry through Chat Completions
|
|
247426
|
+
* only when the endpoint is explicitly unavailable and no model output has
|
|
247427
|
+
* been observed; then suppress repeated route probes for a short window.
|
|
247428
|
+
*/
|
|
247429
|
+
async *chatWithResponsesFallback(input) {
|
|
247430
|
+
let outputObserved = false;
|
|
247431
|
+
for await (const event of this.responsesTransport.chat(input)) {
|
|
247432
|
+
if (event.type === "text_delta" || event.type === "thinking_delta" || event.type === "tool_call") {
|
|
247433
|
+
outputObserved = true;
|
|
247434
|
+
}
|
|
247435
|
+
if (event.type === "error" && !outputObserved && isResponsesUnavailableError(event.error)) {
|
|
247436
|
+
this.responsesUnavailableUntil = Date.now() + _DeepSeekProvider.RESPONSES_UNAVAILABLE_TTL_MS;
|
|
247437
|
+
yield* this.chatTransport.chat(input);
|
|
247438
|
+
return;
|
|
247439
|
+
}
|
|
247440
|
+
yield event;
|
|
247441
|
+
}
|
|
247442
|
+
}
|
|
247418
247443
|
resolveAnthropicBaseUrl(baseUrl) {
|
|
247419
247444
|
if (isOfficialDeepSeekApi(baseUrl))
|
|
247420
247445
|
return `${baseUrl.replace(/\/$/, "")}/anthropic`;
|
|
247421
247446
|
return baseUrl.endsWith("/anthropic") ? baseUrl : `${baseUrl.replace(/\/$/, "")}/anthropic`;
|
|
247422
247447
|
}
|
|
247423
247448
|
};
|
|
247449
|
+
function isResponsesUnavailableError(error) {
|
|
247450
|
+
if (error instanceof Error && error.name === "DeepSeekResponsesUnavailableError") {
|
|
247451
|
+
return true;
|
|
247452
|
+
}
|
|
247453
|
+
const message2 = error instanceof Error ? error.message : String(error);
|
|
247454
|
+
return /DeepSeek Responses API is unavailable \(HTTP (?:400|404|405|501)\)/i.test(
|
|
247455
|
+
message2
|
|
247456
|
+
);
|
|
247457
|
+
}
|
|
247424
247458
|
var OpenAIProvider = class extends OpenAICompatibleProvider {
|
|
247425
247459
|
id = "openai";
|
|
247426
247460
|
type = "openai";
|
|
@@ -275333,7 +275367,7 @@ var DoctorSnapshotSchema = z48.object({
|
|
|
275333
275367
|
issues: z48.array(DoctorIssueSchema)
|
|
275334
275368
|
});
|
|
275335
275369
|
function defaultExec(command, options = {}) {
|
|
275336
|
-
return
|
|
275370
|
+
return execSync3(command, {
|
|
275337
275371
|
...HIDDEN_CHILD_PROCESS_OPTIONS,
|
|
275338
275372
|
encoding: "utf8",
|
|
275339
275373
|
stdio: ["ignore", "pipe", "ignore"],
|
|
@@ -283159,7 +283193,7 @@ function stripQuotes(value) {
|
|
|
283159
283193
|
}
|
|
283160
283194
|
|
|
283161
283195
|
// src/runtime/CommandRouter.ts
|
|
283162
|
-
import {
|
|
283196
|
+
import { execFileSync as execFileSync8 } from "child_process";
|
|
283163
283197
|
|
|
283164
283198
|
// src/runtime/webui/WebUiRuntime.ts
|
|
283165
283199
|
import http2 from "http";
|
|
@@ -283415,6 +283449,11 @@ var WEB_UI_CLIENT_BINDINGS_SCRIPT = String.raw` elements.composer.addEventListe
|
|
|
283415
283449
|
}
|
|
283416
283450
|
}, { passive: true });
|
|
283417
283451
|
|
|
283452
|
+
[elements.projectList, elements.projectChatBody].forEach((element) => {
|
|
283453
|
+
element.addEventListener('scroll', () => syncScrollAffordance(element), { passive: true });
|
|
283454
|
+
});
|
|
283455
|
+
window.addEventListener('resize', syncAllScrollAffordances, { passive: true });
|
|
283456
|
+
|
|
283418
283457
|
elements.jumpEarlier.addEventListener('click', async () => {
|
|
283419
283458
|
state.stickToBottom = false;
|
|
283420
283459
|
try {
|
|
@@ -283971,6 +284010,7 @@ var WEB_UI_CLIENT_BINDINGS_SCRIPT = String.raw` elements.composer.addEventListe
|
|
|
283971
284010
|
elements.projectToggle.setAttribute('aria-expanded', expanded ? 'true' : 'false');
|
|
283972
284011
|
elements.projectChatBody.hidden = !expanded;
|
|
283973
284012
|
writeLocalStorage('orbit.webui.project', expanded ? 'expanded' : 'collapsed');
|
|
284013
|
+
window.requestAnimationFrame(() => syncScrollAffordance(elements.projectChatBody));
|
|
283974
284014
|
};
|
|
283975
284015
|
elements.projectToggle.addEventListener('click', () => {
|
|
283976
284016
|
setProjectExpanded(elements.projectToggle.getAttribute('aria-expanded') !== 'true');
|
|
@@ -286210,12 +286250,26 @@ var WEB_UI_CLIENT_FOUNDATION_SCRIPT = String.raw` const byId = (id) => document
|
|
|
286210
286250
|
return distance < 110;
|
|
286211
286251
|
}
|
|
286212
286252
|
|
|
286253
|
+
function syncScrollAffordance(element) {
|
|
286254
|
+
if (!element) return;
|
|
286255
|
+
const maxTop = Math.max(0, element.scrollHeight - element.clientHeight);
|
|
286256
|
+
const maxLeft = Math.max(0, element.scrollWidth - element.clientWidth);
|
|
286257
|
+
element.classList.toggle('has-scroll-before', element.scrollTop > 4 || element.scrollLeft > 4);
|
|
286258
|
+
element.classList.toggle('has-scroll-after', maxTop - element.scrollTop > 4 || maxLeft - element.scrollLeft > 4);
|
|
286259
|
+
}
|
|
286260
|
+
|
|
286261
|
+
function syncAllScrollAffordances() {
|
|
286262
|
+
[elements.messageScroll, elements.projectList, elements.projectChatBody]
|
|
286263
|
+
.forEach(syncScrollAffordance);
|
|
286264
|
+
}
|
|
286265
|
+
|
|
286213
286266
|
function updateMessageNavigation() {
|
|
286214
286267
|
const overflow = elements.messageScroll.scrollHeight > elements.messageScroll.clientHeight + 8;
|
|
286215
286268
|
const awayFromTop = elements.messageScroll.scrollTop > 72;
|
|
286216
286269
|
const hasEarlierPage = state.earliestMessagePosition > 0;
|
|
286217
286270
|
elements.jumpEarlier.classList.toggle('is-visible', hasEarlierPage || (overflow && awayFromTop));
|
|
286218
286271
|
elements.jumpBottom.classList.toggle('is-visible', overflow && !nearBottom());
|
|
286272
|
+
syncScrollAffordance(elements.messageScroll);
|
|
286219
286273
|
}
|
|
286220
286274
|
|
|
286221
286275
|
function scrollToBottom(force) {
|
|
@@ -288467,11 +288521,12 @@ var WEB_UI_CLIENT_SESSION_SCRIPT = String.raw` const controlCommands = ${WEB_UI
|
|
|
288467
288521
|
const sessionCount = Number(sessionData && sessionData.count || sessions.length + archivedSessions.length);
|
|
288468
288522
|
elements.projectChatCount.textContent = String(sessionCount);
|
|
288469
288523
|
elements.projectChatCount.setAttribute('aria-label', String(sessionCount));
|
|
288524
|
+
syncScrollAffordance(elements.projectChatBody);
|
|
288470
288525
|
}
|
|
288471
288526
|
|
|
288472
288527
|
function renderProjectNavigation(projects, currentWorkspace) {
|
|
288473
288528
|
elements.projectList.replaceChildren();
|
|
288474
|
-
const normalizePath = (value) => String(value || '').replace(/\\/g, '/').
|
|
288529
|
+
const normalizePath = (value) => String(value || '').replace(/\\/g, '/').toLowerCase();
|
|
288475
288530
|
const current = normalizePath(currentWorkspace);
|
|
288476
288531
|
const recentProjects = (Array.isArray(projects) ? projects : [])
|
|
288477
288532
|
.filter((item) => item.available === true && normalizePath(item.path) !== current)
|
|
@@ -288507,6 +288562,7 @@ var WEB_UI_CLIENT_SESSION_SCRIPT = String.raw` const controlCommands = ${WEB_UI
|
|
|
288507
288562
|
elements.projectList.append(row);
|
|
288508
288563
|
}
|
|
288509
288564
|
elements.recentProjectsShell.hidden = elements.projectList.childElementCount === 0;
|
|
288565
|
+
syncScrollAffordance(elements.projectList);
|
|
288510
288566
|
}
|
|
288511
288567
|
|
|
288512
288568
|
async function updateSession(action) {
|
|
@@ -293576,6 +293632,20 @@ var WEB_UI_CONVERSATION_STYLES = String.raw`
|
|
|
293576
293632
|
background-clip: padding-box;
|
|
293577
293633
|
}
|
|
293578
293634
|
|
|
293635
|
+
.message-scroll.has-scroll-before {
|
|
293636
|
+
box-shadow: inset 0 12px 18px -18px color-mix(in srgb, var(--accent) 58%, var(--ink));
|
|
293637
|
+
}
|
|
293638
|
+
|
|
293639
|
+
.message-scroll.has-scroll-after {
|
|
293640
|
+
box-shadow: inset 0 -12px 18px -18px color-mix(in srgb, var(--accent) 58%, var(--ink));
|
|
293641
|
+
}
|
|
293642
|
+
|
|
293643
|
+
.message-scroll.has-scroll-before.has-scroll-after {
|
|
293644
|
+
box-shadow:
|
|
293645
|
+
inset 0 12px 18px -18px color-mix(in srgb, var(--accent) 58%, var(--ink)),
|
|
293646
|
+
inset 0 -12px 18px -18px color-mix(in srgb, var(--accent) 58%, var(--ink));
|
|
293647
|
+
}
|
|
293648
|
+
|
|
293579
293649
|
.control-turn {
|
|
293580
293650
|
width: fit-content;
|
|
293581
293651
|
max-width: 100%;
|
|
@@ -298342,6 +298412,24 @@ var WEB_UI_SHELL_STYLES = String.raw`
|
|
|
298342
298412
|
display: none;
|
|
298343
298413
|
}
|
|
298344
298414
|
|
|
298415
|
+
/* Keep long navigation surfaces legible even when the scrollbar is subtle. */
|
|
298416
|
+
.project-list.has-scroll-before,
|
|
298417
|
+
.project-chat-body.has-scroll-before {
|
|
298418
|
+
box-shadow: inset 0 9px 13px -13px color-mix(in srgb, var(--accent) 76%, var(--sidebar-ink));
|
|
298419
|
+
}
|
|
298420
|
+
|
|
298421
|
+
.project-list.has-scroll-after,
|
|
298422
|
+
.project-chat-body.has-scroll-after {
|
|
298423
|
+
box-shadow: inset 0 -9px 13px -13px color-mix(in srgb, var(--accent) 76%, var(--sidebar-ink));
|
|
298424
|
+
}
|
|
298425
|
+
|
|
298426
|
+
.project-list.has-scroll-before.has-scroll-after,
|
|
298427
|
+
.project-chat-body.has-scroll-before.has-scroll-after {
|
|
298428
|
+
box-shadow:
|
|
298429
|
+
inset 0 9px 13px -13px color-mix(in srgb, var(--accent) 76%, var(--sidebar-ink)),
|
|
298430
|
+
inset 0 -9px 13px -13px color-mix(in srgb, var(--accent) 76%, var(--sidebar-ink));
|
|
298431
|
+
}
|
|
298432
|
+
|
|
298345
298433
|
.recent-section {
|
|
298346
298434
|
min-height: 0;
|
|
298347
298435
|
display: grid;
|
|
@@ -303225,7 +303313,6 @@ function normalizeCommitMessage(message2) {
|
|
|
303225
303313
|
}
|
|
303226
303314
|
|
|
303227
303315
|
// src/runtime/CommandRouter.ts
|
|
303228
|
-
var require2 = createRequire2(import.meta.url);
|
|
303229
303316
|
function stripAnsi4(value) {
|
|
303230
303317
|
return value.replace(/\u001b\[[0-9;]*m/g, "");
|
|
303231
303318
|
}
|
|
@@ -304111,16 +304198,16 @@ var CommandRouter = class {
|
|
|
304111
304198
|
if (command === "/commit") {
|
|
304112
304199
|
const commitMsg = parts.slice(1).join(" ").trim();
|
|
304113
304200
|
const isZh = config.language !== "en";
|
|
304114
|
-
const { execFileSync:
|
|
304201
|
+
const { execFileSync: execFileSync10, execSync: execSync4 } = await import("child_process");
|
|
304115
304202
|
const childEnvironment = isFullAccessEnabled(config) ? buildInheritedChildEnvironment() : buildSanitizedChildEnvironment();
|
|
304116
304203
|
try {
|
|
304117
|
-
let diff =
|
|
304204
|
+
let diff = execSync4("git diff --cached", {
|
|
304118
304205
|
...HIDDEN_CHILD_PROCESS_OPTIONS,
|
|
304119
304206
|
cwd,
|
|
304120
304207
|
env: childEnvironment
|
|
304121
304208
|
}).toString().trim();
|
|
304122
304209
|
if (!diff) {
|
|
304123
|
-
const unstaged =
|
|
304210
|
+
const unstaged = execSync4("git status --porcelain", {
|
|
304124
304211
|
...HIDDEN_CHILD_PROCESS_OPTIONS,
|
|
304125
304212
|
cwd,
|
|
304126
304213
|
env: childEnvironment
|
|
@@ -304147,12 +304234,12 @@ var CommandRouter = class {
|
|
|
304147
304234
|
this.printOutput(
|
|
304148
304235
|
isZh ? "\u6B63\u5728\u6682\u5B58\u6240\u6709\u53D8\u66F4..." : "Staging all changes..."
|
|
304149
304236
|
);
|
|
304150
|
-
|
|
304237
|
+
execSync4("git add -A", {
|
|
304151
304238
|
...HIDDEN_CHILD_PROCESS_OPTIONS,
|
|
304152
304239
|
cwd,
|
|
304153
304240
|
env: childEnvironment
|
|
304154
304241
|
});
|
|
304155
|
-
diff =
|
|
304242
|
+
diff = execSync4("git diff --cached", {
|
|
304156
304243
|
...HIDDEN_CHILD_PROCESS_OPTIONS,
|
|
304157
304244
|
cwd,
|
|
304158
304245
|
env: childEnvironment
|
|
@@ -304201,7 +304288,7 @@ ${buildCommitDiffForModel(diff)}`
|
|
|
304201
304288
|
this.printOutput(
|
|
304202
304289
|
`Committing changes with message: "${picocolors18.green(finalMsg)}"`
|
|
304203
304290
|
);
|
|
304204
|
-
|
|
304291
|
+
execFileSync10("git", ["commit", "-m", finalMsg], {
|
|
304205
304292
|
...HIDDEN_CHILD_PROCESS_OPTIONS,
|
|
304206
304293
|
cwd,
|
|
304207
304294
|
env: childEnvironment
|
|
@@ -305246,37 +305333,36 @@ ${picocolors18.green("\u2714")} Switched security mode to: ${picocolors18.green(
|
|
|
305246
305333
|
}
|
|
305247
305334
|
}
|
|
305248
305335
|
copyToClipboard(text2) {
|
|
305249
|
-
const { execSync: execSync3 } = require2("child_process");
|
|
305250
305336
|
try {
|
|
305251
305337
|
if (process.platform === "win32") {
|
|
305252
|
-
|
|
305338
|
+
execFileSync8("clip", [], {
|
|
305253
305339
|
...HIDDEN_CHILD_PROCESS_OPTIONS,
|
|
305254
305340
|
input: text2
|
|
305255
305341
|
});
|
|
305256
305342
|
return true;
|
|
305257
305343
|
} else if (process.platform === "darwin") {
|
|
305258
|
-
|
|
305344
|
+
execFileSync8("pbcopy", [], {
|
|
305259
305345
|
...HIDDEN_CHILD_PROCESS_OPTIONS,
|
|
305260
305346
|
input: text2
|
|
305261
305347
|
});
|
|
305262
305348
|
return true;
|
|
305263
305349
|
} else {
|
|
305264
305350
|
try {
|
|
305265
|
-
|
|
305351
|
+
execFileSync8("xclip", ["-selection", "clipboard"], {
|
|
305266
305352
|
...HIDDEN_CHILD_PROCESS_OPTIONS,
|
|
305267
305353
|
input: text2
|
|
305268
305354
|
});
|
|
305269
305355
|
return true;
|
|
305270
305356
|
} catch {
|
|
305271
305357
|
try {
|
|
305272
|
-
|
|
305358
|
+
execFileSync8("xsel", ["-ib"], {
|
|
305273
305359
|
...HIDDEN_CHILD_PROCESS_OPTIONS,
|
|
305274
305360
|
input: text2
|
|
305275
305361
|
});
|
|
305276
305362
|
return true;
|
|
305277
305363
|
} catch {
|
|
305278
305364
|
try {
|
|
305279
|
-
|
|
305365
|
+
execSync("wl-copy", {
|
|
305280
305366
|
...HIDDEN_CHILD_PROCESS_OPTIONS,
|
|
305281
305367
|
input: text2
|
|
305282
305368
|
});
|
|
@@ -314316,7 +314402,7 @@ function isRecord16(value) {
|
|
|
314316
314402
|
}
|
|
314317
314403
|
|
|
314318
314404
|
// src/commands/eval.ts
|
|
314319
|
-
import { exec as execCallback, execFileSync as
|
|
314405
|
+
import { exec as execCallback, execFileSync as execFileSync9 } from "child_process";
|
|
314320
314406
|
import {
|
|
314321
314407
|
copyFileSync,
|
|
314322
314408
|
existsSync as existsSync38,
|
|
@@ -314630,7 +314716,7 @@ ${result.stderr}`)
|
|
|
314630
314716
|
}
|
|
314631
314717
|
function readChangedFiles(cwd) {
|
|
314632
314718
|
try {
|
|
314633
|
-
const output =
|
|
314719
|
+
const output = execFileSync9(
|
|
314634
314720
|
"git",
|
|
314635
314721
|
["status", "--porcelain=v1", "-z", "--untracked-files=all"],
|
|
314636
314722
|
{
|
|
@@ -314646,7 +314732,7 @@ function readChangedFiles(cwd) {
|
|
|
314646
314732
|
}
|
|
314647
314733
|
}
|
|
314648
314734
|
function snapshotWorkspaceIntoWorktree(sourceCwd, worktreeCwd) {
|
|
314649
|
-
const patch =
|
|
314735
|
+
const patch = execFileSync9(
|
|
314650
314736
|
"git",
|
|
314651
314737
|
["diff", "HEAD", "--binary", "--no-ext-diff"],
|
|
314652
314738
|
{
|
|
@@ -314658,7 +314744,7 @@ function snapshotWorkspaceIntoWorktree(sourceCwd, worktreeCwd) {
|
|
|
314658
314744
|
}
|
|
314659
314745
|
);
|
|
314660
314746
|
if (patch.length > 0) {
|
|
314661
|
-
|
|
314747
|
+
execFileSync9("git", ["apply", "--whitespace=nowarn", "-"], {
|
|
314662
314748
|
...HIDDEN_CHILD_PROCESS_OPTIONS,
|
|
314663
314749
|
cwd: worktreeCwd,
|
|
314664
314750
|
input: patch,
|
|
@@ -314666,7 +314752,7 @@ function snapshotWorkspaceIntoWorktree(sourceCwd, worktreeCwd) {
|
|
|
314666
314752
|
maxBuffer: 64 * 1024 * 1024
|
|
314667
314753
|
});
|
|
314668
314754
|
}
|
|
314669
|
-
const untracked =
|
|
314755
|
+
const untracked = execFileSync9(
|
|
314670
314756
|
"git",
|
|
314671
314757
|
["ls-files", "--others", "--exclude-standard", "-z"],
|
|
314672
314758
|
{
|
|
@@ -314686,19 +314772,19 @@ function snapshotWorkspaceIntoWorktree(sourceCwd, worktreeCwd) {
|
|
|
314686
314772
|
mkdirSync10(dirname16(targetPath), { recursive: true });
|
|
314687
314773
|
copyFileSync(sourcePath, targetPath);
|
|
314688
314774
|
}
|
|
314689
|
-
|
|
314775
|
+
execFileSync9("git", ["add", "-A"], {
|
|
314690
314776
|
...HIDDEN_CHILD_PROCESS_OPTIONS,
|
|
314691
314777
|
cwd: worktreeCwd,
|
|
314692
314778
|
stdio: ["ignore", "pipe", "pipe"]
|
|
314693
314779
|
});
|
|
314694
|
-
const dirty =
|
|
314780
|
+
const dirty = execFileSync9("git", ["status", "--porcelain"], {
|
|
314695
314781
|
...HIDDEN_CHILD_PROCESS_OPTIONS,
|
|
314696
314782
|
cwd: worktreeCwd,
|
|
314697
314783
|
encoding: "utf8",
|
|
314698
314784
|
stdio: ["ignore", "pipe", "pipe"]
|
|
314699
314785
|
}).trim();
|
|
314700
314786
|
if (!dirty) return;
|
|
314701
|
-
|
|
314787
|
+
execFileSync9(
|
|
314702
314788
|
"git",
|
|
314703
314789
|
[
|
|
314704
314790
|
"-c",
|