@habitat-ai/service 0.2.1 → 0.2.2
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.
|
@@ -7,10 +7,9 @@ import { admitStructureDocument, evaluateStructurePlan, isHabitatStructureApplic
|
|
|
7
7
|
import { module } from "../module.js";
|
|
8
8
|
const authorityGlobs = [
|
|
9
9
|
{ kind: "blueprint", pattern: ".habitat/blueprints/*/blueprint.toml" },
|
|
10
|
-
// Effect's glob provider requires a dynamic pattern even for this exact optional file.
|
|
11
|
-
{ kind: "index", pattern: ".habitat/{index.json}" },
|
|
12
10
|
{ kind: "rule", pattern: ".habitat/**/rule.json" },
|
|
13
11
|
];
|
|
12
|
+
const compatibilityIndexAuthorityPath = ".habitat/index.json";
|
|
14
13
|
const excludedDirectorySegments = new Set([
|
|
15
14
|
".git",
|
|
16
15
|
".nx",
|
|
@@ -126,6 +125,13 @@ function resolveCurrentCatalog(context) {
|
|
|
126
125
|
pathsByKind[kind].push(relativePath);
|
|
127
126
|
}
|
|
128
127
|
}
|
|
128
|
+
const compatibilityIndexStat = yield* Effect.result(fileSystem.stat(path.resolve(workspaceRoot, compatibilityIndexAuthorityPath)));
|
|
129
|
+
if (compatibilityIndexStat._tag === "Success") {
|
|
130
|
+
pathsByKind.index.push(compatibilityIndexAuthorityPath);
|
|
131
|
+
}
|
|
132
|
+
else if (!isNotFound(compatibilityIndexStat.failure)) {
|
|
133
|
+
enumerationIssues.push(filesystemIssue(compatibilityIndexStat.failure, compatibilityIndexAuthorityPath, "inspect compatibility index", "Compatibility index does not exist."));
|
|
134
|
+
}
|
|
129
135
|
// The installed glob provider skips hidden directories, so manifests use a confined traversal.
|
|
130
136
|
const manifestCandidates = [];
|
|
131
137
|
const pendingDirectories = [{ relativePath: "", realPath: workspaceRealRoot }];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@habitat-ai/service",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"test": "bun test test"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@habitat-ai/resource-rule-evaluation": "0.2.
|
|
28
|
-
"@habitat-ai/resource-source-inventory": "0.2.
|
|
27
|
+
"@habitat-ai/resource-rule-evaluation": "0.2.2",
|
|
28
|
+
"@habitat-ai/resource-source-inventory": "0.2.2",
|
|
29
29
|
"@opentelemetry/api": "^1.9.0",
|
|
30
30
|
"@orpc/contract": "2.0.0-beta.20",
|
|
31
31
|
"@orpc/experimental-effect": "2.0.0-beta.20",
|