@ricsam/r5d-worker 0.0.75 → 0.0.77
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/cjs/git-process-environment.cjs +133 -0
- package/dist/cjs/main.cjs +276 -100
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/project-worktrees.cjs +135 -56
- package/dist/cjs/working-tree-mirror.cjs +2 -1
- package/dist/cjs/workspace-git-sync.cjs +67 -53
- package/dist/mjs/git-process-environment.mjs +105 -0
- package/dist/mjs/main.mjs +276 -100
- package/dist/mjs/package.json +1 -1
- package/dist/mjs/project-worktrees.mjs +133 -56
- package/dist/mjs/working-tree-mirror.mjs +2 -1
- package/dist/mjs/workspace-git-sync.mjs +67 -53
- package/dist/types/git-process-environment.d.ts +9 -0
- package/dist/types/main.d.ts +24 -0
- package/dist/types/project-worktrees.d.ts +33 -10
- package/dist/types/workspace-git-sync.d.ts +18 -5
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type WorkingTreeSourceMode } from "./working-tree-mirror";
|
|
2
|
-
import type { GitHttpAuth } from "./project-worktrees";
|
|
3
2
|
export declare const WORKSPACE_GIT_BRANCH = "main";
|
|
4
3
|
export declare const MAX_WORKSPACE_GIT_DIFF_BYTES: number;
|
|
5
4
|
export declare const WORKSPACE_GIT_CONFIRMED_LARGE_DIFF_PUSH_OPTION = "r5d-confirm-large-diff-v1";
|
|
@@ -33,11 +32,23 @@ export type WorkspaceGitSyncResult = {
|
|
|
33
32
|
};
|
|
34
33
|
error?: string;
|
|
35
34
|
};
|
|
35
|
+
declare function gitCommandArgs(args: string[]): string[];
|
|
36
|
+
declare function workspaceCloneCommandArgs(args: string[], remoteUrl: string, credentialHelper?: string | null, credentialUsername?: string | null): string[];
|
|
37
|
+
declare function configureWorkspaceRepository(input: {
|
|
38
|
+
workspacePath: string;
|
|
39
|
+
remoteUrl: string;
|
|
40
|
+
credentialHelper?: string | null;
|
|
41
|
+
credentialUsername?: string | null;
|
|
42
|
+
gitIdentity: {
|
|
43
|
+
name: string;
|
|
44
|
+
email: string;
|
|
45
|
+
};
|
|
46
|
+
}): void;
|
|
36
47
|
export declare function ensureWorkspaceGitClone(input: {
|
|
37
48
|
workspacePath: string;
|
|
38
49
|
remoteUrl: string;
|
|
39
|
-
remoteAuth?: GitHttpAuth;
|
|
40
50
|
credentialHelper?: string | null;
|
|
51
|
+
credentialUsername?: string | null;
|
|
41
52
|
gitIdentity: {
|
|
42
53
|
name: string;
|
|
43
54
|
email: string;
|
|
@@ -51,8 +62,8 @@ export declare function hydrateWorkspaceGitMounts(workspacePath: string, mounts:
|
|
|
51
62
|
export declare function resetWorkspaceGit(input: {
|
|
52
63
|
workspacePath: string;
|
|
53
64
|
remoteUrl: string;
|
|
54
|
-
remoteAuth?: GitHttpAuth;
|
|
55
65
|
credentialHelper?: string | null;
|
|
66
|
+
credentialUsername?: string | null;
|
|
56
67
|
gitIdentity: {
|
|
57
68
|
name: string;
|
|
58
69
|
email: string;
|
|
@@ -69,8 +80,8 @@ export declare function synchronizeWorkspaceGit(input: {
|
|
|
69
80
|
workerLabel: string;
|
|
70
81
|
workspacePath: string;
|
|
71
82
|
remoteUrl: string;
|
|
72
|
-
remoteAuth?: GitHttpAuth;
|
|
73
83
|
credentialHelper?: string | null;
|
|
84
|
+
credentialUsername?: string | null;
|
|
74
85
|
gitIdentity: {
|
|
75
86
|
name: string;
|
|
76
87
|
email: string;
|
|
@@ -90,7 +101,9 @@ export declare function synchronizeWorkspaceGit(input: {
|
|
|
90
101
|
}) => void | Promise<void>;
|
|
91
102
|
}): Promise<WorkspaceGitSyncResult>;
|
|
92
103
|
export declare const workspaceGitSyncTestHarness: {
|
|
93
|
-
commandArgs:
|
|
104
|
+
commandArgs: typeof gitCommandArgs;
|
|
105
|
+
workspaceCloneCommandArgs: typeof workspaceCloneCommandArgs;
|
|
106
|
+
configureWorkspaceRepository: typeof configureWorkspaceRepository;
|
|
94
107
|
mirrorMountsToWorkspace: typeof mirrorMountsToWorkspace;
|
|
95
108
|
hydrateMountsFromWorkspace: typeof hydrateWorkspaceGitMounts;
|
|
96
109
|
};
|