@habitat-ai/cli 0.5.9 → 0.5.11

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 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:
@@ -48,12 +60,18 @@ Habitat migrations. The final command applies those package-owned repository
48
60
  changes; no consumer copies or independently maintains the preset wiring.
49
61
 
50
62
  Habitat `0.5.3` used Nx `23.1.0`, whose provenance reader predates npm 12. When
51
- that exact historical pair is upgraded under npm 12, scope Nx's documented
52
- compatibility flag to the migration-generation command only:
63
+ that exact historical pair is upgraded under npm 12, pin the migration CLI and
64
+ scope Nx's documented compatibility flag to both migration commands. The first
65
+ command generates the migration; the install materializes the released pair;
66
+ the final command applies the repository changes:
53
67
 
54
68
  ```sh
55
69
  NX_MIGRATE_CLI_VERSION=23.1.1 NX_SKIP_PROVENANCE_CHECK=true \
56
- bunx nx migrate @habitat-ai/cli@0.5.9
70
+ bunx nx migrate @habitat-ai/cli@0.5.11
71
+ bun install
72
+ NX_MIGRATE_CLI_VERSION=23.1.1 NX_SKIP_PROVENANCE_CHECK=true \
73
+ bunx nx migrate --run-migrations=migrations.json --no-interactive
57
74
  ```
58
75
 
59
- Nx `23.1.1` and later verify provenance normally.
76
+ Only the historical Nx `23.1.0` upgrade needs that compatibility scope. Nx
77
+ `23.1.1` and later verify provenance normally.
@@ -99,5 +99,5 @@
99
99
  ]
100
100
  }
101
101
  },
102
- "version": "0.5.9"
102
+ "version": "0.5.11"
103
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@habitat-ai/cli",
3
- "version": "0.5.9",
3
+ "version": "0.5.11",
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.9",
64
+ "@habitat-ai/sdk": "0.5.11",
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
  },