@caffeineai/cli 0.1.0-dev.5 → 0.1.0-dev.51

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 +93 -15
  2. package/package.json +12 -14
package/README.md CHANGED
@@ -1,23 +1,32 @@
1
1
  # @caffeineai/cli
2
2
 
3
- Command-line interface for the Caffeine platform.
3
+ The public Caffeine command-line interface for authentication, project
4
+ management, local development workflows, and headless AI chat.
4
5
 
5
6
  ## Development Release
6
7
 
7
- This is a DEV release. It is published under the npm `dev` dist-tag and is subject to a rapid release cadence. Expect frequent updates while the CLI and MCP packages settle.
8
+ This is a DEV release. It is published under the npm `dev` dist-tag and is
9
+ subject to a rapid release cadence. Expect frequent updates while the CLI
10
+ package settles.
11
+
12
+ ## Features
13
+
14
+ - Device and browser-based login
15
+ - Project listing, inspection, creation, cloning, and deletion
16
+ - Team workspace list, status, and switch (`X-Workspace-Id`)
17
+ - Local install, build, check, preview, import, export, config, doctor, and update flows
18
+ - Interactive and detached chat sessions over the Caffeine AI API
19
+ - Browser chat hand-off when you want the web UI
8
20
 
9
21
  ## Installation
10
22
 
11
23
  ```bash
12
24
  npm install -g @caffeineai/cli@dev
25
+ caffeine --version
13
26
  ```
14
27
 
15
28
  Three equivalent command names are installed: `caffeine`, `caf`, and `cfn`.
16
29
 
17
- ```bash
18
- caffeine --version
19
- ```
20
-
21
30
  ## Quick Start
22
31
 
23
32
  ```bash
@@ -43,24 +52,86 @@ Native binaries ship for:
43
52
  | Auth | `auth login [--device]` | Sign in via OAuth loopback or device flow |
44
53
  | Auth | `auth logout` | Sign out |
45
54
  | Auth | `auth status` | Show current session |
55
+ | Workspaces | `workspaces list` | List personal account and team workspaces |
56
+ | Workspaces | `workspaces status` | Show the selected workspace |
57
+ | Workspaces | `workspaces use <id>` | Persist a team workspace, or `personal` |
46
58
  | Projects | `projects list` | List your projects |
47
59
  | Projects | `projects show <id>` | Show project details |
48
60
  | Projects | `projects create <name>` | Create a new project |
49
61
  | Projects | `projects clone <id> [--dest <path>] [--include-wip]` | Clone a project locally |
50
62
  | Projects | `projects delete <id>` | Delete a project |
51
- | Local | `import` | Import a project from a .zip |
52
- | Local | `export` | Export the current project to a .zip |
63
+ | Local | `import <file>` | Import a project from a `.zip` |
64
+ | Local | `export` | Export the current project to a `.zip` |
53
65
  | Build | `install` | Install build dependencies |
54
66
  | Build | `build` | Build the current project |
55
67
  | Build | `check` | Validate code and configuration |
56
68
  | Build | `preview` | Upload a built project as a draft |
57
- | Config | `config list` / `get <key>` / `set <key> <value>` | Manage CLI config |
69
+ | Chat | `chat` | Open or continue the primary interactive chat workflow |
70
+ | Chat | `chat interactive` | Explicit form of the interactive chat workflow |
71
+ | Chat | `chat send <message>` | Send a prompt and stay attached until stable |
72
+ | Chat | `chat send --detach <message>` | Submit and return immediately |
73
+ | Chat | `chat reply <message>` | Send a freeform clarification reply |
74
+ | Chat | `chat active` | Discover likely active chat sessions |
75
+ | Chat | `chat status` | Show a high-level summary for an active session |
76
+ | Chat | `chat watch` | Attach to a live session and stream updates |
77
+ | Chat | `chat resume` | Reattach and wait for the next stable state |
78
+ | Chat | `chat transcript` | Show the current transcript |
79
+ | Chat | `chat feed` | Collect raw project feed events |
80
+ | Chat | `chat list` | List chat messages |
81
+ | Chat | `chat tail` | Poll chat messages until the AI reaches a stable state |
82
+ | Chat | `chat submit-form` | Submit a structured clarification form reply |
83
+ | Chat | `chat open` | Open the browser chat for a project |
84
+ | Config | `config list` / `config get <key>` / `config set <key> <value>` | Manage CLI config |
58
85
  | Env | `doctor [--fix]` | Diagnose local build prerequisites |
59
86
  | Meta | `update` | Check for or install a newer CLI |
60
87
  | Meta | `version` | Show version info |
61
88
 
62
89
  Run `caffeine <command> --help` for the full flag list.
63
90
 
91
+ ## Chat Workflow
92
+
93
+ ```bash
94
+ caffeine chat
95
+ caffeine chat --project-id 11111111-1111-4111-8111-111111111111
96
+ caffeine chat interactive --project-id 11111111-1111-4111-8111-111111111111
97
+ caffeine chat send --detach "Build a weather dashboard"
98
+ caffeine chat active
99
+ caffeine chat status
100
+ caffeine chat watch --project-id 11111111-1111-4111-8111-111111111111
101
+ caffeine chat resume --project-id 11111111-1111-4111-8111-111111111111
102
+ caffeine chat transcript --project-id 11111111-1111-4111-8111-111111111111
103
+ caffeine chat feed --project-id 11111111-1111-4111-8111-111111111111 --timeout 5s
104
+ caffeine chat submit-form \
105
+ --project-id 11111111-1111-4111-8111-111111111111 \
106
+ --message-index 42 \
107
+ --form-data '{"appName":"Habit Hero"}'
108
+ caffeine chat open
109
+ ```
110
+
111
+ All commands support `--json` for machine-readable output.
112
+
113
+ `caffeine chat` is the primary human workflow. It resumes likely active chat
114
+ sessions for the target project, shows a recent transcript tail when nothing is
115
+ active, and lets you continue the conversation inline until you exit.
116
+
117
+ `chat interactive` is the explicit equivalent of bare `chat`.
118
+
119
+ Use the lower-level subcommands when you want a more scripted or detached flow:
120
+
121
+ - `chat send --detach` submits work and returns immediately
122
+ - `chat watch` and `chat resume` reattach to in-flight work
123
+ - `chat transcript`, `chat list`, `chat tail`, and `chat feed` expose the raw chat state
124
+ - `chat reply` and `chat submit-form` let you answer clarifications explicitly
125
+
126
+ Interactive chat does not support `--json`. Use the lower-level subcommands for
127
+ automation, CI, and machine-readable output.
128
+
129
+ Clarification handling:
130
+
131
+ - `ai_follow_up` means the AI wants more freeform input, so reply with `chat reply`
132
+ - `system_dialog` with `info.form` means you should call `chat submit-form`
133
+ - `ai_answer` means the exchange completed successfully
134
+
64
135
  ## JSON And Non-Interactive Mode
65
136
 
66
137
  Every command accepts `--json`. JSON output uses a stable envelope:
@@ -72,25 +143,32 @@ Every command accepts `--json`. JSON output uses a stable envelope:
72
143
 
73
144
  Use `--non-interactive` in scripts and CI.
74
145
 
146
+ `--workspace <id>` and `--personal` are process-only account overrides. They
147
+ do not rewrite `workspace.selectedId`. `caffeine workspaces use` persists the
148
+ selection for later CLI and local MCP processes.
149
+
75
150
  ## Authentication
76
151
 
77
- `caffeine auth login` opens your browser for an OAuth flow. For CI or remote SSH, add `--device` to use the device flow instead.
152
+ `caffeine auth login` opens your browser for an OAuth flow. For CI, remote
153
+ SSH, or other headless environments, add `--device` to use the device flow
154
+ instead.
78
155
 
79
- Tokens are stored in your OS credential store. The `@caffeineai/mcp` server reads the same credentials, so one login covers both packages.
156
+ Tokens are stored in your OS credential store.
80
157
 
81
158
  ## MCP Server
82
159
 
83
- Drive Caffeine from Claude Code, Cursor, VS Code, Codex, Windsurf, or another MCP host with the companion MCP server:
160
+ Drive Caffeine from Claude Code, Cursor, VS Code, Codex, Windsurf, or another
161
+ MCP host with the companion MCP server:
84
162
 
85
163
  ```bash
86
164
  npx -y @caffeineai/mcp@dev --version
87
165
  ```
88
166
 
89
- See the `@caffeineai/mcp` README for host configuration.
167
+ The CLI and MCP server share the same auth, workspace, project, build, and chat contract.
168
+ One login flow can cover both tools on the same machine.
90
169
 
91
170
  ## Links
92
171
 
93
- - Source, issues, and release notes: https://github.com/caffeinelabs/caffeine-cli
94
- - Caffeine platform: https://caffeine.ai
172
+ Caffeine platform: https://caffeine.ai
95
173
 
96
174
  This package installs the matching platform binary through npm optional dependencies. Install the main package rather than a platform package directly.
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@caffeineai/cli",
3
- "version": "0.1.0-dev.5",
3
+ "version": "0.1.0-dev.51",
4
4
  "description": "Caffeine CLI",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/caffeinelabs/caffeine-cli.git"
8
- },
5
+ "homepage": "https://caffeine.ai",
9
6
  "license": "SEE LICENSE IN LICENSE",
10
7
  "bin": {
11
8
  "caffeine": "bin/caffeine.js",
@@ -18,21 +15,22 @@
18
15
  "LICENSE"
19
16
  ],
20
17
  "optionalDependencies": {
21
- "@caffeineai/cli-darwin-arm64": "0.1.0-dev.5",
22
- "@caffeineai/cli-darwin-x64": "0.1.0-dev.5",
23
- "@caffeineai/cli-linux-arm64-glibc": "0.1.0-dev.5",
24
- "@caffeineai/cli-linux-x64-glibc": "0.1.0-dev.5",
25
- "@caffeineai/cli-linux-arm64-musl": "0.1.0-dev.5",
26
- "@caffeineai/cli-linux-x64-musl": "0.1.0-dev.5",
27
- "@caffeineai/cli-win32-arm64": "0.1.0-dev.5",
28
- "@caffeineai/cli-win32-x64": "0.1.0-dev.5"
18
+ "@caffeineai/cli-darwin-arm64": "0.1.0-dev.51",
19
+ "@caffeineai/cli-darwin-x64": "0.1.0-dev.51",
20
+ "@caffeineai/cli-linux-arm64-glibc": "0.1.0-dev.51",
21
+ "@caffeineai/cli-linux-x64-glibc": "0.1.0-dev.51",
22
+ "@caffeineai/cli-linux-arm64-musl": "0.1.0-dev.51",
23
+ "@caffeineai/cli-linux-x64-musl": "0.1.0-dev.51",
24
+ "@caffeineai/cli-win32-arm64": "0.1.0-dev.51",
25
+ "@caffeineai/cli-win32-x64": "0.1.0-dev.51"
29
26
  },
27
+ "preferGlobal": true,
30
28
  "publishConfig": {
31
29
  "access": "public"
32
30
  },
33
31
  "caffeine": {
34
32
  "distribution": "npmjs",
35
33
  "packageName": "@caffeineai/cli",
36
- "publishedAt": "2026-04-30T08:50:15.110Z"
34
+ "publishedAt": "2026-09-04T06:48:29.359Z"
37
35
  }
38
36
  }