@welluable/orch 1.1.0 → 1.3.0
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 +224 -6
- package/agents/boundaries.js +26 -0
- package/agents/code-writer.js +5 -0
- package/agents/decomposer.js +62 -0
- package/agents/index.js +3 -0
- package/agents/integrator.js +41 -0
- package/agents/quick-fix.js +4 -0
- package/agents/test-writer.js +4 -0
- package/lib/agent.js +82 -6
- package/lib/commit.js +70 -0
- package/lib/config.js +115 -0
- package/lib/continue.js +132 -0
- package/lib/fanout.js +355 -0
- package/lib/file-tracker.js +89 -0
- package/lib/integrate.js +51 -0
- package/lib/job-lifecycle.js +53 -0
- package/lib/jobs.js +361 -0
- package/lib/parse-decomposition.js +33 -0
- package/lib/run-context.js +13 -1
- package/lib/stage-summary.js +55 -6
- package/lib/worktree.js +4 -2
- package/main.js +2739 -214
- package/package.json +1 -1
package/lib/worktree.js
CHANGED
|
@@ -22,7 +22,7 @@ function runGit(execFile, args) {
|
|
|
22
22
|
* `execFile` is injectable and defaults to a `child_process.execFileSync`
|
|
23
23
|
* wrapper.
|
|
24
24
|
*/
|
|
25
|
-
export function createWorktree({ cwd, slug, execFile = defaultExecFile }) {
|
|
25
|
+
export function createWorktree({ cwd, slug, execFile = defaultExecFile, base }) {
|
|
26
26
|
const repoRoot = runGit(execFile, ['-C', cwd, 'rev-parse', '--show-toplevel']).trim();
|
|
27
27
|
|
|
28
28
|
const worktreePath = `${path.join(path.dirname(repoRoot), path.basename(repoRoot))}-${slug}`;
|
|
@@ -32,7 +32,9 @@ export function createWorktree({ cwd, slug, execFile = defaultExecFile }) {
|
|
|
32
32
|
throw new Error(`createWorktree: refusing to overwrite existing path ${worktreePath}`);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
const args = ['-C', repoRoot, 'worktree', 'add', '-b', branch, worktreePath];
|
|
36
|
+
if (base) args.push(base);
|
|
37
|
+
runGit(execFile, args);
|
|
36
38
|
|
|
37
39
|
return { repoRoot, worktreePath, branch };
|
|
38
40
|
}
|