Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/hotwired-cli → bin/hotwired
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function getBinaryPath() {
process.exit(1);
}

const binaryName = process.platform === "win32" ? "hotwired-cli.exe" : "hotwired-cli";
const binaryName = process.platform === "win32" ? "hotwired.exe" : "hotwired";

// Paths to check, in order of priority
const paths = [
Expand Down
4 changes: 2 additions & 2 deletions npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hotwired-sh/cli-darwin-arm64",
"version": "1.4.0",
"description": "hotwired-cli binary for macOS ARM64",
"description": "hotwired binary for macOS ARM64",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -14,6 +14,6 @@
"arm64"
],
"files": [
"bin/hotwired-cli"
"bin/hotwired"
]
}
4 changes: 2 additions & 2 deletions npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hotwired-sh/cli-darwin-x64",
"version": "1.4.0",
"description": "hotwired-cli binary for macOS x64",
"description": "hotwired binary for macOS x64",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -14,6 +14,6 @@
"x64"
],
"files": [
"bin/hotwired-cli"
"bin/hotwired"
]
}
4 changes: 2 additions & 2 deletions npm/linux-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hotwired-sh/cli-linux-arm64",
"version": "1.4.0",
"description": "hotwired-cli binary for Linux ARM64",
"description": "hotwired binary for Linux ARM64",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -14,6 +14,6 @@
"arm64"
],
"files": [
"bin/hotwired-cli"
"bin/hotwired"
]
}
4 changes: 2 additions & 2 deletions npm/linux-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hotwired-sh/cli-linux-x64",
"version": "1.4.0",
"description": "hotwired-cli binary for Linux x64",
"description": "hotwired binary for Linux x64",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -14,6 +14,6 @@
"x64"
],
"files": [
"bin/hotwired-cli"
"bin/hotwired"
]
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"workflow"
],
"bin": {
"hotwired-cli": "bin/hotwired-cli"
"hotwired": "bin/hotwired"
},
"files": [
"bin",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/artifact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ pub async fn move_artifact(
eprintln!("error: {}", err);
eprintln!();
eprintln!("The artifact must be synced first. Run:");
eprintln!(" hotwired-cli artifact sync {}", old_path.display());
eprintln!(" hotwired artifact sync {}", old_path.display());
} else {
eprintln!("error: {}", err);
}
Expand Down
4 changes: 2 additions & 2 deletions src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ pub async fn print_version(socket_path: Option<String>) {
};

match core_version {
Some(v) => println!("hotwired-cli {} (core {})", VERSION, v),
Some(v) => println!("hotwired {} (core {})", VERSION, v),
None => println!(
"hotwired-cli {} (not connected - is Hotwired.sh desktop app running?)",
"hotwired {} (not connected - is Hotwired.sh desktop app running?)",
VERSION
),
}
Expand Down
84 changes: 42 additions & 42 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::path::PathBuf;

/// Hotwired CLI - manage workflows, sessions, and runs
#[derive(Parser)]
#[command(name = "hotwired-cli")]
#[command(name = "hotwired")]
#[command(about = "CLI for Hotwired multi-agent workflow orchestration")]
#[command(disable_version_flag = true)]
struct Args {
Expand All @@ -33,10 +33,10 @@ enum Commands {
/// List, inspect, and remove workflow runs.
///
/// Examples:
/// hotwired-cli run list
/// hotwired-cli run ls
/// hotwired-cli run show a1b2c3d4
/// hotwired-cli run rm a1b2c3d4
/// hotwired run list
/// hotwired run ls
/// hotwired run show a1b2c3d4
/// hotwired run rm a1b2c3d4
Run {
#[command(subcommand)]
action: RunAction,
Expand All @@ -47,10 +47,10 @@ enum Commands {
/// List, inspect, and remove active agent sessions.
///
/// Examples:
/// hotwired-cli session list
/// hotwired-cli session ls
/// hotwired-cli session show hotwired-strategist
/// hotwired-cli session rm hotwired-builder
/// hotwired session list
/// hotwired session ls
/// hotwired session show hotwired-strategist
/// hotwired session rm hotwired-builder
Session {
#[command(subcommand)]
action: SessionAction,
Expand All @@ -74,8 +74,8 @@ enum Commands {
/// to the run and receives the protocol instructions.
///
/// Examples:
/// hotwired-cli hotwire --intent "Build user authentication"
/// hotwired-cli hotwire --playbook architect-team --intent "Implement OAuth"
/// hotwired hotwire --intent "Build user authentication"
/// hotwired hotwire --playbook architect-team --intent "Implement OAuth"
Hotwire {
/// Playbook to use (e.g., plan-build, architect-team)
#[arg(long)]
Expand All @@ -96,8 +96,8 @@ enum Commands {
/// protocol instructions for your assigned role.
///
/// Examples:
/// hotwired-cli pair abc123
/// hotwired-cli pair abc123 --role worker-1
/// hotwired pair abc123
/// hotwired pair abc123 --role worker-1
Pair {
/// Run ID to join
run_id: String,
Expand All @@ -112,8 +112,8 @@ enum Commands {
/// Sends a handoff or message to another agent or the human operator.
///
/// Examples:
/// hotwired-cli send --to orchestrator "Task 1.1 complete"
/// hotwired-cli send --to human "Need clarification on auth approach"
/// hotwired send --to orchestrator "Task 1.1 complete"
/// hotwired send --to human "Need clarification on auth approach"
Send {
/// Recipient: orchestrator, implementer, human, or role ID
#[arg(long)]
Expand All @@ -129,9 +129,9 @@ enum Commands {
/// Retrieves recent messages from the conversation.
///
/// Examples:
/// hotwired-cli inbox
/// hotwired-cli inbox --watch
/// hotwired-cli inbox --since 42
/// hotwired inbox
/// hotwired inbox --watch
/// hotwired inbox --since 42
Inbox {
/// Continuously watch for new messages
#[arg(long)]
Expand All @@ -147,8 +147,8 @@ enum Commands {
/// Signals that your assigned work is done.
///
/// Examples:
/// hotwired-cli complete
/// hotwired-cli complete --outcome "All tests passing"
/// hotwired complete
/// hotwired complete --outcome "All tests passing"
Complete {
/// Description of the outcome
#[arg(long)]
Expand All @@ -160,8 +160,8 @@ enum Commands {
/// Signals that you're stuck and need help.
///
/// Examples:
/// hotwired-cli impediment "Cannot access database"
/// hotwired-cli impediment "Need push access" --type access --suggestion "Grant write perms"
/// hotwired impediment "Cannot access database"
/// hotwired impediment "Need push access" --type access --suggestion "Grant write perms"
Impediment {
/// Description of the blocker
description: String,
Expand All @@ -180,8 +180,8 @@ enum Commands {
/// Clears impediments you raised (or all impediments if your role has canResolveImpediments).
///
/// Examples:
/// hotwired-cli resolve "Critiquer has joined, no longer blocked"
/// hotwired-cli resolve "Requirements clarified"
/// hotwired resolve "Critiquer has joined, no longer blocked"
/// hotwired resolve "Requirements clarified"
Resolve {
/// Explanation of why the impediment is resolved
message: String,
Expand Down Expand Up @@ -218,8 +218,8 @@ enum Commands {
/// already in a plan-build run).
///
/// Examples:
/// hotwired-cli protocol
/// hotwired-cli protocol --playbook doc-open --role editor
/// hotwired protocol
/// hotwired protocol --playbook doc-open --role editor
Protocol {
/// Fetch protocol from a specific playbook (cross-playbook use)
#[arg(long)]
Expand Down Expand Up @@ -263,9 +263,9 @@ enum Commands {
/// Replaces the complex MCP artifact tools with simple file-based workflow.
///
/// Examples:
/// hotwired-cli artifact ls
/// hotwired-cli artifact sync docs/PRD.md
/// hotwired-cli artifact comment docs/PRD.md "auth flow" "Consider OAuth"
/// hotwired artifact ls
/// hotwired artifact sync docs/PRD.md
/// hotwired artifact comment docs/PRD.md "auth flow" "Consider OAuth"
Artifact {
#[command(subcommand)]
action: ArtifactAction,
Expand All @@ -292,7 +292,7 @@ enum ArtifactAction {
/// Creates a versioned snapshot and relocates comment anchors.
///
/// Examples:
/// hotwired-cli artifact sync docs/PRD.md
/// hotwired artifact sync docs/PRD.md
Sync {
/// Path to the file
path: PathBuf,
Expand All @@ -306,8 +306,8 @@ enum ArtifactAction {
/// NOTE: The artifact must already be synced. If not, run `artifact sync` first.
///
/// Examples:
/// hotwired-cli artifact mv docs/old.md docs/new.md
/// hotwired-cli artifact mv docs/old.md docs/new.md --refs-only
/// hotwired artifact mv docs/old.md docs/new.md
/// hotwired artifact mv docs/old.md docs/new.md --refs-only
#[command(alias = "mv")]
Move {
/// Current path (where artifact is registered)
Expand All @@ -324,9 +324,9 @@ enum ArtifactAction {
/// Add, list, and inspect comments anchored to document text.
///
/// Examples:
/// hotwired-cli artifact comment add docs/PRD.md "auth flow" "Consider OAuth2"
/// hotwired-cli artifact comment list docs/PRD.md
/// hotwired-cli artifact comment show cmt_abc123
/// hotwired artifact comment add docs/PRD.md "auth flow" "Consider OAuth2"
/// hotwired artifact comment list docs/PRD.md
/// hotwired artifact comment show cmt_abc123
Comment {
#[command(subcommand)]
action: CommentAction,
Expand All @@ -347,8 +347,8 @@ enum ArtifactAction {
/// Marks a comment as resolved. Optionally leave a closing reply.
///
/// Examples:
/// hotwired-cli artifact resolve cmt_abc123
/// hotwired-cli artifact resolve cmt_abc123 --reply "Addressed in revision 3"
/// hotwired artifact resolve cmt_abc123
/// hotwired artifact resolve cmt_abc123 --reply "Addressed in revision 3"
Resolve {
/// Comment ID
comment_id: String,
Expand Down Expand Up @@ -378,7 +378,7 @@ enum ArtifactAction {
/// Retrieves the full document content at a specific version.
///
/// Examples:
/// hotwired-cli artifact version docs/PRD.md 2
/// hotwired artifact version docs/PRD.md 2
Version {
/// Path to the artifact
path: PathBuf,
Expand All @@ -395,8 +395,8 @@ enum CommentAction {
/// They will be relocated automatically when the file is edited and synced.
///
/// Examples:
/// hotwired-cli artifact comment add docs/PRD.md "auth flow" "Consider OAuth2"
/// hotwired-cli artifact comment add docs/PRD.md "auth flow" "I disagree" --reply-to cmt_abc123
/// hotwired artifact comment add docs/PRD.md "auth flow" "Consider OAuth2"
/// hotwired artifact comment add docs/PRD.md "auth flow" "I disagree" --reply-to cmt_abc123
Add {
/// Path to the artifact
path: PathBuf,
Expand All @@ -415,7 +415,7 @@ enum CommentAction {
/// No need to specify path or target_text — they are inherited from the parent.
///
/// Examples:
/// hotwired-cli artifact comment reply cmt_abc123 "I agree, will fix"
/// hotwired artifact comment reply cmt_abc123 "I agree, will fix"
Reply {
/// Comment ID to reply to
comment_id: String,
Expand All @@ -428,7 +428,7 @@ enum CommentAction {
/// Retrieves a comment by ID along with any replies in its thread.
///
/// Examples:
/// hotwired-cli artifact comment show cmt_abc123
/// hotwired artifact comment show cmt_abc123
Show {
/// Comment ID
comment_id: String,
Expand Down
Loading