@braingrid/cli 0.0.2 → 0.0.4

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/CHANGELOG.md ADDED
@@ -0,0 +1,44 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.0.4] - 2025-10-02
9
+
10
+ ### Added
11
+ - Comprehensive test coverage improvement from 26.15% to 64.9%
12
+ - 529 passing tests covering utils, services, and handlers
13
+ - Handler layer tests achieving 96.28% coverage (all core handlers 92-100%)
14
+ - Complete CLI refactor with resource-oriented command structure
15
+ - New OAuth2 authentication flow
16
+ - Git repository detection in status command
17
+ - CLI tools detection (Claude Code, Cursor, git)
18
+
19
+ ### Changed
20
+ - Renamed package from `@braingridai/cli` to `@braingrid/cli`
21
+ - Updated repository URL to main braingrid repo
22
+ - Refactored from React-based CLI to Commander.js pattern
23
+ - Improved error handling and user feedback
24
+ - Enhanced status command with authentication, git, and tool information
25
+
26
+ ### Fixed
27
+ - Task handler number type (string for proper padding)
28
+ - Repository URL format in package.json
29
+ - Test coverage for all critical paths
30
+
31
+ ## [0.0.3] - 2024-01-XX
32
+
33
+ ### Changed
34
+ - Initial npm publication as `@braingrid/cli`
35
+
36
+ ## [0.0.2] - 2024-01-XX
37
+
38
+ ### Changed
39
+ - Initial version as `@braingridai/cli`
40
+
41
+ ## [0.0.1] - 2024-01-XX
42
+
43
+ ### Added
44
+ - Initial CLI implementation
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "environment": "production",
3
3
  "buildEnv": "production",
4
- "buildTime": "2025-10-02T22:48:19.468Z",
4
+ "buildTime": "2025-10-02T23:30:33.406Z",
5
5
  "config": {
6
6
  "NODE_ENV": "production",
7
7
  "BRAINGRID_API_URL": "https://app.braingrid.ai"
package/dist/cli.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,42 +1,12 @@
1
1
  {
2
2
  "name": "@braingrid/cli",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "BrainGrid - Turn thoughts into AI-ready specs. Command-line interface for spec-driven development.",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",
7
7
  "bin": {
8
8
  "braingrid": "dist/cli.js"
9
9
  },
10
- "scripts": {
11
- "build": "tsc -p .",
12
- "build:dev": "node scripts/build.js development",
13
- "build:local": "node scripts/build.js local",
14
- "build:prod": "node scripts/build.js production",
15
- "dev": "tsx src/cli.ts",
16
- "dev:local": "NODE_ENV=local tsx src/cli.ts",
17
- "start": "node dist/cli.js",
18
- "start:local": "NODE_ENV=local node dist/cli.js",
19
- "start:dev": "NODE_ENV=development node dist/cli.js",
20
- "lint": "eslint 'src/**/*.{ts,tsx}'",
21
- "lint:fix": "eslint 'src/**/*.{ts,tsx}' --fix",
22
- "format": "prettier --write 'src/**/*.{ts,tsx}'",
23
- "type-check": "tsc --noEmit",
24
- "test": "vitest",
25
- "test:watch": "vitest --watch",
26
- "test:coverage": "vitest --coverage",
27
- "test:coverage:ci": "vitest run --coverage",
28
- "test:all": "vitest run",
29
- "test:cli": "bash scripts/test-cli.sh",
30
- "test:cli:verbose": "bash scripts/test-cli.sh --verbose",
31
- "validate:fix": "pnpm lint:fix && pnpm format && pnpm type-check",
32
- "docs:fetch-openapi": "gh api repos/BrainGridAI/braingrid-app/contents/src/app/api/v1/openapi.yaml | jq -r '.content' | base64 -D > docs/openapi.yaml",
33
- "prepare": "husky",
34
- "prepublishOnly": "pnpm build:prod",
35
- "preversion": "pnpm validate:fix && pnpm test:all",
36
- "release:patch": "npm version patch && git push && git push --tags",
37
- "release:minor": "npm version minor && git push && git push --tags",
38
- "release:major": "npm version major && git push && git push --tags"
39
- },
40
10
  "keywords": [
41
11
  "cli",
42
12
  "braingrid",
@@ -55,10 +25,7 @@
55
25
  "homepage": "https://www.braingrid.ai",
56
26
  "repository": {
57
27
  "type": "git",
58
- "url": "git+https://github.com/BrainGridAI/braingrid-cli.git"
59
- },
60
- "bugs": {
61
- "url": "https://github.com/BrainGridAI/braingrid-cli/issues"
28
+ "url": "git+https://github.com/BrainGridAI/braingrid.git"
62
29
  },
63
30
  "files": [
64
31
  "dist",
@@ -97,5 +64,33 @@
97
64
  "eslint --fix",
98
65
  "prettier --write"
99
66
  ]
67
+ },
68
+ "scripts": {
69
+ "build": "tsc -p .",
70
+ "build:dev": "node scripts/build.js development",
71
+ "build:local": "node scripts/build.js local",
72
+ "build:prod": "node scripts/build.js production",
73
+ "dev": "tsx src/cli.ts",
74
+ "dev:local": "NODE_ENV=local tsx src/cli.ts",
75
+ "start": "node dist/cli.js",
76
+ "start:local": "NODE_ENV=local node dist/cli.js",
77
+ "start:dev": "NODE_ENV=development node dist/cli.js",
78
+ "lint": "eslint 'src/**/*.{ts,tsx}'",
79
+ "lint:fix": "eslint 'src/**/*.{ts,tsx}' --fix",
80
+ "format": "prettier --write 'src/**/*.{ts,tsx}'",
81
+ "type-check": "tsc --noEmit",
82
+ "test": "vitest",
83
+ "test:watch": "vitest --watch",
84
+ "test:coverage": "vitest --coverage",
85
+ "test:coverage:ci": "vitest run --coverage",
86
+ "test:all": "vitest run",
87
+ "test:cli": "bash scripts/test-cli.sh",
88
+ "test:cli:verbose": "bash scripts/test-cli.sh --verbose",
89
+ "validate:fix": "pnpm lint:fix && pnpm format && pnpm type-check",
90
+ "docs:fetch-openapi": "gh api repos/BrainGridAI/braingrid-app/contents/src/app/api/v1/openapi.yaml | jq -r '.content' | base64 -D > docs/openapi.yaml",
91
+ "preversion": "pnpm validate:fix && pnpm test:all",
92
+ "release:patch": "npm version patch && git push && git push --tags",
93
+ "release:minor": "npm version minor && git push && git push --tags",
94
+ "release:major": "npm version major && git push && git push --tags"
100
95
  }
101
- }
96
+ }