@habitat-ai/cli 0.4.2 → 0.5.0

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.
@@ -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.add(workspaceInput(application.runner.pattern.relativePath));
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.add(workspaceInput(application.runner.structure.relativePath));
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.add(workspaceInput(rule.baseline.relativePath));
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.add(workspaceInput(rule.runner.pattern.relativePath));
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.add(workspaceInput(rule.runner.structure.relativePath));
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,7 @@ const clientForWorkspace = createHabitatClientForWorkspace;
4
4
  const plugin = createHabitatNxPlugin({
5
5
  clientForWorkspace,
6
6
  runtimeInputs: [
7
+ { externalDependencies: ["@habitat-ai/cli", "@habitat-ai/sdk"] },
7
8
  "{workspaceRoot}/bun.lock",
8
9
  "{workspaceRoot}/package.json",
9
10
  { env: "HABITAT_COMMAND_TIMEOUT_MS" },
@@ -99,5 +99,5 @@
99
99
  ]
100
100
  }
101
101
  },
102
- "version": "0.4.2"
102
+ "version": "0.5.0"
103
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@habitat-ai/cli",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
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.4.2",
48
+ "@habitat-ai/sdk": "0.5.0",
49
49
  "@nx/devkit": "23.1.0",
50
50
  "@oclif/core": "^4.13.2",
51
51
  "@oclif/plugin-help": "^6.2.27",