@orchestree/cli 2.2.0 → 3.5.0
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/CHANGELOG.md +101 -0
- package/README.md +32 -503
- package/bin/crow.js +28 -0
- package/bin/orchestree.js +5 -8
- package/dist/gateways.d.ts +2 -0
- package/dist/gateways.js +57 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +163 -80
- package/dist/maintenance.d.ts +10 -0
- package/dist/maintenance.js +217 -0
- package/package.json +38 -40
- package/dist/commands/agents.d.ts +0 -1
- package/dist/commands/agents.js +0 -89
- package/dist/commands/chat.d.ts +0 -1
- package/dist/commands/chat.js +0 -33
- package/dist/commands/deploy.d.ts +0 -1
- package/dist/commands/deploy.js +0 -27
- package/dist/commands/login.d.ts +0 -1
- package/dist/commands/login.js +0 -32
- package/dist/commands/registry.d.ts +0 -1
- package/dist/commands/registry.js +0 -134
- package/dist/commands/run.d.ts +0 -2
- package/dist/commands/run.js +0 -67
- package/dist/commands/status.d.ts +0 -1
- package/dist/commands/status.js +0 -41
- package/dist/config.d.ts +0 -8
- package/dist/config.js +0 -38
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# @orchestree/cli
|
|
2
|
+
|
|
3
|
+
## 3.5.0
|
|
4
|
+
|
|
5
|
+
Full-screen lobby. Ships with `@orchestree/crowcode-cli` 0.5.0.
|
|
6
|
+
|
|
7
|
+
- **Grok Build-style takeover.** `crow` now opens on the alternate screen:
|
|
8
|
+
the viewport clears, the CrowCode welcome card sits centered in the
|
|
9
|
+
middle of the terminal, and the input box is pinned to the bottom edge
|
|
10
|
+
with the slash palette opening above it. The first message returns to
|
|
11
|
+
the normal buffer so long turns keep real scrollback; `/new` and
|
|
12
|
+
`/clear` bring the lobby back; quitting always restores your shell.
|
|
13
|
+
- **PTY fix.** Terminals that report `rows`/`columns` as `0` no longer
|
|
14
|
+
break layout math.
|
|
15
|
+
|
|
16
|
+
## 3.4.0
|
|
17
|
+
|
|
18
|
+
Command-surface Wave 1 — session management, scripting output, and
|
|
19
|
+
self-maintenance. Ships with `@orchestree/crowcode-cli` 0.4.0.
|
|
20
|
+
|
|
21
|
+
- **Sessions.** `crow sessions` lists saved conversations (id, age, message
|
|
22
|
+
count, first prompt, directory), `crow sessions search <q>` greps their
|
|
23
|
+
content, `crow sessions delete <id>` removes one, and
|
|
24
|
+
`crow export <id> [file.md]` renders a transcript as Markdown with
|
|
25
|
+
readable tool-call blocks. Inside the REPL: `/sessions`, `/resume <id>`,
|
|
26
|
+
and `/usage` (approximate context tokens; `/context` is an alias).
|
|
27
|
+
- **Continue & resume.** `crow -c`/`--continue` picks up the most recent
|
|
28
|
+
session for the current directory; `crow -r <id>` resumes any session by
|
|
29
|
+
id from anywhere (a missing id is an error, not a silent new session).
|
|
30
|
+
- **Headless scripting.** `crow -p "prompt" --output-format json` emits one
|
|
31
|
+
JSON object (result + full event log); `--output-format streaming-json`
|
|
32
|
+
emits NDJSON events (`round_start`, `text`, `tool_use`, `tool_result`)
|
|
33
|
+
as the turn progresses, ending with a `result` line. No spinner or chrome
|
|
34
|
+
on stdout — approvals are denied unless `--yolo`, reported on stderr.
|
|
35
|
+
- **`crow models`** lists the tiers and marks the configured one.
|
|
36
|
+
- **`crow update [--check]`** compares the installed version against the
|
|
37
|
+
release CDN and re-runs the official installer to upgrade.
|
|
38
|
+
- **`crow doctor`** diagnoses the install: Node version, install origin,
|
|
39
|
+
PATH shadowing (finds stale `npm link` copies that hijack `crow`),
|
|
40
|
+
release-CDN reachability + version currency, and API reachability.
|
|
41
|
+
- **`crow completions <zsh|bash>`** prints shell tab-completions.
|
|
42
|
+
- Prompts and agent flags now forward through `crow` directly:
|
|
43
|
+
`crow "fix the failing test"` one-shots the agent without the `crowcode`
|
|
44
|
+
subcommand.
|
|
45
|
+
|
|
46
|
+
## 3.3.0
|
|
47
|
+
|
|
48
|
+
- **Rendered answers.** CrowCode no longer prints raw markdown: pipe tables
|
|
49
|
+
are drawn as bordered box tables in Crow orange (aligned columns, bold
|
|
50
|
+
header row), headings lose their hashes and render as bold orange section
|
|
51
|
+
titles (h1 gets an ember underline), `**bold**`/`*italic*`/`` `code` ``
|
|
52
|
+
are styled instead of leaking their markers, lists get orange bullets and
|
|
53
|
+
numbered markers, task lists get ◉/◯ checkboxes, blockquotes and
|
|
54
|
+
horizontal rules are drawn. Fenced code keeps its diff tint. Everything
|
|
55
|
+
still degrades to structured plain text when piped or `NO_COLOR` is set.
|
|
56
|
+
Ships in `@orchestree/crowcode-cli` 0.3.0.
|
|
57
|
+
- Cleaner agent chrome: approval requests render as a warning-barred block,
|
|
58
|
+
assistant answers get breathing room, and every turn ends with a dim
|
|
59
|
+
`Turn completed in 12.4s.` footer.
|
|
60
|
+
|
|
61
|
+
## 3.2.1
|
|
62
|
+
|
|
63
|
+
- Bundle rebuild only, no code changes. The `crow-3.2.0.tgz` artifact on the
|
|
64
|
+
CDN was built before the Crow terminal design merged; published artifacts
|
|
65
|
+
are immutable, so the TUI ships as 3.2.1 (`media.orchestree.ai/cli/latest`
|
|
66
|
+
now points here).
|
|
67
|
+
|
|
68
|
+
## 3.2.0
|
|
69
|
+
|
|
70
|
+
- **The Crow terminal design.** CrowCode now draws a full Grok-parity terminal
|
|
71
|
+
UI in Crow orange on the dark terminal background: a welcome card with the
|
|
72
|
+
crow glyph, a rounded bordered input box with a block cursor and the model
|
|
73
|
+
label set into the border, a slash-command palette (`/` opens it; type to
|
|
74
|
+
filter, tab to complete, enter to run), ↑/↓ history with draft restore,
|
|
75
|
+
emacs-style line editing, and orange spinners with elapsed time on tool runs.
|
|
76
|
+
Ships in `@orchestree/crowcode-cli` 0.2.0 on the shared theme engine in
|
|
77
|
+
`@orchestree/cli-core` 0.2.0.
|
|
78
|
+
- `crow --help` is themed with the same palette. All color degrades cleanly:
|
|
79
|
+
truecolor → 256 → basic → plain text when piped, `NO_COLOR` is set, or the
|
|
80
|
+
terminal is dumb.
|
|
81
|
+
- Installer fix: the `orchestree.ai/crow` install script no longer shares the
|
|
82
|
+
edge cache across user-agent variants, and works under busybox `wget`.
|
|
83
|
+
|
|
84
|
+
## 3.1.0
|
|
85
|
+
|
|
86
|
+
- **New primary command: `crow`.** The CLI you type is now `crow` (`crow login`,
|
|
87
|
+
`crow whoami`, `crow gateways`, `crow crowcode`). Pattern: git/GitHub —
|
|
88
|
+
short where fingers live, full name (CrowCode) where brands live.
|
|
89
|
+
- `orchestree` remains a working alias for one major version. It runs the exact
|
|
90
|
+
same CLI and prints a one-line tip to stderr:
|
|
91
|
+
`Tip: `orchestree` is now `crow` — same CLI, shorter name.`
|
|
92
|
+
- Help, version output, and every error hint now use `crow` as the primary form
|
|
93
|
+
(including messages from `@orchestree/cli-core`).
|
|
94
|
+
- Added `crow` / `crowcode` npm keywords.
|
|
95
|
+
|
|
96
|
+
## 3.0.0
|
|
97
|
+
|
|
98
|
+
- `@orchestree/cli` npm name moved to this package (`apps/orchestree-cli`),
|
|
99
|
+
superseding the legacy `packages/cli` implementation.
|
|
100
|
+
- `orchestree login | logout | whoami` (keychain-backed), `orchestree gateways`
|
|
101
|
+
with the Vertex ADC setup wizard, and the `crowcode` launcher.
|
package/README.md
CHANGED
|
@@ -1,528 +1,57 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CrowCode CLI (`crow`)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Orchestree platform in your terminal: sign in, inspect your identity,
|
|
4
|
+
manage model gateways, and launch the suite's agents.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## Features
|
|
8
|
-
|
|
9
|
-
- **Authentication** - Seamless login/logout with session management
|
|
10
|
-
- **Workspace Management** - Create and manage multiple workspaces
|
|
11
|
-
- **Module Management** - Enable, disable, and monitor 23+ Orchestree modules
|
|
12
|
-
- **Workflow Automation** - Create and execute Conductor workflows
|
|
13
|
-
- **Social Publishing** - Post to multiple platforms with analytics
|
|
14
|
-
- **Code Generation** - AI-powered code generation with Codenza
|
|
15
|
-
- **Brand Studio** - Create branded assets with Forge
|
|
16
|
-
- **Development Tools** - Scaffolding, testing, auditing, and deployment
|
|
17
|
-
- **Zero Dependencies** - Pure JavaScript, no heavy npm packages
|
|
18
|
-
- **Colorful Output** - Beautiful ANSI terminal colors and formatting
|
|
19
|
-
- **Fully Typed** - Complete TypeScript declarations included
|
|
6
|
+
The product is **CrowCode**. The command you type is **`crow`** — the same
|
|
7
|
+
pattern as git/GitHub: short where fingers live, full name where brands live.
|
|
20
8
|
|
|
21
9
|
## Installation
|
|
22
10
|
|
|
23
|
-
### Via NPM
|
|
24
|
-
|
|
25
11
|
```bash
|
|
26
12
|
npm install -g @orchestree/cli
|
|
27
13
|
```
|
|
28
14
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
yarn global add @orchestree/cli
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### From Source
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
git clone https://github.com/orchestree/orchestree.git
|
|
39
|
-
cd packages/cli
|
|
40
|
-
npm install -g .
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
## Quick Start
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
# Login to your Orchestree account
|
|
47
|
-
orchestree auth login
|
|
48
|
-
|
|
49
|
-
# Check your authentication status
|
|
50
|
-
orchestree auth status
|
|
51
|
-
|
|
52
|
-
# List available modules
|
|
53
|
-
orchestree modules list
|
|
54
|
-
|
|
55
|
-
# View your workspaces
|
|
56
|
-
orchestree workspace list
|
|
57
|
-
|
|
58
|
-
# Create a new workspace
|
|
59
|
-
orchestree workspace create my-workspace
|
|
60
|
-
|
|
61
|
-
# Start the development server
|
|
62
|
-
orchestree dev serve
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
## Commands
|
|
66
|
-
|
|
67
|
-
### Authentication
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
orchestree auth login # Log in to your Orchestree account
|
|
71
|
-
orchestree auth logout # Log out from Orchestree
|
|
72
|
-
orchestree auth status # Check authentication status
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Workspace Management
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
orchestree workspace list # List all workspaces
|
|
79
|
-
orchestree workspace create <name> # Create a new workspace
|
|
80
|
-
orchestree workspace switch <name> # Switch to a workspace
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
### Module Management
|
|
84
|
-
|
|
85
|
-
Manage and monitor the 23 available Orchestree modules:
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
orchestree modules list # List all available modules
|
|
89
|
-
orchestree modules enable <name> # Enable a specific module
|
|
90
|
-
orchestree modules status # Show status of all modules
|
|
91
|
-
orchestree modules health # Check health of all modules
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
**Available Modules:**
|
|
95
|
-
- `social` - Social media publishing and management
|
|
96
|
-
- `conductor` - Workflow orchestration and automation
|
|
97
|
-
- `codenza` - AI-powered code generation and review
|
|
98
|
-
- `forge` - Brand studio for visual asset creation
|
|
99
|
-
- `enhance` - Module enhancement and optimization
|
|
100
|
-
- `analytics` - Advanced analytics and reporting
|
|
101
|
-
- `webhook` - Webhook management and integration
|
|
102
|
-
- `ai-assist` - AI assistance and guidance
|
|
103
|
-
- `integrations` - Third-party integrations
|
|
104
|
-
- `api` - API management and monitoring
|
|
105
|
-
- `templates` - Template library and customization
|
|
106
|
-
- `components` - Reusable component library
|
|
107
|
-
- `workflows` - Workflow management
|
|
108
|
-
- `scheduler` - Task scheduling
|
|
109
|
-
- `monitoring` - System monitoring and alerts
|
|
110
|
-
- `security` - Security features and compliance
|
|
111
|
-
- `performance` - Performance optimization
|
|
112
|
-
- `notifications` - Notification system
|
|
113
|
-
- `storage` - Data storage management
|
|
114
|
-
- `billing` - Billing and usage tracking
|
|
115
|
-
- `admin` - Administrative features
|
|
116
|
-
- `export` - Data export capabilities
|
|
117
|
-
- `import` - Data import capabilities
|
|
118
|
-
|
|
119
|
-
### Conductor Workflows
|
|
120
|
-
|
|
121
|
-
Manage automation workflows and processes:
|
|
122
|
-
|
|
123
|
-
```bash
|
|
124
|
-
orchestree conductor workflows # List all automation workflows
|
|
125
|
-
orchestree conductor run <workflow> # Run a specific workflow
|
|
126
|
-
orchestree conductor logs # View workflow execution logs
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
**Examples:**
|
|
130
|
-
```bash
|
|
131
|
-
orchestree conductor run daily-sync
|
|
132
|
-
orchestree conductor run lead-nurture
|
|
133
|
-
orchestree conductor logs
|
|
134
|
-
```
|
|
15
|
+
This installs the `crow` command. `orchestree` is also installed as a working
|
|
16
|
+
alias (kept for one major version) — it runs the exact same CLI and prints a
|
|
17
|
+
one-line tip to stderr.
|
|
135
18
|
|
|
136
|
-
|
|
19
|
+
Requires Node.js >= 20.
|
|
137
20
|
|
|
138
|
-
|
|
21
|
+
## Usage
|
|
139
22
|
|
|
140
23
|
```bash
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
24
|
+
crow login [--stdin] [--api <base>] # sign in with an Orchestree API key
|
|
25
|
+
crow logout # sign out — clears every credential backend
|
|
26
|
+
crow whoami # show org · key name · scope
|
|
27
|
+
crow gateways # list model gateways and their status
|
|
28
|
+
crow gateways setup <id> # configure a gateway (e.g. vertex)
|
|
29
|
+
crow crowcode [args...] # launch the CrowCode coding agent
|
|
30
|
+
crow --version | --help
|
|
144
31
|
```
|
|
145
32
|
|
|
146
|
-
|
|
147
|
-
```bash
|
|
148
|
-
orchestree social post "Check out our latest update!"
|
|
149
|
-
orchestree social schedule --date 2025-12-25 --time 09:00 --content "Holiday special!"
|
|
150
|
-
orchestree social analytics
|
|
151
|
-
```
|
|
33
|
+
## Authentication notes
|
|
152
34
|
|
|
153
|
-
|
|
35
|
+
- Keys are stored in the OS keychain (0600 file fallback with a warning).
|
|
36
|
+
- `ORCHESTREE_API_KEY` overrides stored credentials — CI only; any agent
|
|
37
|
+
subprocess this CLI spawns can read the environment.
|
|
38
|
+
- The key is never accepted as a command-line argument. Use the hidden
|
|
39
|
+
prompt (`crow login`) or pipe it: `crow login --stdin < keyfile`.
|
|
154
40
|
|
|
155
|
-
|
|
41
|
+
## Why is the command called `crow`?
|
|
156
42
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
orchestree
|
|
160
|
-
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
**Examples:**
|
|
164
|
-
```bash
|
|
165
|
-
orchestree codenza generate --type component --name MyButton
|
|
166
|
-
orchestree codenza review src/main.js
|
|
167
|
-
orchestree codenza docs --input ./src
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
### Brand Studio (Forge)
|
|
171
|
-
|
|
172
|
-
Create branded assets and manage your brand kit:
|
|
173
|
-
|
|
174
|
-
```bash
|
|
175
|
-
orchestree forge create # Create branded assets
|
|
176
|
-
orchestree forge brand-kit # Manage brand kit
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
**Examples:**
|
|
180
|
-
```bash
|
|
181
|
-
orchestree forge create --type social-post --topic "Product Launch"
|
|
182
|
-
orchestree forge create --type banner --size 1200x630
|
|
183
|
-
orchestree forge brand-kit
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
### Module Enhancement
|
|
187
|
-
|
|
188
|
-
Enhance any Orchestree module with optimization and security hardening:
|
|
189
|
-
|
|
190
|
-
```bash
|
|
191
|
-
orchestree enhance <module>
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
**Examples:**
|
|
195
|
-
```bash
|
|
196
|
-
orchestree enhance social
|
|
197
|
-
orchestree enhance conductor
|
|
198
|
-
orchestree enhance codenza
|
|
199
|
-
orchestree enhance forge
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
All 23 modules can be enhanced:
|
|
203
|
-
```bash
|
|
204
|
-
orchestree enhance social
|
|
205
|
-
orchestree enhance conductor
|
|
206
|
-
orchestree enhance codenza
|
|
207
|
-
orchestree enhance forge
|
|
208
|
-
orchestree enhance analytics
|
|
209
|
-
orchestree enhance webhook
|
|
210
|
-
orchestree enhance ai-assist
|
|
211
|
-
orchestree enhance audit
|
|
212
|
-
orchestree enhance integrations
|
|
213
|
-
orchestree enhance api
|
|
214
|
-
orchestree enhance templates
|
|
215
|
-
orchestree enhance components
|
|
216
|
-
orchestree enhance workflows
|
|
217
|
-
orchestree enhance scheduler
|
|
218
|
-
orchestree enhance monitoring
|
|
219
|
-
orchestree enhance security
|
|
220
|
-
orchestree enhance performance
|
|
221
|
-
orchestree enhance notifications
|
|
222
|
-
orchestree enhance storage
|
|
223
|
-
orchestree enhance billing
|
|
224
|
-
orchestree enhance admin
|
|
225
|
-
orchestree enhance export
|
|
226
|
-
orchestree enhance import
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
### Code Scaffolding
|
|
230
|
-
|
|
231
|
-
Generate boilerplate code for new features:
|
|
232
|
-
|
|
233
|
-
```bash
|
|
234
|
-
orchestree scaffold api-endpoint <name> # Scaffold API endpoint
|
|
235
|
-
orchestree scaffold new-module <name> # Scaffold new module
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
**Examples:**
|
|
239
|
-
```bash
|
|
240
|
-
orchestree scaffold api-endpoint users-api
|
|
241
|
-
orchestree scaffold new-module reporting
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
### System Audit
|
|
245
|
-
|
|
246
|
-
Audit system health, code quality, and security:
|
|
247
|
-
|
|
248
|
-
```bash
|
|
249
|
-
orchestree audit # Full system audit
|
|
250
|
-
orchestree audit --type ui # UI quality audit
|
|
251
|
-
orchestree audit --type code # Code quality audit
|
|
252
|
-
orchestree audit --type security # Security audit
|
|
253
|
-
orchestree audit --module social # Audit specific module
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
**Examples:**
|
|
257
|
-
```bash
|
|
258
|
-
orchestree audit
|
|
259
|
-
orchestree audit --type code --module conductor
|
|
260
|
-
orchestree audit --type security
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
### Testing
|
|
264
|
-
|
|
265
|
-
Run the test suite:
|
|
266
|
-
|
|
267
|
-
```bash
|
|
268
|
-
orchestree test # Run all tests
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
### Development Commands
|
|
272
|
-
|
|
273
|
-
Manage local development and deployment:
|
|
274
|
-
|
|
275
|
-
```bash
|
|
276
|
-
orchestree dev serve # Start development server
|
|
277
|
-
orchestree dev deploy # Deploy to staging
|
|
278
|
-
orchestree dev logs # View server logs
|
|
279
|
-
```
|
|
280
|
-
|
|
281
|
-
**Examples:**
|
|
282
|
-
```bash
|
|
283
|
-
orchestree dev serve
|
|
284
|
-
# Server runs on http://localhost:3000
|
|
285
|
-
|
|
286
|
-
orchestree dev deploy
|
|
287
|
-
# Deploys to staging: https://staging.orchestree.ai/dashboard
|
|
288
|
-
|
|
289
|
-
orchestree dev logs
|
|
290
|
-
# Shows server logs and events
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
## Global Options
|
|
294
|
-
|
|
295
|
-
Use these flags with any command:
|
|
296
|
-
|
|
297
|
-
```bash
|
|
298
|
-
-h, --help Display help menu
|
|
299
|
-
-v, --version Show version number
|
|
300
|
-
--verbose Enable verbose logging
|
|
301
|
-
--json Output as JSON
|
|
302
|
-
```
|
|
303
|
-
|
|
304
|
-
**Examples:**
|
|
305
|
-
```bash
|
|
306
|
-
orchestree auth login --verbose
|
|
307
|
-
orchestree modules list --json
|
|
308
|
-
orchestree --help
|
|
309
|
-
orchestree --version
|
|
310
|
-
```
|
|
311
|
-
|
|
312
|
-
## Configuration
|
|
313
|
-
|
|
314
|
-
The CLI stores configuration in your home directory:
|
|
315
|
-
|
|
316
|
-
**macOS/Linux:** `~/.orchestree`
|
|
317
|
-
**Windows:** `%USERPROFILE%\.orchestree`
|
|
318
|
-
|
|
319
|
-
Configuration is stored as JSON:
|
|
320
|
-
|
|
321
|
-
```json
|
|
322
|
-
{
|
|
323
|
-
"authenticated": true,
|
|
324
|
-
"workspace": "default",
|
|
325
|
-
"userId": "user_abc123xyz",
|
|
326
|
-
"debug": false
|
|
327
|
-
}
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
## Examples
|
|
331
|
-
|
|
332
|
-
### Complete Workflow
|
|
333
|
-
|
|
334
|
-
```bash
|
|
335
|
-
# 1. Login
|
|
336
|
-
orchestree auth login
|
|
337
|
-
|
|
338
|
-
# 2. Create a new workspace
|
|
339
|
-
orchestree workspace create my-project
|
|
340
|
-
|
|
341
|
-
# 3. Switch to the workspace
|
|
342
|
-
orchestree workspace switch my-project
|
|
343
|
-
|
|
344
|
-
# 4. Enable modules
|
|
345
|
-
orchestree modules enable social
|
|
346
|
-
orchestree modules enable conductor
|
|
347
|
-
|
|
348
|
-
# 5. Check module health
|
|
349
|
-
orchestree modules health
|
|
350
|
-
|
|
351
|
-
# 6. Create an API endpoint scaffold
|
|
352
|
-
orchestree scaffold api-endpoint users
|
|
353
|
-
|
|
354
|
-
# 7. Start development server
|
|
355
|
-
orchestree dev serve
|
|
356
|
-
|
|
357
|
-
# 8. Create a workflow
|
|
358
|
-
orchestree conductor workflows
|
|
359
|
-
|
|
360
|
-
# 9. Deploy to staging
|
|
361
|
-
orchestree dev deploy
|
|
362
|
-
```
|
|
363
|
-
|
|
364
|
-
### Social Media Campaign
|
|
365
|
-
|
|
366
|
-
```bash
|
|
367
|
-
# Generate content with AI
|
|
368
|
-
orchestree codenza generate --type "social-post" --topic "Product Launch"
|
|
369
|
-
|
|
370
|
-
# Create branded assets
|
|
371
|
-
orchestree forge create --type "social-post"
|
|
372
|
-
|
|
373
|
-
# Schedule posts
|
|
374
|
-
orchestree social schedule --date 2025-12-25 --time 09:00 --content "Merry Christmas!"
|
|
375
|
-
|
|
376
|
-
# Monitor analytics
|
|
377
|
-
orchestree social analytics
|
|
378
|
-
```
|
|
379
|
-
|
|
380
|
-
### Code Development
|
|
381
|
-
|
|
382
|
-
```bash
|
|
383
|
-
# Scaffold new feature
|
|
384
|
-
orchestree scaffold api-endpoint orders
|
|
385
|
-
|
|
386
|
-
# Generate code with AI
|
|
387
|
-
orchestree codenza generate --type component
|
|
388
|
-
|
|
389
|
-
# Review code
|
|
390
|
-
orchestree codenza review src/components/Button.js
|
|
391
|
-
|
|
392
|
-
# Run tests
|
|
393
|
-
orchestree test
|
|
394
|
-
|
|
395
|
-
# Start dev server
|
|
396
|
-
orchestree dev serve
|
|
397
|
-
|
|
398
|
-
# Deploy when ready
|
|
399
|
-
orchestree dev deploy
|
|
400
|
-
```
|
|
401
|
-
|
|
402
|
-
## Troubleshooting
|
|
403
|
-
|
|
404
|
-
### "Command not found"
|
|
405
|
-
|
|
406
|
-
Make sure the CLI is installed globally:
|
|
407
|
-
|
|
408
|
-
```bash
|
|
409
|
-
npm install -g @orchestree/cli
|
|
410
|
-
```
|
|
411
|
-
|
|
412
|
-
Check the installation:
|
|
413
|
-
|
|
414
|
-
```bash
|
|
415
|
-
orchestree --version
|
|
416
|
-
```
|
|
417
|
-
|
|
418
|
-
### "Not authenticated"
|
|
419
|
-
|
|
420
|
-
Log in first:
|
|
421
|
-
|
|
422
|
-
```bash
|
|
423
|
-
orchestree auth login
|
|
424
|
-
```
|
|
425
|
-
|
|
426
|
-
Check status:
|
|
427
|
-
|
|
428
|
-
```bash
|
|
429
|
-
orchestree auth status
|
|
430
|
-
```
|
|
431
|
-
|
|
432
|
-
### "Module not found"
|
|
433
|
-
|
|
434
|
-
List available modules:
|
|
435
|
-
|
|
436
|
-
```bash
|
|
437
|
-
orchestree modules list
|
|
438
|
-
```
|
|
439
|
-
|
|
440
|
-
Enable the module:
|
|
441
|
-
|
|
442
|
-
```bash
|
|
443
|
-
orchestree modules enable module-name
|
|
444
|
-
```
|
|
445
|
-
|
|
446
|
-
### Enable Debug Mode
|
|
447
|
-
|
|
448
|
-
For detailed error messages:
|
|
449
|
-
|
|
450
|
-
```bash
|
|
451
|
-
orchestree command --verbose
|
|
452
|
-
```
|
|
43
|
+
CrowCode is the product name; `crow` is what you type. Long commands don't
|
|
44
|
+
survive contact with a terminal — `git` isn't `github`, `kubectl` users
|
|
45
|
+
alias it to `k`. `orchestree` keeps working as an alias for one major
|
|
46
|
+
version so existing scripts never break.
|
|
453
47
|
|
|
454
48
|
## Development
|
|
455
49
|
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
```bash
|
|
459
|
-
git clone https://github.com/orchestree/orchestree.git
|
|
460
|
-
cd packages/cli
|
|
461
|
-
npm install
|
|
462
|
-
npm link
|
|
463
|
-
```
|
|
464
|
-
|
|
465
|
-
### Running in Development
|
|
50
|
+
From the monorepo root:
|
|
466
51
|
|
|
467
52
|
```bash
|
|
468
|
-
|
|
53
|
+
pnpm --filter @orchestree/cli... build # build this package and its deps
|
|
54
|
+
pnpm --filter @orchestree/cli test:run # run tests
|
|
469
55
|
```
|
|
470
56
|
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
```bash
|
|
474
|
-
npm test
|
|
475
|
-
```
|
|
476
|
-
|
|
477
|
-
## API Usage
|
|
478
|
-
|
|
479
|
-
Use the CLI programmatically in your Node.js code:
|
|
480
|
-
|
|
481
|
-
```javascript
|
|
482
|
-
const OrchestreeCLI = require('@orchestree/cli');
|
|
483
|
-
|
|
484
|
-
const cli = new OrchestreeCLI();
|
|
485
|
-
|
|
486
|
-
// Access configuration
|
|
487
|
-
console.log(cli.config);
|
|
488
|
-
|
|
489
|
-
// Log messages
|
|
490
|
-
cli.success('Operation completed');
|
|
491
|
-
cli.error('Something went wrong');
|
|
492
|
-
|
|
493
|
-
// Run commands
|
|
494
|
-
await cli.run(['auth', 'login']);
|
|
495
|
-
```
|
|
496
|
-
|
|
497
|
-
## TypeScript Support
|
|
498
|
-
|
|
499
|
-
Full TypeScript definitions are included:
|
|
500
|
-
|
|
501
|
-
```typescript
|
|
502
|
-
import OrchestreeCLI, { CommandContext } from '@orchestree/cli';
|
|
503
|
-
|
|
504
|
-
const cli = new OrchestreeCLI();
|
|
505
|
-
|
|
506
|
-
// Types are fully supported
|
|
507
|
-
const parsed = cli.parseArgs(['auth', 'login']);
|
|
508
|
-
console.log(parsed.command); // 'auth'
|
|
509
|
-
```
|
|
510
|
-
|
|
511
|
-
## License
|
|
512
|
-
|
|
513
|
-
MIT - See LICENSE file for details
|
|
514
|
-
|
|
515
|
-
## Support
|
|
516
|
-
|
|
517
|
-
- 📚 [Documentation](https://orchestree.ai/docs)
|
|
518
|
-
- 🐛 [Report Issues](https://github.com/orchestree/orchestree/issues)
|
|
519
|
-
- 💬 [Community Chat](https://discord.gg/orchestree)
|
|
520
|
-
- 📧 [Email Support](mailto:support@orchestree.ai)
|
|
521
|
-
|
|
522
|
-
## Contributing
|
|
523
|
-
|
|
524
|
-
Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
525
|
-
|
|
526
|
-
---
|
|
527
|
-
|
|
528
|
-
Made with ❤️ by the Orchestree Team
|
|
57
|
+
See `CHANGELOG.md` for release history.
|
package/bin/crow.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// crow — the CrowCode CLI entry. Compiled dist when built, tsx-loaded source in dev.
|
|
3
|
+
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import { dirname, join } from 'node:path';
|
|
6
|
+
import { existsSync } from 'node:fs';
|
|
7
|
+
|
|
8
|
+
const here = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
const distEntry = join(here, '..', 'dist', 'index.js');
|
|
10
|
+
const srcEntry = join(here, '..', 'src', 'index.ts');
|
|
11
|
+
|
|
12
|
+
if (existsSync(distEntry)) {
|
|
13
|
+
await import(distEntry);
|
|
14
|
+
} else if (existsSync(srcEntry)) {
|
|
15
|
+
try {
|
|
16
|
+
const { register } = await import('node:module');
|
|
17
|
+
register('tsx/esm', new URL('.', import.meta.url));
|
|
18
|
+
} catch {
|
|
19
|
+
// tsx missing — the import below will throw an honest error.
|
|
20
|
+
}
|
|
21
|
+
await import(srcEntry);
|
|
22
|
+
} else {
|
|
23
|
+
process.stderr.write(
|
|
24
|
+
'crow: neither dist/index.js nor src/index.ts found.\n' +
|
|
25
|
+
'Run `pnpm --filter @orchestree/cli build` first.\n',
|
|
26
|
+
);
|
|
27
|
+
process.exit(1);
|
|
28
|
+
}
|
package/bin/orchestree.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
// Back-compat alias: `orchestree` is now `crow`. This wrapper stays for one
|
|
3
|
+
// major version so existing scripts never break — it tips once, then runs
|
|
4
|
+
// the exact same CLI.
|
|
2
5
|
|
|
3
|
-
|
|
4
|
-
* Orchestree CLI Executable
|
|
5
|
-
* This is the entry point when running `orchestree` command globally
|
|
6
|
-
*/
|
|
6
|
+
process.stderr.write('Tip: `orchestree` is now `crow` — same CLI, shorter name.\n');
|
|
7
7
|
|
|
8
|
-
import('
|
|
9
|
-
console.error('\x1b[31m✖ Fatal Error:\x1b[0m', err.message);
|
|
10
|
-
process.exit(1);
|
|
11
|
-
});
|
|
8
|
+
await import('./crow.js');
|