@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.
@@ -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 === 0) {
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.some((value) => isPathWithin(normalizedRoot, resolve2(value)));
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\":\"197645fc822fb88fb5c3621118eac9a4056b4ca405d02b15ed23563d65fac8f2\"}"
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\":\"4c2c75fcfc50c95af81b05539aaa4773784a8e5fcfc985bae2302390afaf164f\"}"
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\":\"60b98fa15d6f1ea6b7031f24813b17e506f39e9f9f4215d952e124937e07bacd\"}"
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.12",
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.12",
68
- "@rig/core": "npm:@h-rig/core@0.0.6-alpha.12",
69
- "@rig/hook-kit": "npm:@h-rig/hook-kit@0.0.6-alpha.12",
70
- "@rig/shared": "npm:@h-rig/shared@0.0.6-alpha.12",
71
- "@rig/validator-kit": "npm:@h-rig/validator-kit@0.0.6-alpha.12",
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
  }