@habitat-ai/cli 0.4.2 → 0.5.1
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/nx/projection.js +9 -5
- package/dist/nx-plugin.js +2 -0
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
package/dist/nx/projection.js
CHANGED
|
@@ -224,13 +224,13 @@ function ownerInputs(targets, runtimeInputs) {
|
|
|
224
224
|
function applicationInputs(application, runtimeInputs) {
|
|
225
225
|
const files = new Set(HABITAT_CATALOG_PATHS.map(workspaceInput));
|
|
226
226
|
if (application.runner.name === "grit") {
|
|
227
|
-
files
|
|
227
|
+
addLocalAssetInput(files, application.runner.pattern);
|
|
228
228
|
for (const entry of application.runner.acquisition.entries) {
|
|
229
229
|
addSubjectInputs(files, entry.path, entry.kind);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
else {
|
|
233
|
-
files
|
|
233
|
+
addLocalAssetInput(files, application.runner.structure);
|
|
234
234
|
for (const binding of application.runner.rootBindings) {
|
|
235
235
|
if (binding.path !== undefined)
|
|
236
236
|
addSubjectInputs(files, binding.path, binding.kind);
|
|
@@ -242,20 +242,24 @@ function compatibilityInputs(rule, runtimeInputs) {
|
|
|
242
242
|
const files = new Set(HABITAT_CATALOG_PATHS.map(workspaceInput));
|
|
243
243
|
files.add(workspaceInput(".habitat/**"));
|
|
244
244
|
files.add(workspaceInput(rule.manifestPath));
|
|
245
|
-
files
|
|
245
|
+
addLocalAssetInput(files, rule.baseline);
|
|
246
246
|
for (const pattern of rule.coveragePatterns)
|
|
247
247
|
files.add(workspaceInput(pattern));
|
|
248
248
|
if (rule.runner.name === "grit") {
|
|
249
|
-
files
|
|
249
|
+
addLocalAssetInput(files, rule.runner.pattern);
|
|
250
250
|
for (const entry of rule.runner.acquisition.entries) {
|
|
251
251
|
addSubjectInputs(files, entry.path, entry.kind);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
else {
|
|
255
|
-
files
|
|
255
|
+
addLocalAssetInput(files, rule.runner.structure);
|
|
256
256
|
}
|
|
257
257
|
return [...runtimeInputs, ...[...files].sort(compareText)];
|
|
258
258
|
}
|
|
259
|
+
function addLocalAssetInput(target, asset) {
|
|
260
|
+
if (asset.provenance.kind === "local")
|
|
261
|
+
target.add(workspaceInput(asset.relativePath));
|
|
262
|
+
}
|
|
259
263
|
function addSubjectInputs(target, path, kind) {
|
|
260
264
|
const exact = workspaceInput(path);
|
|
261
265
|
if (kind === "directory" && path === ".") {
|
package/dist/nx-plugin.js
CHANGED
|
@@ -4,6 +4,8 @@ const clientForWorkspace = createHabitatClientForWorkspace;
|
|
|
4
4
|
const plugin = createHabitatNxPlugin({
|
|
5
5
|
clientForWorkspace,
|
|
6
6
|
runtimeInputs: [
|
|
7
|
+
// The CLI pins its SDK exactly, so the CLI node and lockfile identify the runtime closure.
|
|
8
|
+
{ externalDependencies: ["@habitat-ai/cli"] },
|
|
7
9
|
"{workspaceRoot}/bun.lock",
|
|
8
10
|
"{workspaceRoot}/package.json",
|
|
9
11
|
{ env: "HABITAT_COMMAND_TIMEOUT_MS" },
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@habitat-ai/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"test": "vitest run --project habitat-cli"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@habitat-ai/sdk": "0.
|
|
48
|
+
"@habitat-ai/sdk": "0.5.1",
|
|
49
49
|
"@nx/devkit": "23.1.0",
|
|
50
50
|
"@oclif/core": "^4.13.2",
|
|
51
51
|
"@oclif/plugin-help": "^6.2.27",
|