@the-agenticflow/openflows 0.1.3 → 0.1.6

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 (85) hide show
  1. package/.env.example +60 -0
  2. package/README.md +156 -113
  3. package/bin/LICENSE +21 -0
  4. package/bin/README.md +535 -0
  5. package/bin/agentflow-bin +0 -0
  6. package/bin/agentflow-dashboard-bin +0 -0
  7. package/bin/agentflow-doctor-bin +0 -0
  8. package/bin/agentflow-setup-bin +0 -0
  9. package/bin/openflows.js +285 -3
  10. package/bin/orchestration/agent/agents/forge.agent.md +110 -0
  11. package/bin/orchestration/agent/agents/lore.agent.md +27 -0
  12. package/bin/orchestration/agent/agents/nexus.agent.md +201 -0
  13. package/bin/orchestration/agent/agents/sentinel.agent.md +96 -0
  14. package/bin/orchestration/agent/agents/vessel.agent.md +38 -0
  15. package/bin/orchestration/agent/registry.json +10 -0
  16. package/bin/orchestration/agent/standards/CODING.md +22 -0
  17. package/bin/orchestration/agent/standards/REVIEW.md +15 -0
  18. package/bin/orchestration/agent/standards/SECURITY.md +72 -0
  19. package/bin/orchestration/plugin/commands/assign.md +45 -0
  20. package/bin/orchestration/plugin/commands/check-ci.md +26 -0
  21. package/bin/orchestration/plugin/commands/document-pr.md +32 -0
  22. package/bin/orchestration/plugin/commands/gate-approve.md +39 -0
  23. package/bin/orchestration/plugin/commands/handoff.md +75 -0
  24. package/bin/orchestration/plugin/commands/merge.md +47 -0
  25. package/bin/orchestration/plugin/commands/plan.md +66 -0
  26. package/bin/orchestration/plugin/commands/segment-done.md +50 -0
  27. package/bin/orchestration/plugin/commands/status-check.md +28 -0
  28. package/bin/orchestration/plugin/commands/status.md +94 -0
  29. package/bin/orchestration/plugin/commands/update-changelog.md +37 -0
  30. package/bin/orchestration/plugin/hooks/forge/post_write_lint.sh +76 -0
  31. package/bin/orchestration/plugin/hooks/forge/pre_bash_guard.sh +81 -0
  32. package/bin/orchestration/plugin/hooks/forge/pre_compact_handoff.sh +28 -0
  33. package/bin/orchestration/plugin/hooks/forge/pre_write_check.sh +77 -0
  34. package/bin/orchestration/plugin/hooks/forge/session_start.sh +59 -0
  35. package/bin/orchestration/plugin/hooks/forge/stop_require_artifact.sh +75 -0
  36. package/bin/orchestration/plugin/hooks/lore/session-start.sh +13 -0
  37. package/bin/orchestration/plugin/hooks/nexus/init-session.sh +23 -0
  38. package/bin/orchestration/plugin/hooks/nexus/log-decision.sh +10 -0
  39. package/bin/orchestration/plugin/hooks/sentinel/post_write_validate.sh +59 -0
  40. package/bin/orchestration/plugin/hooks/sentinel/pre_bash_readonly_guard.sh +107 -0
  41. package/bin/orchestration/plugin/hooks/sentinel/session_start.sh +74 -0
  42. package/bin/orchestration/plugin/hooks/sentinel/stop_require_eval.sh +57 -0
  43. package/bin/orchestration/plugin/hooks/vessel/log-merge-status.sh +7 -0
  44. package/bin/orchestration/plugin/hooks/vessel/session-start.sh +14 -0
  45. package/bin/orchestration/plugin/mcp/mcp.json.template +26 -0
  46. package/bin/orchestration/plugin/plugin.json +66 -0
  47. package/bin/orchestration/plugin/skills/forge-algorithmic-art.md +24 -0
  48. package/bin/orchestration/plugin/skills/forge-canvas-design.md +25 -0
  49. package/bin/orchestration/plugin/skills/forge-coding.md +161 -0
  50. package/bin/orchestration/plugin/skills/forge-frontend-design.md +30 -0
  51. package/bin/orchestration/plugin/skills/forge-mcp-builder.md +37 -0
  52. package/bin/orchestration/plugin/skills/forge-planning.md +102 -0
  53. package/bin/orchestration/plugin/skills/forge-skill-creator.md +25 -0
  54. package/bin/orchestration/plugin/skills/forge-web-artifacts-builder.md +29 -0
  55. package/bin/orchestration/plugin/skills/lore-brand-guidelines.md +33 -0
  56. package/bin/orchestration/plugin/skills/lore-changelog.md +69 -0
  57. package/bin/orchestration/plugin/skills/lore-doc-coauthoring.md +33 -0
  58. package/bin/orchestration/plugin/skills/lore-documentation.md +57 -0
  59. package/bin/orchestration/plugin/skills/lore-docx.md +20 -0
  60. package/bin/orchestration/plugin/skills/lore-pdf.md +20 -0
  61. package/bin/orchestration/plugin/skills/lore-pptx.md +23 -0
  62. package/bin/orchestration/plugin/skills/lore-theme-factory.md +20 -0
  63. package/bin/orchestration/plugin/skills/lore-xlsx.md +20 -0
  64. package/bin/orchestration/plugin/skills/nexus-doc-coauthoring.md +21 -0
  65. package/bin/orchestration/plugin/skills/nexus-internal-comms.md +28 -0
  66. package/bin/orchestration/plugin/skills/nexus-orchestration.md +63 -0
  67. package/bin/orchestration/plugin/skills/nexus-skill-creator.md +15 -0
  68. package/bin/orchestration/plugin/skills/nexus-slack-gif-creator.md +21 -0
  69. package/bin/orchestration/plugin/skills/nexus-triage.md +56 -0
  70. package/bin/orchestration/plugin/skills/nexus-xlsx.md +20 -0
  71. package/bin/orchestration/plugin/skills/sentinel-algorithmic-art.md +20 -0
  72. package/bin/orchestration/plugin/skills/sentinel-criteria.md +115 -0
  73. package/bin/orchestration/plugin/skills/sentinel-frontend-design.md +20 -0
  74. package/bin/orchestration/plugin/skills/sentinel-review.md +124 -0
  75. package/bin/orchestration/plugin/skills/sentinel-web-artifacts-builder.md +20 -0
  76. package/bin/orchestration/plugin/skills/sentinel-webapp-testing.md +34 -0
  77. package/bin/orchestration/plugin/skills/shared-claude-api.md +25 -0
  78. package/bin/orchestration/plugin/skills/vessel-ci-gate.md +68 -0
  79. package/bin/orchestration/plugin/skills/vessel-internal-comms.md +20 -0
  80. package/bin/orchestration/plugin/skills/vessel-mcp-builder.md +21 -0
  81. package/bin/orchestration/plugin/skills/vessel-merge-protocol.md +113 -0
  82. package/bin/orchestration/plugin/skills/vessel-pdf.md +20 -0
  83. package/bin/orchestration/plugin/skills/vessel-webapp-testing.md +34 -0
  84. package/package.json +8 -3
  85. package/scripts/install.js +162 -9
package/.env.example ADDED
@@ -0,0 +1,60 @@
1
+ # OpenFlows Configuration
2
+ # Copy this file to .env and fill in your values
3
+ #
4
+ # Quick Start Options:
5
+ # ===================
6
+ #
7
+ # Option 1: Fireworks AI (Recommended - no proxy needed)
8
+ # ------------------------------------------------------
9
+ # Get your key from: https://fireworks.ai
10
+ FIREWORKS_API_KEY=your-fireworks-api-key
11
+
12
+ # Option 2: Anthropic Direct
13
+ # --------------------------
14
+ # Get your key from: https://console.anthropic.com
15
+ # ANTHROPIC_API_KEY=your-anthropic-api-key
16
+
17
+ # Option 3: Custom Gateway (requires built-in proxy)
18
+ # --------------------------------------------------
19
+ # The proxy will auto-start when you use this option
20
+ # GATEWAY_URL=https://your-gateway.com/v1
21
+ # GATEWAY_API_KEY=your-gateway-api-key
22
+
23
+ # ===================
24
+ # Required Settings
25
+ # ===================
26
+
27
+ # GitHub Personal Access Token (required)
28
+ # Get from: https://github.com/settings/tokens
29
+ # Needs: repo, read:user, read:org
30
+ GITHUB_PERSONAL_ACCESS_TOKEN=your-github-pat
31
+
32
+ # Target repository (owner/repo format)
33
+ GITHUB_REPOSITORY=owner/repo-name
34
+
35
+ # ===================
36
+ # Optional Settings
37
+ # ===================
38
+
39
+ # Logging level (trace, debug, info, warn, error)
40
+ RUST_LOG=info
41
+
42
+ # Proxy port (if using built-in proxy)
43
+ # PROXY_PORT=8765
44
+
45
+ # GitHub MCP type: "hosted" (default) or "docker"
46
+ # GITHUB_MCP_TYPE=hosted
47
+
48
+ # ===================
49
+ # Advanced
50
+ # ===================
51
+
52
+ # Custom model backend (overrides registry)
53
+ # MODEL_BACKEND=accounts/fireworks/models/glm-5
54
+
55
+ # Model provider mapping (for proxy mode)
56
+ # Format: prefix=provider,prefix=provider
57
+ # MODEL_PROVIDER_MAP=glm=openai,gpt=openai,claude=anthropic
58
+
59
+ # Fallback order for direct mode
60
+ # LLM_FALLBACK=anthropic,gemini,openai
package/README.md CHANGED
@@ -1,174 +1,217 @@
1
- # @the-agenticflow/openflows npm Package
1
+ # @the-agenticflow/openflows
2
2
 
3
- ## Installation
3
+ **Autonomous AI Development Team** — Install and run with zero configuration knowledge required.
4
+
5
+ ## Quick Start
4
6
 
5
7
  ```bash
6
- # Install globally
8
+ # 1. Install globally
7
9
  npm install -g @the-agenticflow/openflows
8
10
 
9
- # Or use with npx (no install needed)
10
- npx @the-agenticflow/openflows setup
11
+ # 2. Run setup wizard (configures API keys)
12
+ openflows-setup
13
+
14
+ # 3. Start the autonomous team
15
+ openflows
11
16
  ```
12
17
 
13
- ## What Gets Installed
18
+ That's it! The package handles everything automatically.
19
+
20
+ ## How It Works
14
21
 
15
- The post-install script (`scripts/install.js`) downloads platform-specific binaries from GitHub Releases:
22
+ ### Zero-Configuration Philosophy
16
23
 
17
- 1. **Detects Platform**
18
- - macOS: `x86_64-apple-darwin` or `aarch64-apple-darwin`
19
- - Linux: `x86_64-unknown-linux-gnu/musl` or `aarch64-unknown-linux-gnu`
24
+ You don't need to know about proxies, MCP servers, or backend routing. The package:
20
25
 
21
- 2. **Downloads Binary**
22
- - Fetches latest release from GitHub API
23
- - Falls back to `v0.1.3` if API unavailable
24
- - Downloads tarball containing:
25
- - `agentflow` - Main orchestration binary
26
- - `agentflow-setup` - Interactive TUI setup wizard
27
- - `agentflow-dashboard` - Real-time monitoring TUI
28
- - `agentflow-doctor` - System diagnostics tool
29
- - `orchestration/` - Agent configurations
30
- - `LICENSE` - MIT License
26
+ 1. **Installs all dependencies** - Including `mcp-proxy` for GitHub connectivity
27
+ 2. **Auto-detects your setup** - Fireworks key? Direct mode. Gateway? Proxy starts automatically
28
+ 3. **Manages the proxy lifecycle** - Starts/stops the built-in proxy as needed
29
+ 4. **Provides helpful errors** - Clear messages when something needs attention
31
30
 
32
- 3. **Extracts to Package**
33
- - Extracts to `bin/` directory
34
- - Renames binaries to `*-bin` for Node.js wrappers
35
- - Sets executable permissions
31
+ ### Configuration Modes
36
32
 
37
- ## Commands Available
33
+ | Mode | What You Need | Proxy Required? |
34
+ |------|---------------|-----------------|
35
+ | **Fireworks Direct** | `FIREWORKS_API_KEY` | No |
36
+ | **Anthropic Direct** | `ANTHROPIC_API_KEY` | No |
37
+ | **Custom Gateway** | `GATEWAY_URL` + `GATEWAY_API_KEY` | Auto-started |
38
+
39
+ ### Commands
38
40
 
39
41
  ```bash
40
42
  openflows # Start orchestration
41
- openflows-setup # Run setup wizard
42
- openflows-dashboard # Launch monitoring TUI
43
- openflows-doctor # Run diagnostics
43
+ openflows-setup # Interactive setup wizard (TUI)
44
+ openflows-dashboard # Real-time monitoring (TUI)
45
+ openflows-doctor # System diagnostics
46
+ openflows --help # Show help
47
+ openflows --version # Show version
44
48
  ```
45
49
 
46
- ## Troubleshooting
50
+ ## What Gets Installed
47
51
 
48
- ### Permission Denied (sudo install)
52
+ The post-install script downloads platform-specific binaries from GitHub Releases:
49
53
 
50
- **Problem**: `EACCES: permission denied, open '/tmp/openflows-...'`
54
+ | Binary | Purpose |
55
+ |--------|---------|
56
+ | `agentflow` | Main orchestration engine |
57
+ | `agentflow-setup` | Interactive TUI setup wizard |
58
+ | `agentflow-dashboard` | Real-time monitoring TUI |
59
+ | `agentflow-doctor` | System diagnostics tool |
60
+ | `anthropic-proxy` | Built-in Anthropic-to-OpenAI proxy |
51
61
 
52
- **Solution**: Fixed in v0.1.3 - install script now uses package-local `.tmp` directory instead of `/tmp`.
62
+ Additionally:
63
+ - **mcp-proxy** is installed via npm for GitHub MCP connectivity
64
+ - **.env.example** is included for reference
65
+
66
+ ## Environment Configuration
67
+
68
+ Create a `.env` file in your project directory:
53
69
 
54
- **Workaround for older versions**:
55
70
  ```bash
56
- # Install without sudo
57
- mkdir -p ~/.npm-global
58
- npm config set prefix '~/.npm-global'
59
- echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
60
- source ~/.bashrc
61
- npm install -g @the-agenticflow/openflows
71
+ # Required
72
+ GITHUB_PERSONAL_ACCESS_TOKEN=ghp_xxxxx
73
+ GITHUB_REPOSITORY=owner/repo-name
74
+
75
+ # Choose one API provider
76
+ FIREWORKS_API_KEY=fw_xxxxx # Recommended - direct mode
77
+ # ANTHROPIC_API_KEY=sk-ant-xxxx # Direct mode
78
+ # GATEWAY_URL=... # Proxy auto-starts
79
+ # GATEWAY_API_KEY=... # For custom gateways
62
80
  ```
63
81
 
64
- ### Network Issues (DNS/API failures)
82
+ Run `openflows-setup` for a guided configuration experience.
65
83
 
66
- **Problem**: `getaddrinfo EAI_AGAIN api.github.com` or `undefined` in filename
84
+ ## Advanced Options
67
85
 
68
- **Solution**: Fixed in v0.1.3 - script now:
69
- - Has timeout handling for GitHub API
70
- - Falls back to known version `v0.1.3` if API fails
71
- - Validates API response before using
86
+ ### Disable Auto-Proxy
72
87
 
73
- **Manual fix**:
74
88
  ```bash
75
- # Build from source instead
76
- git clone https://github.com/The-AgenticFlow/OpenFlows.git
77
- cd OpenFlows
78
- cargo build --release --bin agentflow-setup
79
- sudo cp target/release/agentflow-setup /usr/local/bin/
89
+ openflows --no-proxy
80
90
  ```
81
91
 
82
- ### Binary Not Found
92
+ ### Proxy-Only Mode (Testing)
83
93
 
84
- **Problem**: Command not found after install
94
+ ```bash
95
+ openflows --proxy-only
96
+ # Starts only the built-in proxy on port 8765
97
+ ```
98
+
99
+ ### Custom Proxy Port
85
100
 
86
- **Solution**: Ensure `npm bin -g` is in your PATH
87
101
  ```bash
88
- # Check where global bins are installed
89
- npm bin -g
102
+ PROXY_PORT=9000 openflows
103
+ ```
90
104
 
91
- # Add to PATH if needed
92
- echo 'export PATH="$(npm bin -g):$PATH"' >> ~/.bashrc
93
- source ~/.bashrc
105
+ ### Docker MCP (Alternative)
106
+
107
+ If you prefer Docker for GitHub MCP:
108
+
109
+ ```bash
110
+ export GITHUB_MCP_TYPE=docker
111
+ openflows
94
112
  ```
95
113
 
96
- ## Publishing New Versions
114
+ ## Troubleshooting
97
115
 
98
- When a new GitHub release is created:
116
+ ### `mcp-proxy` Installation Issues
99
117
 
100
- 1. **Update package.json version**:
101
- ```bash
102
- cd packaging/npm
103
- # Edit package.json: "version": "0.1.4"
104
- ```
118
+ The post-install script attempts to install `mcp-proxy` (Python tool from PyPI) automatically. If you see errors:
105
119
 
106
- 2. **Update fallback version in install.js**:
107
- ```javascript
108
- // Line 126
109
- tag = 'v0.1.4'; // Update fallback
120
+ 1. **Install manually:**
121
+ ```bash
122
+ # Recommended (fastest)
123
+ uv tool install mcp-proxy
124
+
125
+ # Alternative
126
+ pipx install mcp-proxy
110
127
  ```
111
128
 
112
- 3. **Test locally**:
129
+ 2. **Use Docker mode instead:**
113
130
  ```bash
114
- npm pack
115
- npm install -g the-agenticflow-openflows-0.1.4.tgz
116
- openflows-setup --help
131
+ export GITHUB_MCP_TYPE=docker
132
+ openflows
117
133
  ```
118
134
 
119
- 4. **Publish to npm**:
135
+ The `mcp-proxy` tool bridges stdio to HTTP MCP servers like GitHub Copilot's MCP endpoint.
136
+
137
+ ### Permission Denied
138
+
139
+ Ensure you're not using `sudo` for npm install:
140
+
141
+ ```bash
142
+ # Configure npm to use user-writable directory
143
+ mkdir -p ~/.npm-global
144
+ npm config set prefix '~/.npm-global'
145
+ echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
146
+ source ~/.bashrc
147
+
148
+ # Now install without sudo
149
+ npm install -g @the-agenticflow/openflows
150
+ ```
151
+
152
+ ### Network Issues
153
+
154
+ If GitHub API is unreachable:
155
+
156
+ 1. The installer falls back to a known version
157
+ 2. Or build from source:
120
158
  ```bash
121
- npm publish --access public
159
+ git clone https://github.com/The-AgenticFlow/AgentFlow.git
160
+ cd AgentFlow
161
+ cargo build --release
122
162
  ```
123
163
 
124
- ## Files Included in npm Package
164
+ ### GitHub 401 Unauthorized
125
165
 
126
- ```
127
- @the-agenticflow/openflows/
128
- ├── package.json # Package metadata
129
- ├── README.md # This file
130
- ├── bin/
131
- │ ├── openflows.js # Node.js wrapper
132
- │ ├── openflows-setup.js # Node.js wrapper
133
- │ ├── openflows-dashboard.js # Node.js wrapper
134
- │ └── openflows-doctor.js # Node.js wrapper
135
- └── scripts/
136
- └── install.js # Post-install binary downloader
137
- ```
166
+ Ensure your `GITHUB_PERSONAL_ACCESS_TOKEN` is valid with these scopes:
167
+ - `repo` (full repository access)
168
+ - `read:user`
169
+ - `read:org`
138
170
 
139
- ## Technical Details
171
+ ## Platform Support
140
172
 
141
- ### Platform Detection Logic
173
+ | OS | Architecture | Status |
174
+ |----|--------------|--------|
175
+ | macOS | x86_64 (Intel) | ✅ |
176
+ | macOS | aarch64 (M1/M2) | ✅ |
177
+ | Linux | x86_64 (glibc) | ✅ |
178
+ | Linux | x86_64 (musl) | ✅ |
179
+ | Linux | aarch64 | ✅ |
142
180
 
143
- ```javascript
144
- // OS detection
145
- darwin → apple-darwin
146
- linux → unknown-linux-gnu OR unknown-linux-musl
181
+ ## Development
147
182
 
148
- // Architecture detection
149
- x64 → x86_64
150
- arm64 → aarch64
183
+ ### Testing Locally
151
184
 
152
- // Musl detection (Linux only)
153
- ldd --version | grep -q musl → use musl variant
185
+ ```bash
186
+ cd packaging/npm
187
+ npm pack
188
+ npm install -g the-agenticflow-openflows-0.1.4.tgz
189
+ openflows-setup --help
154
190
  ```
155
191
 
156
- ### Fallback Chain
192
+ ### Publishing
157
193
 
158
- 1. Try GitHub API for latest release
159
- 2. If API fails use hardcoded `v0.1.3`
160
- 3. Download `gnu` variant
161
- 4. If `gnu` fails on x86_64 Linux → try `musl` variant
162
- 5. Extract and install
194
+ 1. Update version in `package.json`
195
+ 2. Update fallback version in `scripts/install.js`
196
+ 3. Test locally with `npm pack`
197
+ 4. Publish: `npm publish --access public`
163
198
 
164
- ### Binary Wrappers
199
+ ## Files Included
165
200
 
166
- Each command (`openflows`, `openflows-setup`, etc.) is a Node.js wrapper that:
167
- - Calls the downloaded binary (`*-bin`)
168
- - Passes through all arguments
169
- - Inherits stdio for interactive TUI
170
- - Exits with binary's exit code
201
+ ```
202
+ @the-agenticflow/openflows/
203
+ ├── package.json # Package metadata
204
+ ├── README.md # This file
205
+ ├── .env.example # Configuration template
206
+ ├── bin/
207
+ │ ├── openflows.js # Main wrapper (handles proxy)
208
+ │ ├── openflows-setup.js # Setup wizard wrapper
209
+ │ ├── openflows-dashboard.js # Dashboard wrapper
210
+ │ └── openflows-doctor.js # Doctor wrapper
211
+ └── scripts/
212
+ └── install.js # Post-install script
213
+ ```
171
214
 
172
215
  ## License
173
216
 
174
- MIT - see LICENSE file in downloaded tarball or GitHub repository.
217
+ MIT - See [LICENSE](https://github.com/The-AgenticFlow/AgentFlow/blob/main/LICENSE)
package/bin/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Christian Yemele
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.