@fabiofiorita/porcelain 0.82.0 → 0.82.1
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/README.md +1 -1
- package/package.json +1 -1
- package/server/src/cli/main.mjs +59 -45
- package/web/dist/assets/{_-DLuWvCI2.js → _-zpr_A3xj.js} +1 -1
- package/web/dist/assets/{_paired-CW4ku02g.js → _paired-0bvkZvM3.js} +1 -1
- package/web/dist/assets/{_paired-C10XxJ8F.js → _paired-D4wY2wvW.js} +1 -1
- package/web/dist/assets/{_section-8dZXUUxK.js → _section-CU7nja2f.js} +1 -1
- package/web/dist/assets/{_worktreeId-CvY_CJtj.js → _worktreeId-DOiIn1nf.js} +1 -1
- package/web/dist/assets/{_worktreeId-CK00Ut-s.js → _worktreeId-QDdVFP66.js} +1 -1
- package/web/dist/assets/{connected-workspace-CwFgVbW_.js → connected-workspace-D-2S8JMu.js} +1 -1
- package/web/dist/assets/{desktop-actions-4xXr-L-Y.js → desktop-actions-D0SKWMXm.js} +1 -1
- package/web/dist/assets/{index-BkcQY4h9.js → index-CAnBdCQi.js} +3 -3
- package/web/dist/assets/{pair-BfBMg7pt.js → pair-Dk6l6cw_.js} +1 -1
- package/web/dist/assets/{settings-page-BlsRrwEe.js → settings-page-DiniwPDM.js} +1 -1
- package/web/dist/index.html +2 -2
package/README.md
CHANGED
package/package.json
CHANGED
package/server/src/cli/main.mjs
CHANGED
|
@@ -12739,7 +12739,7 @@ var openServerResources = Effect74.fn("openServerResources")(function* (resource
|
|
|
12739
12739
|
});
|
|
12740
12740
|
|
|
12741
12741
|
// packages/agents/src/shared/commands/installed-models.ts
|
|
12742
|
-
import { homedir as
|
|
12742
|
+
import { homedir as homedir3 } from "node:os";
|
|
12743
12743
|
import { Config as Config4, Effect as Effect77, Path as Path16, Schema as Schema237 } from "effect";
|
|
12744
12744
|
|
|
12745
12745
|
// packages/agents/src/shared/commands/find-executable.ts
|
|
@@ -12771,6 +12771,14 @@ var findExecutable = Effect75.fn("Provider.findExecutable")(function* (name) {
|
|
|
12771
12771
|
return void 0;
|
|
12772
12772
|
});
|
|
12773
12773
|
|
|
12774
|
+
// packages/agents/src/shared/commands/claude-environment.ts
|
|
12775
|
+
import { homedir as homedir2 } from "node:os";
|
|
12776
|
+
import { join as join3 } from "node:path";
|
|
12777
|
+
var claudeEnvironment = (environment, platform = process.platform, home = homedir2()) => platform === "darwin" ? { ...environment, HOME: home } : {
|
|
12778
|
+
...environment,
|
|
12779
|
+
CLAUDE_CONFIG_DIR: environment.CLAUDE_CONFIG_DIR ?? join3(home, ".claude")
|
|
12780
|
+
};
|
|
12781
|
+
|
|
12774
12782
|
// packages/agents/src/commit-planning/commands/read-bounded-text.ts
|
|
12775
12783
|
import { Effect as Effect76, FileSystem as FileSystem21, Stream as Stream3 } from "effect";
|
|
12776
12784
|
|
|
@@ -12818,18 +12826,15 @@ var cacheSchema = Schema237.fromJsonString(
|
|
|
12818
12826
|
var installedModels = Effect77.fn("Agents.installedModels")(
|
|
12819
12827
|
function* (provider, limits, signedInOnly) {
|
|
12820
12828
|
const path = yield* Path16.Path;
|
|
12821
|
-
const
|
|
12822
|
-
|
|
12823
|
-
Config4.withDefault(
|
|
12824
|
-
path.join(homedir2(), provider === "codex" ? ".codex" : ".claude")
|
|
12825
|
-
)
|
|
12829
|
+
const home = yield* Config4.String("CODEX_HOME").pipe(
|
|
12830
|
+
Config4.withDefault(path.join(homedir3(), ".codex"))
|
|
12826
12831
|
);
|
|
12827
12832
|
const command = yield* findExecutable(provider);
|
|
12828
12833
|
if (!command) return [];
|
|
12829
12834
|
if (signedInOnly) {
|
|
12830
12835
|
const result = yield* runCommand({
|
|
12831
12836
|
command,
|
|
12832
|
-
env: { ...process.env,
|
|
12837
|
+
env: provider === "claude" ? claudeEnvironment(process.env) : { ...process.env, CODEX_HOME: home },
|
|
12833
12838
|
args: provider === "claude" ? ["auth", "status", "--json"] : ["login", "status"],
|
|
12834
12839
|
maxBytes: 16384,
|
|
12835
12840
|
timeoutMs: limits.processDeadlineMs,
|
|
@@ -13149,6 +13154,7 @@ var ClaudeProvider = class _ClaudeProvider extends Context94.Service()(
|
|
|
13149
13154
|
});
|
|
13150
13155
|
const output3 = yield* runProvider({
|
|
13151
13156
|
command,
|
|
13157
|
+
env: claudeEnvironment(process.env),
|
|
13152
13158
|
args: [
|
|
13153
13159
|
"--print",
|
|
13154
13160
|
"--safe-mode",
|
|
@@ -21648,7 +21654,7 @@ var WalkthroughWorkflow = class _WalkthroughWorkflow extends Context173.Service(
|
|
|
21648
21654
|
import { randomUUID as randomUUID7 } from "node:crypto";
|
|
21649
21655
|
import { mkdtemp, writeFile as writeFile2, rm } from "node:fs/promises";
|
|
21650
21656
|
import { tmpdir } from "node:os";
|
|
21651
|
-
import { join as
|
|
21657
|
+
import { join as join5 } from "node:path";
|
|
21652
21658
|
import { Clock as Clock12, Effect as Effect223, Layer as Layer126, Schema as Schema253 } from "effect";
|
|
21653
21659
|
|
|
21654
21660
|
// packages/agents/src/walkthrough-writing/provider-failure.ts
|
|
@@ -21701,8 +21707,8 @@ var codexOutputSchema = (schema) => {
|
|
|
21701
21707
|
|
|
21702
21708
|
// packages/agents/src/walkthrough-writing/agent-turn.ts
|
|
21703
21709
|
import { writeFile } from "node:fs/promises";
|
|
21704
|
-
import { homedir as
|
|
21705
|
-
import { join as
|
|
21710
|
+
import { homedir as homedir4 } from "node:os";
|
|
21711
|
+
import { join as join4 } from "node:path";
|
|
21706
21712
|
import { Effect as Effect221, FileSystem as FileSystem33, Result as Result8, Schema as Schema251 } from "effect";
|
|
21707
21713
|
import { Toml } from "effect/encoding";
|
|
21708
21714
|
import { ChildProcessSpawner as ChildProcessSpawner8 } from "effect/process";
|
|
@@ -21800,8 +21806,7 @@ var modelRefused = (detail) => /model.*(?:not.*(?:available|exist|found|support)
|
|
|
21800
21806
|
var isolatedEnvironment = (folder) => ({
|
|
21801
21807
|
...process.env,
|
|
21802
21808
|
HOME: folder,
|
|
21803
|
-
CODEX_HOME: process.env.CODEX_HOME ??
|
|
21804
|
-
CLAUDE_CONFIG_DIR: process.env.CLAUDE_CONFIG_DIR ?? join3(homedir3(), ".claude"),
|
|
21809
|
+
CODEX_HOME: process.env.CODEX_HOME ?? join4(homedir4(), ".codex"),
|
|
21805
21810
|
BASH_ENV: "",
|
|
21806
21811
|
ENV: "",
|
|
21807
21812
|
ZDOTDIR: folder,
|
|
@@ -21813,6 +21818,7 @@ var isolatedEnvironment = (folder) => ({
|
|
|
21813
21818
|
NODE_OPTIONS: "",
|
|
21814
21819
|
BUN_OPTIONS: "",
|
|
21815
21820
|
GIT_NO_LAZY_FETCH: "1",
|
|
21821
|
+
GIT_CONFIG_GLOBAL: "/dev/null",
|
|
21816
21822
|
GIT_CONFIG_COUNT: "2",
|
|
21817
21823
|
GIT_CONFIG_KEY_0: "core.hooksPath",
|
|
21818
21824
|
GIT_CONFIG_VALUE_0: "/dev/null",
|
|
@@ -21828,7 +21834,7 @@ var agentTurns = (options) => Effect221.gen(function* () {
|
|
|
21828
21834
|
);
|
|
21829
21835
|
const codexIsolation = Effect221.fn("AgentTurns.codexIsolation")(function* (turn, command, env) {
|
|
21830
21836
|
const configArgs = [...CODEX_ISOLATION];
|
|
21831
|
-
const credentialsStore = yield* fs.readFileString(
|
|
21837
|
+
const credentialsStore = yield* fs.readFileString(join4(env.CODEX_HOME, "config.toml")).pipe(
|
|
21832
21838
|
Effect221.flatMap((text) => Effect221.fromResult(Toml.parse(text))),
|
|
21833
21839
|
Effect221.flatMap(
|
|
21834
21840
|
Schema251.decodeUnknownEffect(
|
|
@@ -21884,10 +21890,18 @@ var agentTurns = (options) => Effect221.gen(function* () {
|
|
|
21884
21890
|
return [...configArgs, ...mcpOverrides];
|
|
21885
21891
|
});
|
|
21886
21892
|
const run2 = Effect221.fn("AgentTurns.run")(function* (turn) {
|
|
21887
|
-
const
|
|
21893
|
+
const isolated = isolatedEnvironment(turn.folder);
|
|
21894
|
+
const env = turn.provider === "claude" ? claudeEnvironment(isolated) : isolated;
|
|
21895
|
+
if (turn.provider === "claude" && process.platform === "darwin") {
|
|
21896
|
+
const home = join4(turn.folder, `home-${turn.label}`);
|
|
21897
|
+
yield* fs.makeDirectory(join4(home, "Library"), { recursive: true });
|
|
21898
|
+
for (const path of [".claude", ".claude.json", "Library/Keychains"])
|
|
21899
|
+
yield* fs.symlink(join4(homedir4(), path), join4(home, path));
|
|
21900
|
+
env.HOME = home;
|
|
21901
|
+
}
|
|
21888
21902
|
const command = options.command ?? turn.provider;
|
|
21889
21903
|
const resuming = turn.session.kind === "resume";
|
|
21890
|
-
const answerPath =
|
|
21904
|
+
const answerPath = join4(turn.folder, `answer-${turn.label}.json`);
|
|
21891
21905
|
const args = [];
|
|
21892
21906
|
if (turn.provider === "claude") {
|
|
21893
21907
|
args.push(
|
|
@@ -21940,7 +21954,7 @@ var agentTurns = (options) => Effect221.gen(function* () {
|
|
|
21940
21954
|
turn.model
|
|
21941
21955
|
);
|
|
21942
21956
|
if (turn.schema !== void 0) {
|
|
21943
|
-
const schemaPath =
|
|
21957
|
+
const schemaPath = join4(turn.folder, `schema-${turn.label}.json`);
|
|
21944
21958
|
const schema2 = codexOutputSchema(turn.schema);
|
|
21945
21959
|
yield* Effect221.tryPromise(
|
|
21946
21960
|
() => writeFile(schemaPath, JSON.stringify(schema2))
|
|
@@ -22246,7 +22260,7 @@ var ANSWERING = {
|
|
|
22246
22260
|
var ANSWER_DEADLINE_MS = 5 * 60 * 1e3;
|
|
22247
22261
|
var MAX_ANSWER_LENGTH = 8e3;
|
|
22248
22262
|
var temporaryFolder = Effect223.acquireRelease(
|
|
22249
|
-
Effect223.tryPromise(() => mkdtemp(
|
|
22263
|
+
Effect223.tryPromise(() => mkdtemp(join5(tmpdir(), "porcelain-walkthrough-"))),
|
|
22250
22264
|
(path) => Effect223.promise(() => rm(path, { recursive: true, force: true }))
|
|
22251
22265
|
);
|
|
22252
22266
|
var usableAnswer = Effect223.fnUntraced(function* (output3) {
|
|
@@ -22279,7 +22293,7 @@ var cliWalkthroughWriterLayer = (options) => Layer126.effect(
|
|
|
22279
22293
|
const folder = yield* temporaryFolder;
|
|
22280
22294
|
const images = [];
|
|
22281
22295
|
for (const asset of input.evidence.assets) {
|
|
22282
|
-
const path =
|
|
22296
|
+
const path = join5(
|
|
22283
22297
|
folder,
|
|
22284
22298
|
`${asset.id}.${asset.mediaType.split("/")[1] ?? "png"}`
|
|
22285
22299
|
);
|
|
@@ -22419,8 +22433,8 @@ var cliWalkthroughWriterLayer = (options) => Layer126.effect(
|
|
|
22419
22433
|
import { createReadStream } from "node:fs";
|
|
22420
22434
|
import { readdir } from "node:fs/promises";
|
|
22421
22435
|
import { createInterface } from "node:readline";
|
|
22422
|
-
import { homedir as
|
|
22423
|
-
import { join as
|
|
22436
|
+
import { homedir as homedir5 } from "node:os";
|
|
22437
|
+
import { join as join6 } from "node:path";
|
|
22424
22438
|
import { Effect as Effect224, Layer as Layer127, Predicate as Predicate2, Schema as Schema254 } from "effect";
|
|
22425
22439
|
var recordSchema = Schema254.Struct({
|
|
22426
22440
|
type: Schema254.String,
|
|
@@ -22483,9 +22497,9 @@ async function sessionFiles(path) {
|
|
|
22483
22497
|
const files = [];
|
|
22484
22498
|
for (const entry of entries) {
|
|
22485
22499
|
if (entry.isDirectory())
|
|
22486
|
-
files.push(...await sessionFiles(
|
|
22500
|
+
files.push(...await sessionFiles(join6(path, entry.name)));
|
|
22487
22501
|
else if (entry.isFile() && entry.name.endsWith(".jsonl"))
|
|
22488
|
-
files.push(
|
|
22502
|
+
files.push(join6(path, entry.name));
|
|
22489
22503
|
}
|
|
22490
22504
|
return files.sort();
|
|
22491
22505
|
} catch (error) {
|
|
@@ -22494,18 +22508,18 @@ async function sessionFiles(path) {
|
|
|
22494
22508
|
throw error;
|
|
22495
22509
|
}
|
|
22496
22510
|
}
|
|
22497
|
-
var filesystemTranscriptReaderLayer = (home =
|
|
22511
|
+
var filesystemTranscriptReaderLayer = (home = homedir5()) => Layer127.succeed(TranscriptReader, {
|
|
22498
22512
|
read: Effect224.fn("TranscriptReader.read")(
|
|
22499
22513
|
(folder) => Effect224.tryPromise({
|
|
22500
22514
|
try: async () => {
|
|
22501
22515
|
const messages = [];
|
|
22502
22516
|
for (const provider of ["claude", "codex"]) {
|
|
22503
|
-
const root = provider === "claude" ?
|
|
22517
|
+
const root = provider === "claude" ? join6(
|
|
22504
22518
|
home,
|
|
22505
22519
|
".claude",
|
|
22506
22520
|
"projects",
|
|
22507
22521
|
folder.replace(/[^a-zA-Z0-9-]/g, "-")
|
|
22508
|
-
) :
|
|
22522
|
+
) : join6(home, ".codex", "sessions");
|
|
22509
22523
|
for (const file of await sessionFiles(root)) {
|
|
22510
22524
|
const lines = [];
|
|
22511
22525
|
let bytes = 0;
|
|
@@ -29490,7 +29504,7 @@ var gitChangeStatusReaderLayer = (open2) => Layer258.effect(
|
|
|
29490
29504
|
|
|
29491
29505
|
// apps/server/src/adapters/changes/git-worktree-side-reader.ts
|
|
29492
29506
|
import { Effect as Effect373, Layer as Layer259 } from "effect";
|
|
29493
|
-
import { join as
|
|
29507
|
+
import { join as join8 } from "node:path";
|
|
29494
29508
|
|
|
29495
29509
|
// apps/server/src/adapters/changes/inspection-checkouts.ts
|
|
29496
29510
|
import { Effect as Effect370 } from "effect";
|
|
@@ -29507,7 +29521,7 @@ import { Effect as Effect372 } from "effect";
|
|
|
29507
29521
|
import { createHash as createHash10 } from "node:crypto";
|
|
29508
29522
|
import { constants as constants4 } from "node:fs";
|
|
29509
29523
|
import { lstat as lstat5, readlink } from "node:fs/promises";
|
|
29510
|
-
import { dirname as dirname3, join as
|
|
29524
|
+
import { dirname as dirname3, join as join7, sep as sep3 } from "node:path";
|
|
29511
29525
|
|
|
29512
29526
|
// apps/server/src/adapters/files/inspect-path.ts
|
|
29513
29527
|
import { Effect as Effect371 } from "effect";
|
|
@@ -29660,7 +29674,7 @@ var readEntry = Effect372.fn("readWorktreeFiles.readEntry")(function* (root, pat
|
|
|
29660
29674
|
const target = { root, path: parent2 === "." ? "" : parent2 };
|
|
29661
29675
|
const before = yield* inspectPath(target);
|
|
29662
29676
|
if (!before.info.isDirectory()) return void 0;
|
|
29663
|
-
const full =
|
|
29677
|
+
const full = join7(before.path, path.split("/").at(-1) ?? "");
|
|
29664
29678
|
if (!full.startsWith(before.path + sep3)) return void 0;
|
|
29665
29679
|
const info = yield* syscall(() => lstat5(full, { bigint: true }));
|
|
29666
29680
|
if (info.isSymbolicLink()) {
|
|
@@ -29746,7 +29760,7 @@ var gitWorktreeSideReaderLayer = (open2, options) => Layer259.effect(
|
|
|
29746
29760
|
open2(input.worktreeId).pipe(provideGit)
|
|
29747
29761
|
);
|
|
29748
29762
|
return yield* stampPath(
|
|
29749
|
-
|
|
29763
|
+
join8(worktree.administrativeDirectory, "index")
|
|
29750
29764
|
);
|
|
29751
29765
|
}
|
|
29752
29766
|
)
|
|
@@ -31546,7 +31560,7 @@ import { Effect as Effect416, Layer as Layer303 } from "effect";
|
|
|
31546
31560
|
|
|
31547
31561
|
// apps/server/src/adapters/files/filesystem-directory-reader.ts
|
|
31548
31562
|
import { lstat as lstat6, readlink as readlink2 } from "node:fs/promises";
|
|
31549
|
-
import { join as
|
|
31563
|
+
import { join as join9 } from "node:path";
|
|
31550
31564
|
import { Effect as Effect406, Layer as Layer292 } from "effect";
|
|
31551
31565
|
var nameDecoder = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
|
|
31552
31566
|
var filesystemDirectoryReaderLayer = (worktrees, options) => Layer292.succeed(DirectoryReader, {
|
|
@@ -31607,7 +31621,7 @@ function decodedName2(name) {
|
|
|
31607
31621
|
}
|
|
31608
31622
|
var describe = Effect406.fn("FilesystemDirectoryReader.describe")(function* (directory2, name, entry, gitDirectory) {
|
|
31609
31623
|
const kind = entryKind(entry);
|
|
31610
|
-
const full =
|
|
31624
|
+
const full = join9(directory2, name);
|
|
31611
31625
|
if (kind === "symlink") {
|
|
31612
31626
|
const target = yield* syscall(() => readlink2(full)).pipe(
|
|
31613
31627
|
Effect406.catch(() => Effect406.succeed(void 0))
|
|
@@ -31615,7 +31629,7 @@ var describe = Effect406.fn("FilesystemDirectoryReader.describe")(function* (dir
|
|
|
31615
31629
|
return target === void 0 ? { name, kind } : { name, kind, target };
|
|
31616
31630
|
}
|
|
31617
31631
|
if (kind === "directory") {
|
|
31618
|
-
const nested = yield* syscall(() => lstat6(
|
|
31632
|
+
const nested = yield* syscall(() => lstat6(join9(full, gitDirectory))).pipe(
|
|
31619
31633
|
Effect406.as(true),
|
|
31620
31634
|
Effect406.catch(() => Effect406.succeed(false))
|
|
31621
31635
|
);
|
|
@@ -31644,7 +31658,7 @@ import {
|
|
|
31644
31658
|
symlink,
|
|
31645
31659
|
unlink
|
|
31646
31660
|
} from "node:fs/promises";
|
|
31647
|
-
import { basename as basename2, dirname as dirname4, join as
|
|
31661
|
+
import { basename as basename2, dirname as dirname4, join as join10 } from "node:path";
|
|
31648
31662
|
import trash from "trash";
|
|
31649
31663
|
var exclusiveWrite = constants6.O_WRONLY | constants6.O_CREAT | constants6.O_EXCL;
|
|
31650
31664
|
var parent = Effect407.fn("FilesystemFileWriter.parent")(function* (target) {
|
|
@@ -31718,7 +31732,7 @@ var filesystemFileWriterLayer = (worktrees, options) => Layer293.sync(FileWriter
|
|
|
31718
31732
|
if (fileIdentity(before.info) !== input.revision)
|
|
31719
31733
|
return yield* Effect407.fail(pathRefused("changed"));
|
|
31720
31734
|
const folder = yield* parent(target);
|
|
31721
|
-
const temporary =
|
|
31735
|
+
const temporary = join10(
|
|
31722
31736
|
folder.path,
|
|
31723
31737
|
options.temporaryName(randomUUID9())
|
|
31724
31738
|
);
|
|
@@ -31766,7 +31780,7 @@ var filesystemFileWriterLayer = (worktrees, options) => Layer293.sync(FileWriter
|
|
|
31766
31780
|
(commit) => Effect407.gen(function* () {
|
|
31767
31781
|
const target = yield* locate(input);
|
|
31768
31782
|
const folder = yield* parent(target);
|
|
31769
|
-
const path =
|
|
31783
|
+
const path = join10(folder.path, basename2(target.path));
|
|
31770
31784
|
let committed = false;
|
|
31771
31785
|
yield* Effect407.acquireRelease(
|
|
31772
31786
|
Effect407.scoped(
|
|
@@ -31860,14 +31874,14 @@ var filesystemFileWriterLayer = (worktrees, options) => Layer293.sync(FileWriter
|
|
|
31860
31874
|
(commit) => Effect407.gen(function* () {
|
|
31861
31875
|
const target = yield* locate(input);
|
|
31862
31876
|
const sourceParent = yield* parent(target);
|
|
31863
|
-
const source =
|
|
31877
|
+
const source = join10(sourceParent.path, basename2(target.path));
|
|
31864
31878
|
const info = yield* syscall(() => lstat7(source, { bigint: true }));
|
|
31865
31879
|
const destinationTarget = { ...target, path: input.destination };
|
|
31866
31880
|
const destinationParent = yield* parent(destinationTarget);
|
|
31867
31881
|
yield* moveEntry(
|
|
31868
31882
|
{ info, path: source, parent: sourceParent, target },
|
|
31869
31883
|
{
|
|
31870
|
-
path:
|
|
31884
|
+
path: join10(destinationParent.path, basename2(input.destination)),
|
|
31871
31885
|
parent: destinationParent,
|
|
31872
31886
|
target: destinationTarget
|
|
31873
31887
|
},
|
|
@@ -31882,7 +31896,7 @@ var filesystemFileWriterLayer = (worktrees, options) => Layer293.sync(FileWriter
|
|
|
31882
31896
|
(commit) => Effect407.gen(function* () {
|
|
31883
31897
|
const target = yield* locate(input);
|
|
31884
31898
|
const sourceParent = yield* parent(target);
|
|
31885
|
-
const source =
|
|
31899
|
+
const source = join10(sourceParent.path, basename2(target.path));
|
|
31886
31900
|
const info = yield* syscall(() => lstat7(source, { bigint: true }));
|
|
31887
31901
|
if (!info.isFile())
|
|
31888
31902
|
return yield* Effect407.fail(pathRefused("unreadable"));
|
|
@@ -31890,7 +31904,7 @@ var filesystemFileWriterLayer = (worktrees, options) => Layer293.sync(FileWriter
|
|
|
31890
31904
|
return yield* Effect407.fail(pathRefused("too-large"));
|
|
31891
31905
|
const destinationTarget = { ...target, path: input.destination };
|
|
31892
31906
|
const destinationParent = yield* parent(destinationTarget);
|
|
31893
|
-
const destination =
|
|
31907
|
+
const destination = join10(
|
|
31894
31908
|
destinationParent.path,
|
|
31895
31909
|
basename2(input.destination)
|
|
31896
31910
|
);
|
|
@@ -31939,7 +31953,7 @@ var filesystemFileWriterLayer = (worktrees, options) => Layer293.sync(FileWriter
|
|
|
31939
31953
|
(commit) => Effect407.gen(function* () {
|
|
31940
31954
|
const target = yield* locate(input);
|
|
31941
31955
|
const folder = yield* parent(target);
|
|
31942
|
-
const path =
|
|
31956
|
+
const path = join10(folder.path, basename2(target.path));
|
|
31943
31957
|
const before = yield* syscall(() => lstat7(path, { bigint: true }));
|
|
31944
31958
|
yield* verifyParent(folder, target);
|
|
31945
31959
|
if (!unchanged(
|
|
@@ -32907,7 +32921,7 @@ import { Effect as Effect436 } from "effect";
|
|
|
32907
32921
|
|
|
32908
32922
|
// packages/git/src/actions/commands/commit-paths.ts
|
|
32909
32923
|
import { Effect as Effect435, FileSystem as FileSystem36 } from "effect";
|
|
32910
|
-
import { dirname as dirname5, join as
|
|
32924
|
+
import { dirname as dirname5, join as join11 } from "node:path";
|
|
32911
32925
|
|
|
32912
32926
|
// packages/git/src/actions/commands/read-optional-action-oid.ts
|
|
32913
32927
|
import { Effect as Effect430 } from "effect";
|
|
@@ -33044,7 +33058,7 @@ var commitPaths = Effect435.fn("Git.commitPaths")(function* (process2, preparati
|
|
|
33044
33058
|
directory: dirname5(indexPath),
|
|
33045
33059
|
prefix: "porcelain-index-"
|
|
33046
33060
|
});
|
|
33047
|
-
const indexFile =
|
|
33061
|
+
const indexFile = join11(temporary, "index");
|
|
33048
33062
|
const original = yield* fs.readFile(indexPath).pipe(
|
|
33049
33063
|
Effect435.catchReason(
|
|
33050
33064
|
"PlatformError",
|
|
@@ -33053,7 +33067,7 @@ var commitPaths = Effect435.fn("Git.commitPaths")(function* (process2, preparati
|
|
|
33053
33067
|
)
|
|
33054
33068
|
);
|
|
33055
33069
|
if (original) yield* fs.writeFile(indexFile, original);
|
|
33056
|
-
const pathsFile =
|
|
33070
|
+
const pathsFile = join11(temporary, "paths");
|
|
33057
33071
|
yield* fs.writeFileString(pathsFile, `${paths.join("\0")}\0`);
|
|
33058
33072
|
const run2 = (args, input) => process2.execute(["--literal-pathspecs", ...args], input, {
|
|
33059
33073
|
indexFile
|
|
@@ -33603,7 +33617,7 @@ var checkStashCollisions = Effect444.fn("Git.checkStashCollisions")(
|
|
|
33603
33617
|
|
|
33604
33618
|
// packages/git/src/actions/commands/inspect-action-config.ts
|
|
33605
33619
|
import { Effect as Effect446, FileSystem as FileSystem37 } from "effect";
|
|
33606
|
-
import { join as
|
|
33620
|
+
import { join as join12 } from "node:path";
|
|
33607
33621
|
|
|
33608
33622
|
// packages/git/src/actions/parsers/validate-action-config.ts
|
|
33609
33623
|
import { Effect as Effect445 } from "effect";
|
|
@@ -33665,7 +33679,7 @@ var rejectUncheckableHooks = Effect446.fn("Git.rejectUncheckableHooks")(
|
|
|
33665
33679
|
);
|
|
33666
33680
|
for (const name of names.sort((a, b) => a.localeCompare(b))) {
|
|
33667
33681
|
if (name.endsWith(".sample")) continue;
|
|
33668
|
-
const info = yield* readActionFile(
|
|
33682
|
+
const info = yield* readActionFile(join12(hooks, name));
|
|
33669
33683
|
if (!info?.isFile() || info.size > process2.limits.actions.hookBytes)
|
|
33670
33684
|
return yield* new GitActionRejectedError({
|
|
33671
33685
|
reason: "UNSUPPORTED_CONFIGURATION",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Wo as e,ts as t}from"./access-WT1uwdZk.js";import{t as n}from"./connected-workspace-
|
|
1
|
+
import{Wo as e,ts as t}from"./access-WT1uwdZk.js";import{t as n}from"./connected-workspace-D-2S8JMu.js";var r=e(),i=t(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{notice:`not-found`}),e[0]=t):t=e[0],t};export{a as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Jo as e,On as t,Wo as n,ai as r,ci as i,ts as a}from"./access-WT1uwdZk.js";import"./edit-file-CG3WhqLS.js";import{t as o}from"./useRouterState-DCsGUMtp.js";import{it as s}from"./settings-page-
|
|
1
|
+
import{Jo as e,On as t,Wo as n,ai as r,ci as i,ts as a}from"./access-WT1uwdZk.js";import"./edit-file-CG3WhqLS.js";import{t as o}from"./useRouterState-DCsGUMtp.js";import{it as s}from"./settings-page-DiniwPDM.js";import{t as c}from"./connected-workspace-D-2S8JMu.js";import{i as l}from"./index-CAnBdCQi.js";var u=n(),d=a();function f(){let n=(0,u.c)(18),a=l.useSearch(),f,m;n[0]===a?(f=n[1],m=n[2]):({worktree:m,...f}=a,n[0]=a,n[1]=f,n[2]=m);let h;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(h={select:p},n[3]=h):h=n[3];let g=o(h),{connection:_}=t(),v=s(_),y;n[4]!==v||n[5]!==m?(y=m===void 0?i(v,r(v)?.id):i(v,m),n[4]=v,n[5]=m,n[6]=y):y=n[6];let b=y;if(b&&g){let t;n[7]!==b.projectId||n[8]!==b.worktree.id?(t={projectId:b.projectId,worktreeId:b.worktree.id},n[7]=b.projectId,n[8]=b.worktree.id,n[9]=t):t=n[9];let r;n[10]!==f||n[11]!==m?(r=m===void 0?{}:f,n[10]=f,n[11]=m,n[12]=r):r=n[12];let i;return n[13]!==t||n[14]!==r?(i=(0,d.jsx)(e,{to:`/$projectId/$worktreeId`,params:t,search:r,replace:!0}),n[13]=t,n[14]=r,n[15]=i):i=n[15],i}let x=m!==void 0&&g?`missing-worktree`:void 0,S;return n[16]===x?S=n[17]:(S=(0,d.jsx)(c,{notice:x}),n[16]=x,n[17]=S),S}function p(e){return e.status===`idle`&&e.location.pathname===`/`}export{f as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Jo as t,Ms as n,Wo as r,kn as i,ts as a}from"./access-WT1uwdZk.js";import{o}from"./index-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Jo as t,Ms as n,Wo as r,kn as i,ts as a}from"./access-WT1uwdZk.js";import{o}from"./index-CAnBdCQi.js";import{t as s}from"./useRouterState-DCsGUMtp.js";import{b as c,d as l,fn as u,h as d,y as f}from"./settings-page-DiniwPDM.js";import{_ as p,t as m}from"./desktop-actions-D0SKWMXm.js";var h=e(n(),1),g=r(),_=a();function v(e){let t=(0,g.c)(3),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,_.jsx)(u,{}),t[0]=r):r=t[0];let i;return t[1]===n?i=t[2]:(i=(0,_.jsxs)(_.Fragment,{children:[r,(0,_.jsx)(p,{children:n})]}),t[1]=n,t[2]=i),i}function y(e){let t=(0,g.c)(6),{children:n}=e,[r,a]=(0,h.useState)(!0),o=i(),s;t[0]===o?s=t[1]:(s=o&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(f,{connection:o}),(0,_.jsx)(l,{connection:o}),(0,_.jsx)(c,{connection:o})]}),t[0]=o,t[1]=s);let u;return t[2]!==n||t[3]!==r||t[4]!==s?(u=(0,_.jsx)(v,{children:(0,_.jsxs)(d,{open:r,onOpenChange:a,children:[n,s]})}),t[2]=n,t[3]=r,t[4]=s,t[5]=u):u=t[5],u}function b(){let e=(0,g.c)(4),n=i(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={select:x},e[0]=r):r=e[0];let a=s(r),c;return e[1]!==n||e[2]!==a?(c=n?(0,_.jsxs)(y,{children:[(0,_.jsx)(o,{}),(0,_.jsx)(m,{connection:n,empty:a})]}):(0,_.jsx)(t,{to:`/pair`,replace:!0}),e[1]=n,e[2]=a,e[3]=c):c=e[3],c}function x(e){return e.location.pathname===`/`}export{b as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{On as e,Wo as t,ts as n}from"./access-WT1uwdZk.js";import{t as r}from"./useMatch-Dht53RCg.js";import{it as i,r as a,t as o}from"./settings-page-
|
|
1
|
+
import{On as e,Wo as t,ts as n}from"./access-WT1uwdZk.js";import{t as r}from"./useMatch-Dht53RCg.js";import{it as i,r as a,t as o}from"./settings-page-DiniwPDM.js";import{n as s,t as c}from"./connected-workspace-D-2S8JMu.js";import{n as l}from"./index-CAnBdCQi.js";var u=t(),d=n();function f(){let t=(0,u.c)(5),{section:n}=l.useParams(),f;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f={from:`/_paired/settings/$section/$environmentId`,shouldThrow:!1},t[0]=f):f=t[0];let p=r(f),m=a.some(e=>e.id===n)&&(p===void 0||n===`computers`),{connection:h}=e(),{environment:g}=i(h);if(s(m?g.custom?`Settings · ${g.name}`:`Settings`:`Porcelain`),!m){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,d.jsx)(c,{notice:`not-found`}),t[1]=e):e=t[1],e}let _=p?.params.environmentId,v;return t[2]!==n||t[3]!==_?(v=(0,d.jsx)(c,{settingsOpen:!0,children:(0,d.jsx)(o,{section:n,environmentId:_})}),t[2]=n,t[3]=_,t[4]=v):v=t[4],v}export{f as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Jo as e,On as t,Wo as n,ci as r,ts as i}from"./access-WT1uwdZk.js";import"./edit-file-CG3WhqLS.js";import{it as a}from"./settings-page-
|
|
1
|
+
import{Jo as e,On as t,Wo as n,ci as r,ts as i}from"./access-WT1uwdZk.js";import"./edit-file-CG3WhqLS.js";import{it as a}from"./settings-page-DiniwPDM.js";import{t as o}from"./connected-workspace-D-2S8JMu.js";import{r as s}from"./index-CAnBdCQi.js";var c=n(),l=i();function u(){let n=(0,c.c)(10),{projectId:i,worktreeId:u}=s.useParams(),d=s.useSearch(),{connection:f}=t(),p=a(f),m;n[0]!==p||n[1]!==u?(m=r(p,u),n[0]=p,n[1]=u,n[2]=m):m=n[2];let h=m;if(h?.projectId!==i){let t;return n[3]!==d||n[4]!==u?(t=(0,l.jsx)(e,{to:`/`,search:{...d,worktree:u},replace:!0}),n[3]=d,n[4]=u,n[5]=t):t=n[5],t}let g;return n[6]!==p||n[7]!==d||n[8]!==h?(g=(0,l.jsx)(o,{review:{selection:h,search:d,inventory:p}}),n[6]=p,n[7]=d,n[8]=h,n[9]=g):g=n[9],g}export{u as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{An as e,Jo as t,Wo as n,ts as r}from"./access-WT1uwdZk.js";import"./edit-file-CG3WhqLS.js";import"./settings-page-
|
|
1
|
+
import{An as e,Jo as t,Wo as n,ts as r}from"./access-WT1uwdZk.js";import"./edit-file-CG3WhqLS.js";import"./settings-page-DiniwPDM.js";import"./connected-workspace-D-2S8JMu.js";import"./workspace-pending-oH5nDvO6.js";import{t as i}from"./index-CAnBdCQi.js";var a=n(),o=r();function s(){let n=(0,a.c)(9),{environmentId:r,projectId:s,worktreeId:c}=i.useParams(),l=i.useSearch();e(r);{let e;return n[0]!==l||n[1]!==c?(e=(0,o.jsx)(t,{to:`/`,search:{...l,worktree:c},replace:!0}),n[0]=l,n[1]=c,n[2]=e):e=n[2],e}}export{s as component};
|