@habitat-ai/cli 0.2.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.
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json-schema.org/schema",
3
+ "generators": {
4
+ "init": {
5
+ "factory": "./dist/generators/init.cjs",
6
+ "schema": "./generators.schema.json",
7
+ "description": "Initialize the installed Habitat package in one Nx consumer."
8
+ },
9
+ "remove-hook": {
10
+ "factory": "./dist/generators/remove-hook.cjs",
11
+ "schema": "./generators.schema.json",
12
+ "description": "Remove Habitat's named Codex hook contribution."
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {},
5
+ "additionalProperties": false
6
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "commands": {},
3
+ "version": "0.2.0"
4
+ }
package/package.json ADDED
@@ -0,0 +1,111 @@
1
+ {
2
+ "name": "@habitat-ai/cli",
3
+ "version": "0.2.0",
4
+ "private": false,
5
+ "description": "Habitat structural authority CLI and Nx projection",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "packageManager": "bun@1.3.14",
9
+ "engines": {
10
+ "bun": ">=1.3.14",
11
+ "node": "^20.19.0 || >=22.9.0"
12
+ },
13
+ "files": [
14
+ "bin",
15
+ "dist",
16
+ "generators.json",
17
+ "generators.schema.json",
18
+ "src/nx-plugin.d.ts",
19
+ "oclif.manifest.json",
20
+ "package.json"
21
+ ],
22
+ "bin": {
23
+ "habitat": "./bin/run.js"
24
+ },
25
+ "generators": "./generators.json",
26
+ "exports": {
27
+ "./nx-plugin": {
28
+ "types": "./src/nx-plugin.d.ts",
29
+ "import": "./dist/nx-plugin.js",
30
+ "default": "./dist/nx-plugin.js"
31
+ },
32
+ "./package.json": "./package.json"
33
+ },
34
+ "scripts": {
35
+ "habitat": "bun src/index.ts",
36
+ "build": "tsc -p src/tsconfig.build.json && bun build src/nx-plugin.ts --outdir dist --target node --format esm && bun build src/generators/init.ts --outfile dist/generators/init.cjs --target node --format cjs --packages=external && bun build src/generators/remove-hook.ts --outfile dist/generators/remove-hook.cjs --target node --format cjs --packages=external",
37
+ "manifest": "NODE_ENV=production bun --bun oclif manifest",
38
+ "acceptance:oclif-installed-package": "vitest run --project habitat-cli-installed-package-acceptance",
39
+ "typecheck": "tsc -p tsconfig.json --noEmit",
40
+ "check:test": "tsc -p test/tsconfig.json --noEmit",
41
+ "test": "vitest run --project habitat-cli"
42
+ },
43
+ "dependencies": {
44
+ "@effect/platform-node": "4.0.0-beta.101",
45
+ "@getgrit/cli": "0.1.0-alpha.1743007075",
46
+ "@habitat-ai/plugin-cli": "0.2.0",
47
+ "@habitat-ai/resource-rule-evaluation": "0.2.0",
48
+ "@habitat-ai/resource-source-inventory": "0.2.0",
49
+ "@habitat-ai/service": "0.2.0",
50
+ "@nx/devkit": "23.1.0",
51
+ "@oclif/core": "^4.11.4",
52
+ "@oclif/plugin-help": "^6.2.27",
53
+ "effect": "4.0.0-beta.101",
54
+ "typebox": "1.3.8"
55
+ },
56
+ "devDependencies": {
57
+ "@types/node": "^22.14.0",
58
+ "bun-types": "1.3.14",
59
+ "oclif": "4.23.27",
60
+ "typescript": "^5.9.3",
61
+ "vitest": "^4.0.18"
62
+ },
63
+ "peerDependencies": {
64
+ "@habitat-ai/blueprints": "0.2.0"
65
+ },
66
+ "oclif": {
67
+ "bin": "habitat",
68
+ "dirname": "habitat",
69
+ "topicSeparator": " ",
70
+ "plugins": [
71
+ "@oclif/plugin-help",
72
+ "@habitat-ai/plugin-cli"
73
+ ]
74
+ },
75
+ "nx": {
76
+ "tags": [
77
+ "type:app",
78
+ "app:habitat",
79
+ "role:cli"
80
+ ],
81
+ "targets": {
82
+ "manifest": {
83
+ "dependsOn": [
84
+ "build",
85
+ {
86
+ "projects": [
87
+ "@habitat-ai/plugin-cli"
88
+ ],
89
+ "target": "manifest"
90
+ }
91
+ ]
92
+ },
93
+ "test": {
94
+ "dependsOn": [
95
+ "build",
96
+ "manifest"
97
+ ]
98
+ },
99
+ "acceptance:oclif-installed-package": {
100
+ "cache": false,
101
+ "dependsOn": [
102
+ "manifest"
103
+ ],
104
+ "outputs": []
105
+ }
106
+ }
107
+ },
108
+ "publishConfig": {
109
+ "access": "public"
110
+ }
111
+ }
@@ -0,0 +1,4 @@
1
+ import type { CreateNodes } from "@nx/devkit";
2
+
3
+ /** Native Nx project inference backed by the app-owned Habitat composition. */
4
+ export declare const createNodes: CreateNodes<undefined>;