hatz-provider 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +25 -40
  2. package/package.json +2 -6
package/README.md CHANGED
@@ -1,16 +1,15 @@
1
- # @hatz-ai/provider
1
+ # hatz-provider
2
2
 
3
- **One command, five agents.** Install Hatz AI as a provider for any coding agent.
3
+ Install Hatz AI as a provider for any coding agent — one command.
4
4
 
5
5
  ```bash
6
- export HATZ_API_KEY="your-key"
7
- npx @hatz-ai/provider install
6
+ npx hatz-provider install
8
7
  ```
9
8
 
10
9
  ## Supported Agents
11
10
 
12
- | Agent | Config | API surface |
13
- |-------|--------|-------------|
11
+ | Agent | Config location | API surface |
12
+ |-------|----------------|-------------|
14
13
  | [omp](https://omp.sh) | `~/.omp/agent/models.yml` | anthropic-messages |
15
14
  | [pi](https://pi.dev) | `~/.pi/extensions/hatz/` | anthropic-messages |
16
15
  | [Claude Code](https://claude.ai) | `~/.claude/.env` | anthropic-messages |
@@ -20,59 +19,45 @@ npx @hatz-ai/provider install
20
19
  ## Quick Start
21
20
 
22
21
  ```bash
23
- # One-time: set your Hatz API key
22
+ # Set your Hatz API key (get one at https://ai.hatz.ai → Workspace → API Keys)
24
23
  export HATZ_API_KEY="hzat-..."
25
24
 
26
25
  # Install for all detected agents
27
- npx @hatz-ai/provider install
26
+ npx hatz-provider install
28
27
 
29
- # Or target one
30
- npx @hatz-ai/provider install omp
31
- npx @hatz-ai/provider install claude-code
28
+ # Or pick one
29
+ npx hatz-provider install omp
30
+ npx hatz-provider install claude-code
32
31
  ```
33
32
 
34
33
  ## Commands
35
34
 
36
35
  ```
37
- hatz-provider install [agent] Install for one or all agents
36
+ hatz-provider install [agent] Install provider (fetches live catalog)
38
37
  hatz-provider update [agent] Refresh models from live catalog
39
- hatz-provider uninstall [agent] Remove from one or all agents
38
+ hatz-provider uninstall [agent] Remove provider
40
39
  hatz-provider status Show install status across agents
41
- hatz-provider list List all 80+ available Hatz models
42
- hatz-provider catalog Print omp models.yml block
40
+ hatz-provider list List all 80+ available models
43
41
  ```
44
42
 
45
- ## Model Updates
46
-
47
- Re-run `install` or `update` anytime to refresh from Hatz's live catalog. Only the Hatz block in each agent's config is touched — other providers are safe.
48
-
49
- ## API Key
50
-
51
- Generate from **Workspace > API Keys** in your [Hatz dashboard](https://ai.hatz.ai).
52
-
53
- ```bash
54
- export HATZ_API_KEY="hzat-..."
55
- # or add to ~/.bashrc / ~/.zshrc
56
- ```
43
+ Agents: `omp`, `pi`, `hermes`, `claude-code`, `openclaw`, `all` (default).
57
44
 
58
45
  ## How It Works
59
46
 
60
- Each agent gets the appropriate config format and API surface:
47
+ Fetches Hatz's live model catalog (80+ models across Anthropic, OpenAI, Google, xAI, DeepSeek, Meta, Mistral, and more) and writes the appropriate config for each agent:
48
+
49
+ - **omp, pi, Claude Code** use the Anthropic Messages gateway at `https://ai.hatz.ai/v1/anthropic` — proper SSE streaming with full event payloads.
50
+ - **Hermes, OpenClaw** use the standard OpenAI-compatible endpoint at `https://ai.hatz.ai/v1`.
61
51
 
62
- - **omp, pi, Claude Code** → Anthropic Messages gateway (`https://ai.hatz.ai/v1/anthropic`) — proper SSE streaming, full event payloads
63
- - **Hermes, OpenClaw** → OpenAI Chat Completions (`https://ai.hatz.ai/v1`) — standard OpenAI-compatible endpoint
52
+ ## Requirements
64
53
 
65
- The installer fetches Hatz's live model catalog (80+ models across Anthropic, OpenAI, Google, xAI, DeepSeek, Meta, Mistral, and more) and writes the appropriate config for each agent.
54
+ - [Bun](https://bun.sh) runtime (the CLI is TypeScript)
55
+ - A [Hatz AI](https://ai.hatz.ai) API key
66
56
 
67
- ## Publishing
57
+ ## Model Updates
68
58
 
69
- This package is published to npm from a private source repository:
59
+ Re-run `install` or `update` anytime. Only the Hatz block in each agent's config is touched — other providers are safe.
70
60
 
71
- ```bash
72
- # From the private repo
73
- cd providers/hatz
74
- npm version patch # bump version
75
- npm publish --access public
76
- ```
61
+ ## License
77
62
 
78
- The published tarball contains only the files listed in `package.json#files`. No secrets, tokens, or private-repo internals are included.
63
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hatz-provider",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Hatz AI provider installer for coding agents — omp, pi, hermes, claude-code, openclaw",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,10 +26,6 @@
26
26
  "openclaw",
27
27
  "gateway"
28
28
  ],
29
- "repository": {
30
- "type": "git",
31
- "url": "git+https://github.com/GodSpoon/ai-tooling.git",
32
- "directory": "providers/hatz"
33
- },
29
+ "homepage": "https://ai.hatz.ai",
34
30
  "license": "MIT"
35
31
  }