claude-ws 0.1.22 → 0.1.23

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
@@ -104,6 +104,62 @@ Open [http://localhost:8556](http://localhost:8556)
104
104
 
105
105
  ---
106
106
 
107
+ ## Configuration
108
+
109
+ ### API Authentication (Optional)
110
+
111
+ For secure deployments, you can enable API authentication by setting an `API_ACCESS_KEY`:
112
+
113
+ 1. Create a `.env` file in your project directory (or use the global one in `~/.claude-ws/.env`)
114
+ 2. Add your API access key:
115
+
116
+ ```bash
117
+ # .env
118
+ API_ACCESS_KEY=your-secret-key-here
119
+ ```
120
+
121
+ 3. All API requests must include the key in the `x-api-key` header:
122
+
123
+ ```bash
124
+ curl -H "x-api-key: your-secret-key-here" http://localhost:8556/api/conversations
125
+ ```
126
+
127
+ **Note:** Leave `API_ACCESS_KEY` empty to disable authentication (default for local development).
128
+
129
+ ### Claude Code CLI Path
130
+
131
+ Claude Workspace requires the Claude Code CLI to be installed. Set the `CLAUDE_PATH` environment variable to point to your Claude executable:
132
+
133
+ **Linux/Ubuntu:**
134
+ ```bash
135
+ CLAUDE_PATH=/home/$(whoami)/.local/bin/claude
136
+ ```
137
+
138
+ **macOS (Homebrew):**
139
+ ```bash
140
+ CLAUDE_PATH=/opt/homebrew/bin/claude
141
+ ```
142
+
143
+ **Windows:**
144
+ ```bash
145
+ CLAUDE_PATH=%USERPROFILE%\.local\bin\claude.exe
146
+ ```
147
+
148
+ Add this to your `.env` file in the project directory, or the global `.env` at `~/.claude-ws/.env`.
149
+
150
+ ### Environment Variables
151
+
152
+ | Variable | Description | Default |
153
+ |----------|-------------|---------|
154
+ | `CLAUDE_PATH` | Path to Claude Code CLI executable | Auto-detected |
155
+ | `PORT` | Server port | `3000` |
156
+ | `NODE_ENV` | Environment mode | `development` |
157
+ | `API_ACCESS_KEY` | API authentication key | (empty, no auth) |
158
+ | `DATABASE_URL` | SQLite database path | `./data.db` |
159
+ | `AGENT_FACTORY_DIR` | Agent Factory plugins directory | `~/.claude/agentfactory` |
160
+
161
+ ---
162
+
107
163
  ## Work Everywhere with Cloudflare Tunnel
108
164
 
109
165
  Access Claude Workspace securely from anywhere using Cloudflare Tunnel + Access.
package/drizzle.config.ts CHANGED
@@ -1,11 +1,17 @@
1
1
  import type { Config } from 'drizzle-kit';
2
2
  import path from 'path';
3
3
  import os from 'os';
4
+ import fs from 'fs';
4
5
 
5
6
  // Database location in user's home directory for persistence
6
7
  const DB_DIR = path.join(os.homedir(), '.claude-ws');
7
8
  const DB_PATH = path.join(DB_DIR, 'claude-ws.db');
8
9
 
10
+ // Ensure directory exists before drizzle-kit tries to connect
11
+ if (!fs.existsSync(DB_DIR)) {
12
+ fs.mkdirSync(DB_DIR, { recursive: true });
13
+ }
14
+
9
15
  export default {
10
16
  schema: './src/lib/db/schema.ts',
11
17
  out: './drizzle',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-ws",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "private": false,
5
5
  "description": "A beautifully crafted workspace interface for Claude Code with real-time streaming and local SQLite database",
6
6
  "keywords": [