Commit 9e36959
Update CLI to latest API (#7)
* Update CLI to latest API
* Unify analytics funnel/flow date params to snake_case
The API is being updated so /v0/funnel and /v0/flow accept snake_case
date_from/date_to like every other pipe. Drop the CAMEL_DATE_PIPES
special-case so the CLI always sends snake_case, and remove the
now-unused `pipe` arg from buildAnalyticsParams.
Live funnel/flow integration tests are skipped until the API-side fix
deploys (production still only accepts camelCase for these two pipes,
so a snake_case call returns HTTP 400); the deterministic snake_case
unit test keeps the CLI behavior locked meanwhile.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Use kebab-case flags in docs, help text, and error messages
incur renders flag definitions in kebab-case (--date-from, --order-by,
--tag-id, …) and that matches the Node/TS CLI ecosystem standard
(oclif/commander/yargs), but the docs and hand-written CLI strings used
camelCase, so a user copying from `formo <cmd> --help`'s flag list got a
form the docs didn't show.
Normalize every user-facing flag reference to kebab-case across README.md,
SKILLS.md, command describe()/hint/error strings, and update the test
assertions that matched the old camelCase error text. Both spellings still
work at runtime (incur accepts camelCase too); this is consistency only.
Known limitation: incur renders in-code `examples:` option keys verbatim
(camelCase) because they are type-bound to the zod schema, so the example
lines in `--help` remain camelCase. Not fixable without an incur change.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Patch incur for kebab examples; enforce typed --conditions; fix SKILLS pagination
- Patch incur (pnpm patchedDependencies, patches/incur.patch) so
formatExamples() kebab-cases option keys like the flag-definition
renderer already does — `--help` example lines now match the flag
list (--order-by, --date-from, …) and so do generated skills/MCP.
- profiles search: validate --conditions field paths client-side.
A bare/untyped field (e.g. "net_worth_usd") is silently ignored by
the API and returns the entire unfiltered dataset; now it fails fast
with an actionable error. Added parseSearchConditions() + tests.
- SKILLS.md: profiles search documented --limit/--offset but the CLI
exposes --page/--size; corrected table and examples (matches README).
Addresses Codex review P1 (unenforced typed-path requirement) and
P2 (SKILLS.md pagination drift).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Extend incur patch: kebab-case flags in --llms manifest, usage, CTAs
The earlier patch only fixed formatExamples(). Three other incur
renderers still emitted raw camelCase keys:
- Skill.js renderCommandBody(): the `--llms`/`--llms-full` Options
tables (`| --triggerType |`) — agent-facing manifest.
- Help.js formatCommand(): explicit usage-pattern option lines.
- Cli.js formatCta(): suggested-command / error-CTA strings.
All now apply the same kebab transform, so every user- and
agent-facing flag surface (help, examples, manifest, skills, MCP,
CTAs) is consistent. patches/incur.patch now carries 4 hunks.
Verified: `--llms-full` option tables and `--help` examples both
kebab; build/lint pass; 87 passing / 0 failing.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent fea317b commit 9e36959
15 files changed
Lines changed: 670 additions & 89 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
| 85 | + | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | | - | |
96 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
118 | | - | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
| 123 | + | |
123 | 124 | | |
124 | | - | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
128 | | - | |
129 | | - | |
| 129 | + | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
139 | | - | |
140 | | - | |
| 140 | + | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | | - | |
144 | | - | |
| 144 | + | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
166 | | - | |
167 | | - | |
| 167 | + | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | | - | |
173 | | - | |
| 173 | + | |
| 174 | + | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| |||
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
229 | | - | |
| 230 | + | |
230 | 231 | | |
231 | 232 | | |
232 | | - | |
| 233 | + | |
233 | 234 | | |
234 | 235 | | |
235 | | - | |
| 236 | + | |
236 | 237 | | |
237 | 238 | | |
238 | | - | |
| 239 | + | |
239 | 240 | | |
240 | 241 | | |
241 | | - | |
| 242 | + | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
| |||
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
294 | | - | |
| 295 | + | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| |||
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
316 | 342 | | |
317 | 343 | | |
318 | 344 | | |
| |||
322 | 348 | | |
323 | 349 | | |
324 | 350 | | |
325 | | - | |
| 351 | + | |
326 | 352 | | |
327 | 353 | | |
328 | | - | |
| 354 | + | |
329 | 355 | | |
330 | 356 | | |
331 | 357 | | |
| |||
336 | 362 | | |
337 | 363 | | |
338 | 364 | | |
339 | | - | |
340 | | - | |
| 365 | + | |
| 366 | + | |
341 | 367 | | |
342 | 368 | | |
343 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
344 | 374 | | |
345 | 375 | | |
346 | | - | |
| 376 | + | |
347 | 377 | | |
348 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
349 | 389 | | |
350 | 390 | | |
351 | 391 | | |
| |||
0 commit comments