@harness.farm/whipflow 0.1.15 → 0.1.16
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 +57 -6
- package/bin/whipflow +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# whipflow
|
|
1
|
+
# whipflow
|
|
2
2
|
|
|
3
3
|
AI workflow automation for [harness.farm](https://harness.farm).
|
|
4
4
|
|
|
@@ -11,22 +11,73 @@ bun install
|
|
|
11
11
|
## Run a flow
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
|
|
14
|
+
whipflow run flows/hello.whip
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Install skills into Claude Code
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
|
|
20
|
+
whipflow install-skills
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Then use `/whipflow` in any Claude Code session.
|
|
24
24
|
|
|
25
25
|
## Add a new flow
|
|
26
26
|
|
|
27
|
-
Create a `.
|
|
27
|
+
Create a `.whip` file in `flows/` and run it with:
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
whipflow validate flows/my-flow.whip
|
|
31
|
+
whipflow run flows/my-flow.whip
|
|
32
32
|
```
|
|
33
|
+
|
|
34
|
+
## ACP mode
|
|
35
|
+
|
|
36
|
+
whipflow can act as an **MCP-compatible tool server** so other agents (Cursor, Claude Code, etc.) can call it over JSON-RPC 2.0 via stdio.
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
whipflow acp
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Register it in `.cursor/mcp.json` or any MCP-compatible host:
|
|
43
|
+
|
|
44
|
+
```json
|
|
45
|
+
{
|
|
46
|
+
"mcpServers": {
|
|
47
|
+
"whipflow": {
|
|
48
|
+
"command": "whipflow",
|
|
49
|
+
"args": ["acp"]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Exposed tools
|
|
56
|
+
|
|
57
|
+
| Tool | Description |
|
|
58
|
+
|------|-------------|
|
|
59
|
+
| `whipflow_run_file` | Execute a `.whip` workflow file |
|
|
60
|
+
| `whipflow_run_source` | Execute inline `.whip` source code |
|
|
61
|
+
| `whipflow_validate` | Validate `.whip` syntax without running |
|
|
62
|
+
|
|
63
|
+
## Configuration
|
|
64
|
+
|
|
65
|
+
Project-level config in `.whipflow.json`:
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"providers": {
|
|
70
|
+
"mymodel": {
|
|
71
|
+
"bin": "opencode",
|
|
72
|
+
"args": ["run"],
|
|
73
|
+
"promptMode": "arg"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"defaultProvider": "claude",
|
|
77
|
+
"conditionProvider": "claude",
|
|
78
|
+
"toolsDir": "~/.whipflow/tools"
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
`defaultProvider` sets the provider for all sessions when not specified on the agent (default: `claude-code`).
|
|
83
|
+
`conditionProvider` overrides the provider for `discretion` and `choice` evaluation only; falls back to `defaultProvider`.
|
package/bin/whipflow
CHANGED
|
Binary file
|