@h-rig/runtime 0.0.6-alpha.13 → 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 +430 -71
- package/dist/src/control-plane/hooks/completion-verification.js +469 -87
- package/dist/src/control-plane/native/git-ops.js +28 -7
- package/dist/src/control-plane/native/harness-cli.js +430 -71
- package/dist/src/control-plane/native/pr-automation.js +523 -86
- package/dist/src/control-plane/native/pr-review-gate.js +494 -69
- package/dist/src/control-plane/native/run-ops.js +12 -6
- package/dist/src/control-plane/native/task-ops.js +466 -105
- package/dist/src/control-plane/native/verifier.js +466 -107
- 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
|
@@ -169,10 +169,6 @@ function runBelongsToProject(projectRoot, run, runsDir) {
|
|
|
169
169
|
if (recordedProjectRoot) {
|
|
170
170
|
return resolve2(recordedProjectRoot) === normalizedRoot;
|
|
171
171
|
}
|
|
172
|
-
const projectLocalRunsDir = resolve2(normalizedRoot, ".rig", "runs");
|
|
173
|
-
if (isPathWithin(projectLocalRunsDir, resolve2(runsDir))) {
|
|
174
|
-
return true;
|
|
175
|
-
}
|
|
176
172
|
const pathFields = [
|
|
177
173
|
run.worktreePath,
|
|
178
174
|
run.artifactRoot,
|
|
@@ -180,10 +176,20 @@ function runBelongsToProject(projectRoot, run, runsDir) {
|
|
|
180
176
|
run.sessionPath,
|
|
181
177
|
run.sessionLogPath
|
|
182
178
|
].filter((value) => typeof value === "string" && value.trim().length > 0);
|
|
183
|
-
if (pathFields.length
|
|
179
|
+
if (pathFields.length > 0) {
|
|
180
|
+
if (pathFields.some((value) => isPathWithin(normalizedRoot, resolve2(value)))) {
|
|
181
|
+
return true;
|
|
182
|
+
}
|
|
183
|
+
const pointsAtManagedWorkspace = pathFields.some((value) => /(?:^|[/\\])\.worktrees(?:[/\\]|$)/.test(value));
|
|
184
|
+
if (pointsAtManagedWorkspace) {
|
|
185
|
+
return false;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
const projectLocalRunsDir = resolve2(normalizedRoot, ".rig", "runs");
|
|
189
|
+
if (isPathWithin(projectLocalRunsDir, resolve2(runsDir))) {
|
|
184
190
|
return true;
|
|
185
191
|
}
|
|
186
|
-
return pathFields.
|
|
192
|
+
return pathFields.length === 0;
|
|
187
193
|
}
|
|
188
194
|
function isPathWithin(root, candidate) {
|
|
189
195
|
const relativePath = relative(root, candidate);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"buildKey": "{\"version\":1,\"sourcePath\":\"/var/folders/zr/6js4xbjs3bgf46v76j145mlw0000gn/T/rig-native/rig-git-darwin-arm64\",\"sourceDigest\":\"
|
|
3
|
+
"buildKey": "{\"version\":1,\"sourcePath\":\"/var/folders/zr/6js4xbjs3bgf46v76j145mlw0000gn/T/rig-native/rig-git-darwin-arm64\",\"sourceDigest\":\"67ef79af508d46b1134d48b315c236cad8225f53ef1959d3e0bd09801c7884c4\"}"
|
|
4
4
|
}
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"buildKey": "{\"version\":1,\"sourcePath\":\"/var/folders/zr/6js4xbjs3bgf46v76j145mlw0000gn/T/rig-native/rig-shell-darwin-arm64\",\"sourceDigest\":\"
|
|
3
|
+
"buildKey": "{\"version\":1,\"sourcePath\":\"/var/folders/zr/6js4xbjs3bgf46v76j145mlw0000gn/T/rig-native/rig-shell-darwin-arm64\",\"sourceDigest\":\"3b73710b3e4cdfb76d959e92d37049234cf54b2d8deee683aba9f342be4f3597\"}"
|
|
4
4
|
}
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"buildKey": "{\"version\":1,\"sourcePath\":\"/var/folders/zr/6js4xbjs3bgf46v76j145mlw0000gn/T/rig-native/rig-tools-darwin-arm64\",\"sourceDigest\":\"
|
|
3
|
+
"buildKey": "{\"version\":1,\"sourcePath\":\"/var/folders/zr/6js4xbjs3bgf46v76j145mlw0000gn/T/rig-native/rig-tools-darwin-arm64\",\"sourceDigest\":\"9bf9381cca81f26d1b3ddcad28a0a6211a090ec2905471d6c25a9d89fb20c496\"}"
|
|
4
4
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h-rig/runtime",
|
|
3
|
-
"version": "0.0.6-alpha.
|
|
3
|
+
"version": "0.0.6-alpha.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Rig package",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"module": "./dist/src/index.js",
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@libsql/client": "^0.17.2",
|
|
67
|
-
"@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.
|
|
68
|
-
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.
|
|
69
|
-
"@rig/hook-kit": "npm:@h-rig/hook-kit@0.0.6-alpha.
|
|
70
|
-
"@rig/shared": "npm:@h-rig/shared@0.0.6-alpha.
|
|
71
|
-
"@rig/validator-kit": "npm:@h-rig/validator-kit@0.0.6-alpha.
|
|
67
|
+
"@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.14",
|
|
68
|
+
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.14",
|
|
69
|
+
"@rig/hook-kit": "npm:@h-rig/hook-kit@0.0.6-alpha.14",
|
|
70
|
+
"@rig/shared": "npm:@h-rig/shared@0.0.6-alpha.14",
|
|
71
|
+
"@rig/validator-kit": "npm:@h-rig/validator-kit@0.0.6-alpha.14",
|
|
72
72
|
"effect": "4.0.0-beta.78",
|
|
73
73
|
"smol-toml": "^1.6.0"
|
|
74
74
|
}
|