@aladac/hu 0.1.0-a2 → 0.1.0-a3

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/CLAUDE.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
4
 
5
+ ## Important Guidelines
6
+
7
+ **Before implementing new features**: Always check if Claude Code already has a built-in feature for the requested functionality:
8
+ 1. Check CLI help: `claude --help`
9
+ 2. Check interactive commands: `/help` within a session
10
+ 3. Search the web for "Claude Code [feature name]" to find recent additions
11
+ 4. Check official docs at docs.anthropic.com
12
+
13
+ Don't duplicate existing capabilities.
14
+
5
15
  ## Overview
6
16
 
7
17
  This is the `~/.claude` configuration directory containing custom slash commands, CLI tools, and documentation management workflows for Claude Code.
@@ -11,6 +21,7 @@ This is the `~/.claude` configuration directory containing custom slash commands
11
21
  - `commands/` - Slash command definitions (`.md` files that become `/command-name`)
12
22
  - `docs/` - Documentation management commands (`/docs:*`)
13
23
  - `plans/` - Planning commands (`/plans:*`)
24
+ - `claude/` - Claude Code reference commands (`/claude:*`)
14
25
  - `src/` - TypeScript source for the `hu` CLI
15
26
  - `commands/` - CLI subcommand implementations
16
27
  - `lib/` - Shared utilities (fs, colors, html conversion, db, sync)
@@ -44,6 +55,7 @@ hu data todos pending # Show pending todos
44
55
  hu data search <query> # Search messages
45
56
  hu data tools # Show tool usage statistics
46
57
  hu data errors # Extract errors from debug logs
58
+ hu data pricing # Show pricing analysis
47
59
  ```
48
60
 
49
61
  ### hu docs
@@ -73,6 +85,13 @@ hu utils fetch-html <url> -c # With extra cleaning
73
85
  hu utils fetch-html <url> -s "article" # Target CSS selector
74
86
  hu utils fetch-html <url> -o out.md # Write to file
75
87
 
88
+ hu utils plist <file> # Read plist as colorized JSON
89
+ hu utils plist com.apple.finder # Read app preferences by bundle ID
90
+ hu utils plist -l # List available preference plists
91
+ hu utils plist -s <pattern> # Search for plists by name
92
+ hu utils plist <file> -k <key> # Extract specific key (dot notation)
93
+ hu utils plist <file> -r # Output raw JSON without colors
94
+
76
95
  hu utils sync-checkboxes # Clean TODO.md/PLAN.md
77
96
  hu utils sync-checkboxes file.md # Specific file
78
97
  hu utils sync-checkboxes -d # Dry run
@@ -81,7 +100,68 @@ hu utils sync-checkboxes -d # Dry run
81
100
  ### hu disk
82
101
  Disk space analysis (macOS):
83
102
  ```bash
84
- hu disk # Show disk usage summary
103
+ hu disk # Full disk inventory
104
+ hu disk overview # APFS volume usage
105
+ hu disk home # Home directory breakdown
106
+ hu disk library # ~/Library breakdown
107
+ hu disk hogs # Check common space hogs
108
+ hu disk models # List AI models
109
+ hu disk cleanup # Cleanup suggestions
110
+
111
+ hu disk known # Scan all known space hogs with cleanup commands
112
+ hu disk known dev-tools # Filter by category (ai-models, dev-tools, apps, caches, system, media)
113
+ hu disk known -m 1G # Only show items >= 1GB
114
+ hu disk known -j # JSON output
115
+ hu disk list-known # List all known hog definitions
116
+ hu disk list-known ai-models # List definitions for category
117
+ ```
118
+
119
+ ### hu services
120
+ Services and startup items management (macOS):
121
+ ```bash
122
+ hu services summary # Overview of all services
123
+ hu services brew list # List Homebrew services (-r for running only)
124
+ hu services brew start <name> # Start a brew service
125
+ hu services brew stop <name> # Stop a brew service
126
+ hu services brew restart <name> # Restart a brew service
127
+ hu services login # List login items and user launch agents
128
+ hu services launch list # List launch agents/daemons (-t agent/daemon, -s user/system)
129
+ hu services launch load <name> # Load (enable) a launch agent
130
+ hu services launch unload <name> # Unload (disable) a launch agent
131
+ ```
132
+
133
+ ### hu gh
134
+ GitHub integration:
135
+ ```bash
136
+ hu gh config # Show GitHub configuration
137
+ hu gh prs # List pull requests
138
+ hu gh prs -s "search term" # Search PRs
139
+ hu gh runs # List workflow runs
140
+ hu gh open <pr-number> # Open PR in browser
141
+ ```
142
+
143
+ ### hu jira
144
+ Jira integration:
145
+ ```bash
146
+ hu jira auth # Authenticate with Jira via OAuth 2.0
147
+ hu jira config # Show Jira configuration
148
+ hu jira sprint # Show current sprint info
149
+ hu jira tickets # List assigned tickets (current sprint)
150
+ hu jira search <query> # Search tickets
151
+ hu jira show <ticket> # Show ticket details
152
+ hu jira branch <ticket> # Create git branch from ticket
153
+ hu jira open <ticket> # Open ticket in browser
154
+ hu jira check # Find sprint tickets without descriptions
155
+ ```
156
+
157
+ ### hu settings
158
+ Claude Code settings management:
159
+ ```bash
160
+ hu settings show # Show settings from all scopes
161
+ hu settings edit # Edit settings file in $EDITOR
162
+ hu settings managed # View/edit managed settings (highest priority)
163
+ hu settings allow <pattern> # Add a permission rule
164
+ hu settings path # Show paths to settings files
85
165
  ```
86
166
 
87
167
  ### hu plugin
@@ -91,6 +171,26 @@ hu plugin init <name> # Initialize a new plugin
91
171
  hu plugin install # Install plugin hooks
92
172
  ```
93
173
 
174
+ ### hu bump
175
+ Version bumping with configurable patterns (auto-detects format from git tags):
176
+ ```bash
177
+ hu bump run # Bump prerelease (0.1.0-a1 -> 0.1.0-a2)
178
+ hu bump run patch # Bump patch (0.1.0-a2 -> 0.1.1-a1)
179
+ hu bump run minor # Bump minor (0.1.0-a2 -> 0.2.0-a1)
180
+ hu bump run major # Bump major (0.1.0-a2 -> 1.0.0-a1)
181
+ hu bump run -p pre # Use -preN pattern instead of -aN
182
+ hu bump run -p beta # Use -betaN pattern
183
+ hu bump run -p rc # Use -rcN pattern
184
+ hu bump run -p none # No prerelease suffix (0.1.0)
185
+ hu bump run -t "" # No tag prefix (default: "v")
186
+ hu bump run --no-tag # Skip git tagging
187
+ hu bump run --no-push # Skip git push
188
+ hu bump run -d # Dry run
189
+
190
+ hu bump detect # Show detected version format
191
+ hu bump detect -j # JSON output
192
+ ```
193
+
94
194
  ## Slash Commands
95
195
 
96
196
  ### Documentation Management (`/docs:*`)
@@ -109,14 +209,19 @@ hu plugin install # Install plugin hooks
109
209
  - `/plans:sync` - Sync TODO.md and PLAN.md progress
110
210
  - `/plans:clear` - Delete all saved plans
111
211
 
212
+ ### Claude Code Reference (`/claude:*`)
213
+ - `/claude:reference [topic]` - Load Claude Code CLI reference documentation
214
+
112
215
  ### Utilities
113
216
  - `/c` - Quick commit: adds all files, commits with timestamp message
217
+ - `/bump [type]` - Bump package version (prerelease/patch/minor/major)
218
+ - `/publish` - Publish package to npm registry
114
219
  - `/disk` - Disk space analysis commands for macOS
220
+ - `/pricing` - Show pricing analysis and competitor comparison
115
221
  - `/bootstrap` - Bootstrap hu if not installed
116
222
  - `/reinstall` - Reinstall hu from source
117
223
  - `/check-name <name>` - Check package name availability across registries
118
224
  - `/replicate` - Diagnose a reported issue and identify code areas to investigate
119
- - `/warp` - Custom command
120
225
 
121
226
  ## System Documents (Off-Limits)
122
227
 
@@ -0,0 +1,30 @@
1
+ Bump package version. Auto-detects format from git tags.
2
+
3
+ ## Arguments
4
+
5
+ $ARGUMENTS - bump type: `prerelease` (default), `patch`, `minor`, `major`
6
+
7
+ ## Usage
8
+
9
+ ```bash
10
+ hu bump run $ARGUMENTS
11
+ ```
12
+
13
+ ## Options
14
+
15
+ - `-p/--pattern` - prerelease pattern: `alpha` (a1), `pre` (pre1), `beta` (beta1), `rc` (rc1), `none`
16
+ - `-t/--tag-prefix` - git tag prefix (default: "v", use "" for none)
17
+ - `--no-tag` - skip git tagging
18
+ - `--no-push` - skip git push
19
+ - `--no-install` - skip npm install && npm link
20
+ - `-d/--dry-run` - preview changes without executing
21
+
22
+ ## Examples
23
+
24
+ - `/bump` - bump prerelease (0.1.0-a1 -> 0.1.0-a2)
25
+ - `/bump patch` - bump patch (0.1.0-a2 -> 0.1.1-a1)
26
+ - `/bump minor` - bump minor version
27
+ - `/bump major` - bump major version
28
+ - `/bump -d` - dry run to preview
29
+
30
+ Run the bump now.
@@ -0,0 +1,42 @@
1
+ Load Claude Code CLI reference documentation for implementation guidance.
2
+
3
+ ## Reference Documentation
4
+
5
+ The following documentation files in `doc/cli/` provide comprehensive reference for Claude Code implementation:
6
+
7
+ | File | Content |
8
+ |------|---------|
9
+ | `settings.md` | settings.json format, scopes, permissions syntax |
10
+ | `hooks.md` | Hooks reference (events, matchers, configuration) |
11
+ | `tutorial.md` | Hooks getting started guide |
12
+ | `plugins.md` | Plugin system reference |
13
+ | `iam.md` | Identity, authentication, access management |
14
+ | `capabilities.md` | Tool capabilities |
15
+ | `structure.md` | Directory structure conventions |
16
+ | `sdk.md` | SDK protocols |
17
+ | `overview.md` | General overview |
18
+
19
+ ## Usage
20
+
21
+ When the user invokes `/claude:reference`, read the relevant documentation files from `doc/cli/` based on what they're trying to implement:
22
+
23
+ - **Settings/permissions**: Read `doc/cli/settings.md`
24
+ - **Hooks**: Read `doc/cli/hooks.md` and `doc/cli/tutorial.md`
25
+ - **Plugins**: Read `doc/cli/plugins.md`
26
+ - **Authentication**: Read `doc/cli/iam.md`
27
+ - **General questions**: Read `doc/cli/overview.md`
28
+
29
+ If no specific topic is mentioned, provide a summary of available documentation and ask what aspect they need help with.
30
+
31
+ ## Example
32
+
33
+ ```
34
+ User: /claude:reference settings permissions
35
+ Action: Read doc/cli/settings.md, focus on permissions section
36
+
37
+ User: /claude:reference hooks
38
+ Action: Read doc/cli/hooks.md and doc/cli/tutorial.md
39
+
40
+ User: /claude:reference
41
+ Action: List available topics and ask for clarification
42
+ ```
@@ -0,0 +1,16 @@
1
+ Show pricing analysis and competitor comparison.
2
+
3
+ Run `hu data pricing` to show:
4
+ - Your subscription cost vs API equivalent cost
5
+ - Break-even analysis for Max tiers
6
+ - Competitor pricing comparison
7
+
8
+ Options:
9
+ - `-s, --subscription` - Your Claude subscription (free, pro, max5x, max20x)
10
+ - `-j, --json` - Output as JSON
11
+
12
+ ```bash
13
+ hu data pricing
14
+ hu data pricing -s pro
15
+ hu data pricing -j
16
+ ```
@@ -0,0 +1,20 @@
1
+ Publish package to npm registry.
2
+
3
+ ## Command
4
+
5
+ ```bash
6
+ npm publish --access public --tag alpha
7
+ ```
8
+
9
+ This publishes the package with:
10
+ - `--access public` - makes the scoped package publicly accessible
11
+ - `--tag alpha` - tags as alpha release (required for prerelease versions)
12
+
13
+ ## Before Publishing
14
+
15
+ Ensure you have:
16
+ 1. Bumped the version (`/bump` or `hu bump run`)
17
+ 2. Committed and pushed all changes
18
+ 3. Logged into npm (`npm login`)
19
+
20
+ Run the publish now.
package/doc/PRICING.md ADDED
@@ -0,0 +1,171 @@
1
+ ---
2
+ source: https://claude.com/pricing, https://github.com/features/copilot, https://cursor.com/pricing, https://windsurf.com/pricing, https://tabnine.com/pricing, https://aws.amazon.com/q/developer/pricing/
3
+ fetched: 2026-01-14
4
+ ---
5
+
6
+ # AI Coding Assistant Pricing Comparison
7
+
8
+ This document tracks pricing for AI coding assistants and Claude API costs.
9
+
10
+ ## Claude (Anthropic)
11
+
12
+ ### Subscriptions
13
+
14
+ | Plan | Price | Usage |
15
+ |------|-------|-------|
16
+ | Free | $0/month | Basic usage |
17
+ | Pro | $20/month ($17 annual) | More usage than Free, Claude Code access |
18
+ | Max 5x | $100/month | 5x Pro usage |
19
+ | Max 20x | $200/month | 20x Pro usage |
20
+ | Team Standard | $30/month ($25 annual) | Per seat, min 5 members |
21
+ | Team Premium | $150/month | Per seat, includes Claude Code |
22
+ | Enterprise | Custom | Contact sales |
23
+
24
+ ### API Pricing (per million tokens)
25
+
26
+ | Model | Input | Output | Cache Write | Cache Read |
27
+ |-------|-------|--------|-------------|------------|
28
+ | Opus 4.5 | $5.00 | $25.00 | $6.25 | $0.50 |
29
+ | Sonnet 4.5 | $3.00 | $15.00 | $3.75 | $0.30 |
30
+ | Haiku 4.5 | $1.00 | $5.00 | $1.25 | $0.10 |
31
+ | Opus 4 | $15.00 | $75.00 | - | - |
32
+ | Sonnet 4 | $3.00 | $15.00 | - | - |
33
+ | Sonnet 3.5 | $3.00 | $15.00 | - | - |
34
+ | Haiku 3 | $0.25 | $1.25 | - | - |
35
+
36
+ ---
37
+
38
+ ## GitHub Copilot
39
+
40
+ ### Individual Plans
41
+
42
+ | Plan | Price | Limits |
43
+ |------|-------|--------|
44
+ | Free | $0/month | 2,000 completions/month, 50 chat requests/month |
45
+ | Pro | $10/month ($100/year) | Unlimited completions, 300 premium requests/month |
46
+ | Pro+ | $39/month ($390/year) | 1,500 premium requests/month, Claude Opus 4.1 access |
47
+
48
+ ### Business Plans
49
+
50
+ | Plan | Price | Limits |
51
+ |------|-------|--------|
52
+ | Business | $19/user/month | Unlimited completions, 300 premium requests/month |
53
+ | Enterprise | $39/user/month | 1,000 premium requests/month, all models |
54
+
55
+ **Notes:**
56
+ - Premium requests are for latest models (Claude, GPT-5, etc.)
57
+ - Agent mode with GPT-5 mini is unlimited on paid plans
58
+ - Free tier includes Haiku 4.5, GPT-4.1
59
+
60
+ ---
61
+
62
+ ## Cursor
63
+
64
+ ### Individual Plans
65
+
66
+ | Plan | Price | Features |
67
+ |------|-------|----------|
68
+ | Hobby (Free) | $0/month | Limited Agent requests, limited Tab completions |
69
+ | Pro | $20/month | Extended Agent limits, unlimited Tab completions, Background Agents |
70
+ | Pro+ | $60/month | 3x usage on all models (OpenAI, Claude, Gemini) |
71
+ | Ultra | $200/month | 20x usage on all models, priority feature access |
72
+
73
+ ### Business Plans
74
+
75
+ | Plan | Price | Features |
76
+ |------|-------|----------|
77
+ | Teams | $40/user/month | Shared chats, usage analytics, SSO, RBAC |
78
+ | Enterprise | Custom | Pooled usage, SCIM, audit logs, priority support |
79
+
80
+ ### Bugbot Add-on
81
+
82
+ | Plan | Price | Limits |
83
+ |------|-------|--------|
84
+ | Free | $0/month | Limited code reviews/month |
85
+ | Pro | $40/user/month | Unlimited reviews on up to 200 PRs/month |
86
+ | Teams | $40/user/month | Unlimited reviews on all PRs |
87
+
88
+ ---
89
+
90
+ ## Windsurf (formerly Codeium)
91
+
92
+ | Plan | Price | Credits | Notes |
93
+ |------|-------|---------|-------|
94
+ | Free | $0/month | 25 prompt credits | Basic access |
95
+ | Pro | $15/month | 500 prompt credits | +$10 for 250 additional credits |
96
+ | Teams | $30/user/month | 500 credits/user | +$10/user for enhanced features |
97
+ | Enterprise | Custom | 1,000 credits/user | Volume discounts, hybrid deployment |
98
+
99
+ **Notes:**
100
+ - Credits consumed when using premium models in Cascade
101
+ - Cost varies by model selected
102
+ - Unlimited Tabs, Previews, and Deploys on all plans
103
+
104
+ ---
105
+
106
+ ## Tabnine
107
+
108
+ | Plan | Price | Features |
109
+ |------|-------|----------|
110
+ | Agentic Platform | $59/user/month (annual) | AI completions, chat, workflow agents |
111
+
112
+ **Notes:**
113
+ - Single plan with comprehensive features
114
+ - Unlimited usage when using your own LLM
115
+ - 5% handling fee on Tabnine-provided LLM access
116
+ - Zero code retention, end-to-end encryption
117
+ - Flexible deployment: SaaS, VPC, on-premises, air-gapped
118
+
119
+ ---
120
+
121
+ ## Amazon Q Developer
122
+
123
+ | Plan | Price | Limits |
124
+ |------|-------|--------|
125
+ | Free | $0/month | 50 agentic requests/month, 1,000 lines Java upgrade |
126
+ | Pro | $19/user/month | 4,000 lines/month (pooled), overage $0.003/line |
127
+
128
+ **Notes:**
129
+ - Subscriptions activate upon actual use, not sign-in
130
+ - Pro includes IP indemnity and automatic data opt-out
131
+ - Access to latest Claude models included
132
+
133
+ ---
134
+
135
+ ## Quick Comparison (Monthly Individual Plans)
136
+
137
+ | Service | Free | Basic Paid | Pro/Advanced |
138
+ |---------|------|------------|--------------|
139
+ | Claude Max | - | $100 (5x) | $200 (20x) |
140
+ | GitHub Copilot | $0 (limited) | $10 | $39 |
141
+ | Cursor | $0 (limited) | $20 | $60-200 |
142
+ | Windsurf | $0 (25 credits) | $15 | - |
143
+ | Tabnine | - | $59 | - |
144
+ | Amazon Q | $0 (50 requests) | $19 | - |
145
+
146
+ ---
147
+
148
+ ## Value Analysis
149
+
150
+ ### Claude Max at $200/month equivalent usage
151
+
152
+ Based on typical heavy usage (example: ~2.3M output tokens with Opus 4.5):
153
+ - **API equivalent cost:** ~$60 for this session data
154
+ - **Max subscription:** $200/month flat
155
+ - **Break-even point:** ~7.7M output tokens/month with Opus 4.5
156
+
157
+ ### Cost per 1M tokens (output) comparison
158
+
159
+ | Service | Approx. Cost |
160
+ |---------|--------------|
161
+ | Claude API (Opus 4.5) | $25.00 |
162
+ | Claude API (Sonnet 4.5) | $15.00 |
163
+ | Claude API (Haiku 4.5) | $5.00 |
164
+ | GitHub Copilot Pro | ~$10/month flat |
165
+ | Cursor Pro | ~$20/month flat |
166
+
167
+ *Note: Subscription services don't expose per-token costs, making direct comparison difficult.*
168
+
169
+ ---
170
+
171
+ *Last updated: 2026-01-14*