File tree Expand file tree Collapse file tree 5 files changed +11
-9
lines changed
Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ my-app/
100100
101101### CLI (` cli/ ` )
102102- ` index.ts ` - Commander.js CLI entry point
103- - ` run.ts ` - Interactive ` crayon run ` (create or launch project)
103+ - ` run.ts ` - Interactive ` crayon local run ` (create or launch project)
104104- ` discovery.ts ` - Workflow/node/agent discovery via jiti
105105- ` runs.ts ` / ` trace.ts ` - Run history and trace viewing
106106
@@ -119,7 +119,7 @@ my-app/
119119
120120| Command | Description |
121121| ---------| -------------|
122- | ` crayon run ` | Interactive: create new project or launch existing |
122+ | ` crayon local run ` | Interactive: create new project or launch existing |
123123| ` crayon dev ` | Start Dev UI with live DAG + embedded Claude Code |
124124| ` crayon workflow list ` | List workflows (` --json ` supported) |
125125| ` crayon workflow run <name> ` | Run workflow with ` -i <json> ` |
Original file line number Diff line number Diff line change @@ -88,8 +88,10 @@ program
8888 . description ( "CLI for crayon workflow engine" )
8989 . version ( version ) ;
9090
91- // ============ Run command ============
92- program
91+ // ============ Local commands ============
92+ const local = program . command ( "local" ) . description ( "Local development commands" ) ;
93+
94+ local
9395 . command ( "run" )
9496 . description ( "Create a new project or launch an existing one" )
9597 . action ( async ( ) => {
Original file line number Diff line number Diff line change @@ -567,7 +567,7 @@ export async function runRun(): Promise<void> {
567567 } else {
568568 s . stop ( pc . yellow ( "Database not ready yet" ) ) ;
569569 p . log . warn (
570- `Run later: crayon run won't retry. Use the MCP tools or set up manually.` ,
570+ `Run later: crayon local run won't retry. Use the MCP tools or set up manually.` ,
571571 ) ;
572572 }
573573 } else {
@@ -597,6 +597,6 @@ export async function runRun(): Promise<void> {
597597 p . outro ( pc . green ( `Project created at ${ directory } ` ) ) ;
598598 console . log ( ) ;
599599 console . log ( pc . bold ( " To launch later:" ) ) ;
600- console . log ( pc . cyan ( ` cd ${ directory } && crayon run` ) ) ;
600+ console . log ( pc . cyan ( ` cd ${ directory } && crayon local run` ) ) ;
601601 console . log ( ) ;
602602}
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ Tell the user:
2402401 . "Updated ` src/crayon/workflows/<name>.ts ` "
2412412 . If any missing nodes/agents were created: list the new files
2422423 . If agent tools were updated from descriptions: list which agents were updated
243- 4 . "To test it, just say ** run it** and I'll trigger it for you." — do NOT suggest ` crayon run ` or opening the Dev UI manually
243+ 4 . "To test it, just say ** run it** and I'll trigger it for you." — do NOT suggest using the CLI or opening the Dev UI manually
244244
245245---
246246
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ Design and write a workflow with embedded description fields for crayon.
1616Check the current working directory and handle one of three cases:
1717
1818** Case 1: Empty directory** (no files, or only dotfiles like ` .git ` )
19- → Tell the user to run ` crayon run` first to scaffold a new project, then re-invoke this skill . ** Stop here.**
19+ → Tell the user this skill must be run inside a crayon project. ** Stop here.**
2020
2121** Case 2: Existing crayon project** (has ` src/crayon/workflows/ ` or ` src/crayon/agents/ ` directories)
2222→ Good to go. Continue to step 2.
2323
2424** Case 3: Existing non-crayon directory** (has files/projects but no crayon structure — e.g., home directory, another repo)
25- → Tell the user to run ` crayon run` in a subdirectory first, then re-invoke this skill from inside that directory. ** Stop here.**
25+ → Tell the user this skill must be run from inside a crayon project directory. ** Stop here.**
2626
2727### 2. Discover Integrations
2828
You can’t perform that action at this time.
0 commit comments