@habitat-ai/cli 0.5.10 → 0.5.12
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/README.md +13 -1
- package/dist/nx/projection.js +3 -0
- package/oclif.manifest.json +1 -1
- package/package.json +13 -3
package/README.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
Habitat's Oclif CLI and native Nx integration. The package owns the portable
|
|
4
4
|
repository preset, Habitat policy projection, and the public `habitat` command.
|
|
5
5
|
|
|
6
|
+
## External Oclif Extensions
|
|
7
|
+
|
|
8
|
+
The CLI composes Oclif's native extension lifecycle without wrapping or
|
|
9
|
+
reimplementing it:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
habitat plugins --help
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
`@oclif/plugin-plugins` owns listing, installation, linking, inspection,
|
|
16
|
+
updates, reset, uninstallation, aliases, and its native per-user state.
|
|
17
|
+
|
|
6
18
|
## Create A Repository
|
|
7
19
|
|
|
8
20
|
Nx invokes the package's Bun-only `preset` generator while creating the workspace:
|
|
@@ -55,7 +67,7 @@ the final command applies the repository changes:
|
|
|
55
67
|
|
|
56
68
|
```sh
|
|
57
69
|
NX_MIGRATE_CLI_VERSION=23.1.1 NX_SKIP_PROVENANCE_CHECK=true \
|
|
58
|
-
bunx nx migrate @habitat-ai/cli@0.5.
|
|
70
|
+
bunx nx migrate @habitat-ai/cli@0.5.12
|
|
59
71
|
bun install
|
|
60
72
|
NX_MIGRATE_CLI_VERSION=23.1.1 NX_SKIP_PROVENANCE_CHECK=true \
|
|
61
73
|
bunx nx migrate --run-migrations=migrations.json --no-interactive
|
package/dist/nx/projection.js
CHANGED
|
@@ -175,6 +175,7 @@ function applicationTarget(application, runtimeInputs) {
|
|
|
175
175
|
return {
|
|
176
176
|
command: `${HABITAT_EXECUTABLE} check --instance ${application.instanceId} --rule ${application.ruleId}`,
|
|
177
177
|
cache: true,
|
|
178
|
+
parallelism: false,
|
|
178
179
|
inputs: applicationInputs(application, runtimeInputs),
|
|
179
180
|
outputs: [],
|
|
180
181
|
options: { cwd: "{workspaceRoot}" },
|
|
@@ -187,6 +188,7 @@ function compatibilityTarget(rule, runtimeInputs) {
|
|
|
187
188
|
return {
|
|
188
189
|
command: `${HABITAT_EXECUTABLE} check --rule ${rule.ruleId}`,
|
|
189
190
|
cache: true,
|
|
191
|
+
parallelism: false,
|
|
190
192
|
inputs: compatibilityInputs(rule, runtimeInputs),
|
|
191
193
|
outputs: [],
|
|
192
194
|
options: { cwd: "{workspaceRoot}" },
|
|
@@ -200,6 +202,7 @@ function ownerTarget(ownerProject, inputs, hasCompatibility) {
|
|
|
200
202
|
return {
|
|
201
203
|
command: `${HABITAT_EXECUTABLE} check --owner ${ownerProject}`,
|
|
202
204
|
cache: true,
|
|
205
|
+
parallelism: false,
|
|
203
206
|
inputs,
|
|
204
207
|
outputs: [],
|
|
205
208
|
options: { cwd: "{workspaceRoot}" },
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@habitat-ai/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,15 +55,17 @@
|
|
|
55
55
|
"build": "tsc -p src/tsconfig.build.json",
|
|
56
56
|
"manifest": "NODE_ENV=production bun --bun oclif manifest",
|
|
57
57
|
"acceptance:oclif-installed-package": "vitest run --project habitat-cli-installed-package-acceptance",
|
|
58
|
+
"acceptance:oclif-native-plugins": "vitest run --project habitat-cli-native-plugins-acceptance",
|
|
58
59
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
59
60
|
"check:test": "tsc -p test/tsconfig.json --noEmit",
|
|
60
61
|
"test": "vitest run --project habitat-cli"
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
|
-
"@habitat-ai/sdk": "0.5.
|
|
64
|
+
"@habitat-ai/sdk": "0.5.12",
|
|
64
65
|
"@nx/devkit": "23.1.1",
|
|
65
66
|
"@oclif/core": "^4.13.2",
|
|
66
67
|
"@oclif/plugin-help": "^6.2.27",
|
|
68
|
+
"@oclif/plugin-plugins": "^5.4.84",
|
|
67
69
|
"typebox": "1.3.8"
|
|
68
70
|
},
|
|
69
71
|
"devDependencies": {
|
|
@@ -79,7 +81,8 @@
|
|
|
79
81
|
"commands": "./dist/commands",
|
|
80
82
|
"topicSeparator": " ",
|
|
81
83
|
"plugins": [
|
|
82
|
-
"@oclif/plugin-help"
|
|
84
|
+
"@oclif/plugin-help",
|
|
85
|
+
"@oclif/plugin-plugins"
|
|
83
86
|
],
|
|
84
87
|
"typescript": {
|
|
85
88
|
"commands": "./src/commands"
|
|
@@ -110,6 +113,13 @@
|
|
|
110
113
|
"manifest"
|
|
111
114
|
],
|
|
112
115
|
"outputs": []
|
|
116
|
+
},
|
|
117
|
+
"acceptance:oclif-native-plugins": {
|
|
118
|
+
"cache": false,
|
|
119
|
+
"dependsOn": [
|
|
120
|
+
"manifest"
|
|
121
|
+
],
|
|
122
|
+
"outputs": []
|
|
113
123
|
}
|
|
114
124
|
}
|
|
115
125
|
},
|