-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathflow.toml
More file actions
249 lines (208 loc) · 6.5 KB
/
flow.toml
File metadata and controls
249 lines (208 loc) · 6.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
version = 1
name = "mbt"
# Global keybindings for this project
[[keybindings]]
keys = "ctrl-alt-b"
task = "build-flow"
description = "Build flow CLI"
[[keybindings]]
keys = "ctrl-alt-t"
task = "test"
description = "Run tests"
[[keybindings]]
keys = "ctrl-alt-c"
task = "clean-scan"
description = "Scan for cruft"
[[keybindings]]
keys = "ctrl-alt-d"
task = "deploy-flow"
description = "Deploy flow"
[[keybindings]]
keys = "ctrl-alt-s"
task = "shell-install"
description = "Install shell wrappers"
[flow]
primary_task = "deploy-flow"
deploy_task = "deploy-flow"
[storage]
# Read env from ~/code/flow's storage
provider = "myflow.sh"
env_var = "FLOW_SECRETS_TOKEN"
[[storage.envs]]
name = "local"
description = "Local development defaults"
variables = [
{ key = "ANTHROPIC_API_KEY", default = "" },
{ key = "OPENAI_API_KEY", default = "" },
]
# Flow CLI tasks
[[tasks]]
name = "build-flow"
command = "cd lib/flow && moon build --target native"
description = "Build the flow CLI"
shortcuts = ["b"]
[[tasks]]
name = "run-flow"
command = "cd lib/flow && moon run cli --target native --"
description = "Run flow CLI with args"
shortcuts = ["r"]
[[tasks]]
name = "deploy-flow"
command = "./scripts/deploy-flow.sh"
description = "Build and install flow CLI to ~/bin"
shortcuts = ["d", "deploy"]
[[tasks]]
name = "deploy-zed-help"
command = "./scripts/deploy-zed-help.sh"
description = "Build and install zed-help CLI to ~/bin"
shortcuts = ["zh", "zed-help"]
[[tasks]]
name = "deploy-zed-open"
command = "./scripts/deploy-zed-open.sh"
description = "Build and install zed-open CLI to ~/bin"
shortcuts = ["zo", "zed-open"]
[[tasks]]
name = "deploy-fishy"
command = "./scripts/deploy-fishy.sh"
description = "Build and install fishy CLI to ~/bin"
shortcuts = ["fy", "fishy"]
[[tasks]]
name = "deploy-comet-help"
command = "./scripts/deploy-comet.sh"
description = "Build and install comet-help CLI to ~/bin"
shortcuts = ["ch", "comet-help"]
[[tasks]]
name = "lmstudio-test"
command = "moon run cli/lmstudio-test --target native -- fishy-tests"
description = "Run LM Studio local fishy inference tests"
shortcuts = ["lm", "lmtest"]
[[tasks]]
name = "lmstudio-env-test"
command = "moon run cli/lmstudio-test --target native -- env-tests"
description = "Run LM Studio local env-agent inference tests"
shortcuts = ["lme", "lm-env"]
[[tasks]]
name = "lmstudio-env-agent-test"
command = "moon run cli/lmstudio-test --target native -- env-agent-tests"
description = "Run LM Studio local env agent command-output tests"
shortcuts = ["lmea", "lm-env-agent"]
[[tasks]]
name = "deploy-help"
command = "./scripts/deploy-help.sh"
description = "Build and install changed help/* CLIs to ~/bin"
shortcuts = ["dh", "help"]
[[tasks]]
name = "effect-watch"
command = "./scripts/watch-effect.sh"
description = "Watch effect library and re-run tests on change"
shortcuts = ["ew", "effect-w"]
# Development tasks
[[tasks]]
name = "setup"
command = "command -v moon >/dev/null || { echo 'Install moon: curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash'; exit 1; } && moon update && cd lib/flow && moon update && echo 'Setup complete'"
description = "Check moon CLI and update dependencies"
shortcuts = ["s"]
# Clean CLI tasks
[[tasks]]
name = "build-clean"
command = "moon build cli/clean --target native"
description = "Build the clean CLI for detecting repo cruft"
shortcuts = ["bc"]
[[tasks]]
name = "deploy-clean"
command = "./scripts/deploy-clean.sh"
description = "Build and install clean CLI to ~/bin"
shortcuts = ["dc", "clean-deploy"]
[[tasks]]
name = "clean-scan"
command = "moon run cli/clean --target native --"
description = "Scan current directory for cruft (dry run)"
shortcuts = ["cs", "scan"]
[[tasks]]
name = "clean-verbose"
command = "moon run cli/clean --target native -- -v"
description = "Scan with verbose output showing reasons"
shortcuts = ["cv"]
[[tasks]]
name = "clean-delete"
command = "moon run cli/clean --target native -- --delete"
description = "Actually delete detected cruft (use with caution)"
shortcuts = ["cd", "clean-rm"]
[[tasks]]
name = "clean-large"
command = "moon run cli/clean --target native -- --min-size 1M"
description = "Scan for cruft larger than 1MB"
shortcuts = ["cl", "clean-1m"]
[[tasks]]
name = "clean-rise"
command = "moon run cli/clean --target native -- ~/code/rise"
description = "Scan ~/code/rise for cruft"
shortcuts = ["cr"]
[[tasks]]
name = "clean-here"
command = "_build/native/release/build/cli/clean/clean.exe ."
description = "Run clean on current directory (requires build first)"
shortcuts = ["c"]
# Keymap tasks
[[tasks]]
name = "keymap-generate"
command = "moon run cli/keymap --target native -- generate"
description = "Generate fish keybindings from config"
shortcuts = ["kg", "keygen"]
[[tasks]]
name = "keymap-list"
command = "moon run cli/keymap --target native -- list"
description = "List all keybindings"
shortcuts = ["kl", "keylist"]
[[tasks]]
name = "keymap-install"
command = "moon run cli/keymap --target native -- install"
description = "Install keybindings to fish config"
shortcuts = ["ki", "keyinstall"]
# Shell command registry tasks
[[tasks]]
name = "shell-generate"
command = "moon run cli/shell --target native -- generate"
description = "Generate fish wrappers for traced commands"
shortcuts = ["sg", "shell-gen"]
[[tasks]]
name = "shell-list"
command = "moon run cli/shell --target native -- list"
description = "List all registered shell commands"
shortcuts = ["sl", "shell-ls"]
[[tasks]]
name = "shell-install"
command = "moon run cli/shell --target native -- install"
description = "Install shell wrappers to fish config"
shortcuts = ["si", "shell-inst"]
[[tasks]]
name = "shell-context"
command = "moon run cli/shell --target native -- context"
description = "Show AI context JSON for debugging"
shortcuts = ["sc", "shell-ctx"]
[[tasks]]
name = "shell-traces"
command = "moon run cli/shell --target native -- trace"
description = "Show recent command traces"
shortcuts = ["st", "traces"]
[[tasks]]
name = "deploy-shell"
command = "./scripts/deploy-shell.sh"
description = "Build and install shell CLI to ~/bin"
shortcuts = ["ds", "shell-deploy"]
# fishx - Enhanced fish shell
[[tasks]]
name = "deploy-fishx"
command = "./scripts/deploy-fishx.sh"
description = "Build and install fishx CLI to ~/bin"
shortcuts = ["fx", "fishx"]
[[tasks]]
name = "fishx-install"
command = "moon run cli/fishx --target native -- install"
description = "Install fishx wrappers and keymaps"
shortcuts = ["fxi"]
[[tasks]]
name = "fishx-status"
command = "moon run cli/fishx --target native -- status"
description = "Show fishx setup status"
shortcuts = ["fxs"]