@h-rig/runtime 0.0.6-alpha.12 → 0.0.6-alpha.14
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/bin/rig-agent.js +1 -1
- package/dist/src/control-plane/authority-files.js +12 -6
- package/dist/src/control-plane/harness-main.js +432 -79
- package/dist/src/control-plane/hooks/completion-verification.js +471 -95
- package/dist/src/control-plane/native/git-ops.js +28 -7
- package/dist/src/control-plane/native/harness-cli.js +432 -79
- package/dist/src/control-plane/native/pr-automation.js +528 -93
- package/dist/src/control-plane/native/pr-review-gate.js +499 -76
- package/dist/src/control-plane/native/run-ops.js +12 -6
- package/dist/src/control-plane/native/task-ops.js +468 -113
- package/dist/src/control-plane/native/verifier.js +468 -115
- package/dist/src/control-plane/native/workspace-ops.js +12 -6
- package/native/darwin-arm64/rig-git +0 -0
- package/native/darwin-arm64/rig-git.build-manifest.json +1 -1
- package/native/darwin-arm64/rig-shell +0 -0
- package/native/darwin-arm64/rig-shell.build-manifest.json +1 -1
- package/native/darwin-arm64/rig-tools +0 -0
- package/native/darwin-arm64/rig-tools.build-manifest.json +1 -1
- package/package.json +6 -6
|
@@ -621,10 +621,6 @@ function runBelongsToProject(projectRoot, run, runsDir) {
|
|
|
621
621
|
if (recordedProjectRoot) {
|
|
622
622
|
return resolve3(recordedProjectRoot) === normalizedRoot;
|
|
623
623
|
}
|
|
624
|
-
const projectLocalRunsDir = resolve3(normalizedRoot, ".rig", "runs");
|
|
625
|
-
if (isPathWithin(projectLocalRunsDir, resolve3(runsDir))) {
|
|
626
|
-
return true;
|
|
627
|
-
}
|
|
628
624
|
const pathFields = [
|
|
629
625
|
run.worktreePath,
|
|
630
626
|
run.artifactRoot,
|
|
@@ -632,10 +628,20 @@ function runBelongsToProject(projectRoot, run, runsDir) {
|
|
|
632
628
|
run.sessionPath,
|
|
633
629
|
run.sessionLogPath
|
|
634
630
|
].filter((value) => typeof value === "string" && value.trim().length > 0);
|
|
635
|
-
if (pathFields.length
|
|
631
|
+
if (pathFields.length > 0) {
|
|
632
|
+
if (pathFields.some((value) => isPathWithin(normalizedRoot, resolve3(value)))) {
|
|
633
|
+
return true;
|
|
634
|
+
}
|
|
635
|
+
const pointsAtManagedWorkspace = pathFields.some((value) => /(?:^|[/\\])\.worktrees(?:[/\\]|$)/.test(value));
|
|
636
|
+
if (pointsAtManagedWorkspace) {
|
|
637
|
+
return false;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
const projectLocalRunsDir = resolve3(normalizedRoot, ".rig", "runs");
|
|
641
|
+
if (isPathWithin(projectLocalRunsDir, resolve3(runsDir))) {
|
|
636
642
|
return true;
|
|
637
643
|
}
|
|
638
|
-
return pathFields.
|
|
644
|
+
return pathFields.length === 0;
|
|
639
645
|
}
|
|
640
646
|
function isPathWithin(root, candidate) {
|
|
641
647
|
const relativePath = relative(root, candidate);
|