@chucky.cloud/cli 0.2.4 → 0.2.7

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 +212 -0
  2. package/package.json +21 -4
package/README.md ADDED
@@ -0,0 +1,212 @@
1
+ # Chucky CLI
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@chucky.cloud/cli.svg)](https://www.npmjs.com/package/@chucky.cloud/cli)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+ [![Node.js](https://img.shields.io/badge/node-%3E%3D18-brightgreen.svg)](https://nodejs.org/)
6
+
7
+ Command-line interface for deploying AI agent workspaces to the [Chucky](https://chucky.cloud) cloud platform. Build and ship Claude-powered assistants with ease.
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ npm install -g @chucky.cloud/cli
13
+ ```
14
+
15
+ ## Quick Start
16
+
17
+ ```bash
18
+ # Authenticate with your Chucky account
19
+ chucky login
20
+
21
+ # Initialize a new project
22
+ chucky init
23
+
24
+ # Deploy your workspace
25
+ chucky deploy
26
+ ```
27
+
28
+ ## Commands
29
+
30
+ ### `chucky login`
31
+
32
+ Authenticate with your Chucky account using browser-based device flow or API key.
33
+
34
+ ```bash
35
+ # Interactive browser-based login (recommended)
36
+ chucky login
37
+
38
+ # Direct API key authentication
39
+ chucky login -k ak_live_xxxxx
40
+ ```
41
+
42
+ **Options:**
43
+ - `-k, --key <key>` - Skip browser flow and authenticate with API key directly
44
+
45
+ ### `chucky list` / `chucky ls`
46
+
47
+ List all projects in your account.
48
+
49
+ ```bash
50
+ chucky list
51
+ ```
52
+
53
+ Displays project name, ID, status, and HMAC key for each project.
54
+
55
+ ### `chucky init`
56
+
57
+ Initialize a new Chucky project in the current directory.
58
+
59
+ ```bash
60
+ chucky init
61
+ ```
62
+
63
+ **What it does:**
64
+ 1. Creates or selects an existing project
65
+ 2. Prompts for project name and description
66
+ 3. Optionally configures Anthropic API key
67
+ 4. Saves `.chucky.json` configuration file
68
+ 5. Optionally sets up GitHub Actions workflow
69
+
70
+ ### `chucky deploy`
71
+
72
+ Deploy your workspace to the Chucky cloud.
73
+
74
+ ```bash
75
+ # Deploy using config from .chucky.json
76
+ chucky deploy
77
+
78
+ # Deploy a specific folder
79
+ chucky deploy -f ./my-workspace
80
+ ```
81
+
82
+ **Options:**
83
+ - `-f, --folder <path>` - Override the folder to deploy
84
+
85
+ **Deployment flow:**
86
+ 1. Creates tar.gz archive of workspace folder
87
+ 2. Uploads to Chucky cloud storage (R2)
88
+ 3. Marks workspace as deployed
89
+ 4. Displays example code for generating tokens
90
+
91
+ ### `chucky keys`
92
+
93
+ Display the HMAC key for the current project.
94
+
95
+ ```bash
96
+ chucky keys
97
+ ```
98
+
99
+ ### `chucky config anthropic`
100
+
101
+ Set the Anthropic API key for a project.
102
+
103
+ ```bash
104
+ # Interactive prompt
105
+ chucky config anthropic
106
+
107
+ # Direct key input
108
+ chucky config anthropic -k sk-ant-xxxxx
109
+ ```
110
+
111
+ **Options:**
112
+ - `-k, --key <key>` - Anthropic API key to set
113
+
114
+ ### `chucky delete`
115
+
116
+ Delete a project.
117
+
118
+ ```bash
119
+ # Delete from selection list
120
+ chucky delete
121
+
122
+ # Delete specific project
123
+ chucky delete PROJECT_ID
124
+ ```
125
+
126
+ ## Configuration
127
+
128
+ ### Global Config (`~/.chucky/config.json`)
129
+
130
+ Stores user credentials:
131
+ ```json
132
+ {
133
+ "apiKey": "ak_live_...",
134
+ "email": "user@example.com",
135
+ "portalUrl": "https://app.chucky.cloud"
136
+ }
137
+ ```
138
+
139
+ ### Project Config (`.chucky.json`)
140
+
141
+ Stores project-specific settings:
142
+ ```json
143
+ {
144
+ "projectId": "uuid-...",
145
+ "projectName": "my-project",
146
+ "folder": "./workspace",
147
+ "hmacKey": "hk_live_..."
148
+ }
149
+ ```
150
+
151
+ ## Environment Variables
152
+
153
+ - `CHUCKY_API_KEY` - Override API key from config
154
+ - `CHUCKY_PORTAL_URL` - Override portal URL (for development)
155
+
156
+ ## Authentication Flow
157
+
158
+ ### Browser-Based (Device Code Flow)
159
+
160
+ 1. CLI generates a device code and opens browser
161
+ 2. User signs in to Chucky portal
162
+ 3. User confirms the device code
163
+ 4. CLI receives API key and stores locally
164
+
165
+ ### API Key
166
+
167
+ 1. User obtains API key from Chucky portal
168
+ 2. User runs `chucky login -k ak_live_...`
169
+ 3. CLI validates key and stores locally
170
+
171
+ ## Workspace Deployment
172
+
173
+ ### Default Ignore Patterns
174
+
175
+ The following are excluded from deployment archives:
176
+ - `node_modules/`
177
+ - `.git/`
178
+ - `.env` files
179
+ - `dist/`, `build/`
180
+ - Cache and log directories
181
+
182
+ ### Archive Format
183
+
184
+ Workspaces are compressed as `.tgz` (tar.gz) with maximum compression.
185
+
186
+ ## Dependencies
187
+
188
+ - **commander** - CLI framework
189
+ - **inquirer** - Interactive prompts
190
+ - **chalk** - Terminal styling
191
+ - **ora** - Progress spinners
192
+ - **archiver** - Archive creation
193
+
194
+ ## Development
195
+
196
+ ```bash
197
+ # Install dependencies
198
+ npm install
199
+
200
+ # Build TypeScript
201
+ npm run build
202
+
203
+ # Watch mode
204
+ npm run dev
205
+
206
+ # Type checking only
207
+ npm run typecheck
208
+ ```
209
+
210
+ ## License
211
+
212
+ MIT
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chucky.cloud/cli",
3
- "version": "0.2.4",
4
- "description": "CLI for deploying workspaces to Chucky cloud",
3
+ "version": "0.2.7",
4
+ "description": "CLI for deploying AI agent workspaces to Chucky cloud - build and ship Claude-powered assistants",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "chucky": "dist/index.js"
@@ -15,12 +15,29 @@
15
15
  "keywords": [
16
16
  "chucky",
17
17
  "claude",
18
+ "anthropic",
19
+ "ai",
18
20
  "agent",
19
21
  "deploy",
20
- "cli"
22
+ "cli",
23
+ "assistant",
24
+ "llm",
25
+ "mcp",
26
+ "workspace",
27
+ "cloud",
28
+ "ai-assistant",
29
+ "deployment"
21
30
  ],
22
- "author": "",
31
+ "author": "Chucky Cloud",
23
32
  "license": "MIT",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/Chucky-Cloud/chucky-cli.git"
36
+ },
37
+ "homepage": "https://chucky.cloud",
38
+ "bugs": {
39
+ "url": "https://github.com/Chucky-Cloud/chucky-cli/issues"
40
+ },
24
41
  "dependencies": {
25
42
  "@chucky.cloud/sdk": "^0.2.5",
26
43
  "@inquirer/prompts": "^7.0.0",