@ork-sh/cli 0.1.5 → 0.1.8

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/README.md ADDED
@@ -0,0 +1,124 @@
1
+ # Ork
2
+
3
+ > Orchestrate your AI agents from the command line (in Beta)
4
+
5
+ `ork` is a CLI toolkit that helps you discover, manage, and interact with AI agents installed on your system. It provides both an interactive TUI (Terminal User Interface) and command-line tools to detect and work with popular AI CLI tools like Claude, Gemini, and more.
6
+
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install -g @ork-sh/cli
12
+ ```
13
+
14
+ ## What Can You Do With ork?
15
+
16
+ `ork` provides a suite of AI-powered commands to help you with your development workflow:
17
+
18
+ ### `/plan` - Project Planning
19
+ Generate detailed implementation plans for your projects. ork will create a comprehensive `plan.md` file with:
20
+ - Project overview and objectives
21
+ - Step-by-step implementation guide
22
+ - Required technologies and dependencies
23
+ - File structure recommendations
24
+ - Code examples and best practices
25
+ - Potential challenges and solutions
26
+
27
+ **Usage:** `/plan <describe your project>`
28
+
29
+ ### `/init` - Project Analysis
30
+ Analyze your entire codebase and generate comprehensive documentation. Creates an `agents.md` file containing:
31
+ - Project overview and main purpose
32
+ - Core functionality and features
33
+ - Architecture and component relationships
34
+ - File structure breakdown
35
+ - Technologies, frameworks, and libraries used
36
+ - Setup and run instructions
37
+ - Key concepts and patterns
38
+
39
+ **Usage:** `/init`
40
+
41
+ ### `/audit` - Code Audit
42
+ Get a thorough AI-powered audit of your codebase. Results are saved to `audit.md` with insights on:
43
+ - Code quality and best practices
44
+ - Security vulnerabilities
45
+ - Performance issues
46
+ - Technical debt
47
+ - Improvement recommendations
48
+
49
+ **Usage:** `/audit <what to audit>`
50
+
51
+ ### `/review` - Code Review
52
+ Request an AI code review for specific files or features. Review results saved to `review.md` include:
53
+ - Code structure analysis
54
+ - Logic and algorithm review
55
+ - Style and convention feedback
56
+ - Bug detection
57
+ - Optimization suggestions
58
+
59
+ **Usage:** `/review <what to review>`
60
+
61
+ ### `/refactor` - Refactoring Suggestions
62
+ Get intelligent refactoring recommendations. Suggestions saved to `refactor.md` cover:
63
+ - Code organization improvements
64
+ - Design pattern applications
65
+ - Performance optimizations
66
+ - Maintainability enhancements
67
+ - Modern syntax updates
68
+
69
+ **Usage:** `/refactor <what to refactor>`
70
+
71
+ ### `/explain` - Code Explanation
72
+ Get detailed explanations of code or concepts. Explanations saved to `explain.md` help you understand:
73
+ - How specific code works
74
+ - Complex algorithms and logic
75
+ - Framework or library usage
76
+ - Design patterns and architectures
77
+ - Technical concepts
78
+
79
+ **Usage:** `/explain <what to explain>`
80
+
81
+ ### `/commit` - Smart Git Commits
82
+ Save your changes with AI-assisted commit messages that follow best practices.
83
+
84
+ **Usage:** `/commit`
85
+
86
+ ### `/revert` - Version Control
87
+ Browse your commit history and restore previous versions of your project with an interactive picker.
88
+
89
+ **Usage:** `/revert`
90
+
91
+ ### `/ask` - Quick Questions
92
+ Ask questions and get answers from ChatGPT or Google.
93
+
94
+ **Usage:** `/ask <your question>`
95
+
96
+ ### `/agents` - Manage AI Agents
97
+ Detect and manage AI CLI tools installed on your system (Claude, Gemini, Copilot, Codex).
98
+
99
+ **Usage:** `/agents`
100
+
101
+
102
+ ## Getting Started
103
+
104
+ 1. Install ork globally:
105
+ ```bash
106
+ npm install -g @ork-sh/cli
107
+ ```
108
+
109
+ 2. Launch the interactive TUI:
110
+ ```bash
111
+ ork
112
+ ```
113
+
114
+ 3. Type any slash command (e.g., `/plan`, `/audit`) and follow the prompts
115
+
116
+ 4. Your AI-generated results will be saved as markdown files in your current directory
117
+
118
+ ## Requirements
119
+
120
+ - Node.js >= 14.0.0
121
+ - At least one AI agent installed (Claude, Codex, Copilot, or Gemini)
122
+ - macOS, Linux, or Windows
123
+
124
+
package/bin/index.js CHANGED
@@ -14,8 +14,10 @@ if (platform === 'darwin') {
14
14
  } else {
15
15
  binaryName = 'ork-darwin-amd64';
16
16
  }
17
+ } else if (platform === 'win32') {
18
+ binaryName = 'ork-windows-amd64.exe';
17
19
  } else {
18
- process.stderr.write('Error: Currently, @ork-sh/cli only supports macOS.\n');
20
+ process.stderr.write(`Error: Currently, @ork-sh/cli only supports macOS and Windows. Found platform: ${platform}\n`);
19
21
  process.exit(1);
20
22
  }
21
23
 
package/bin/ork ADDED
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@ork-sh/cli",
3
- "version": "0.1.5",
4
- "description": "Orchestrate your AI",
3
+ "version": "0.1.8",
4
+ "description": "Orchestrate your agents",
5
5
  "main": "index.js",
6
6
  "files": [
7
- "bin"
7
+ "bin",
8
+ "README.md"
8
9
  ],
9
10
  "bin": {
10
11
  "ork": "bin/index.js"
11
12
  },
12
13
  "scripts": {
13
- "postinstall": "chmod +x bin/index.js bin/ork-darwin-amd64 bin/ork-darwin-arm64"
14
+ "postinstall": "node -e \"if(process.platform !== 'win32') require('child_process').execSync('chmod +x bin/index.js bin/ork-darwin-amd64 bin/ork-darwin-arm64')\""
14
15
  },
15
16
  "keywords": [
16
17
  "ai",