Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
afcb4f5
ci: run go vet through a script that skips Speakeasy's const fields
Bradenream Nov 29, 2026
c1f98f8
build: add an overlay that keeps optional literal flags optional
Bradenream Nov 29, 2026
d23d09c
fix(workflow): send atStart only when it is asked for
Bradenream Nov 29, 2026
0bebc7f
style: use Voiceflow blue as the accent color
Bradenream Nov 29, 2026
91befad
fix(output): print a human-mode error once
Bradenream Nov 29, 2026
2642d05
feat(ui): add the terminal design spec and the ui package
Bradenream Nov 29, 2026
104b9ab
feat(output): decide per stream whether to style output
Bradenream Nov 29, 2026
41d29e3
feat(prompt): add an inline line editor with command completion
Bradenream Nov 29, 2026
14a5324
docs: describe vf and each command group in plain words
Bradenream Nov 29, 2026
ddaf5fa
feat: open a home banner and prompt on bare vf
Bradenream Nov 29, 2026
486daa2
feat(auth): show login, signup, logout and whoami as status lines
Bradenream Nov 29, 2026
988e7a8
fix(prompt): take the selected command on Enter after a group
Bradenream Nov 29, 2026
8178696
feat(prompt): show short help inside the home prompt
Bradenream Nov 29, 2026
7d3764f
fix(prompt): keep the sign-in state after a line that skips setup
Bradenream Nov 29, 2026
6c81d0b
feat(ui): show a spinner while an API call runs
Bradenream Nov 29, 2026
04c2fa5
feat(prompt): keep history across sessions and search it with ctrl-r
Bradenream Nov 29, 2026
35f0b4a
feat(prompt): match abbreviations in the menu
Bradenream Nov 29, 2026
c0913fd
feat(prompt): fold long output, show the rest with ctrl-o
Bradenream Nov 29, 2026
ab7b734
feat(docs): give vf docs the spinner and folding
Bradenream Nov 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,12 @@ jobs:
- name: Build
run: go build ./...

# go vet ./..., except the finding Speakeasy produces on purpose for each
# OpenAPI const property (an unexported field with a json tag). Bare
# go vet has failed on every master run since 2026-10-06, when the spec
# gained its first const properties. See scripts/vet.sh.
- name: Vet
run: go vet ./...
run: scripts/vet.sh

- name: Unit tests
run: go test ./...
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ cli:
interactiveAuth: true
interactiveMode: true
interactiveTheme:
accentColor: '#38BDF8'
accentColor: '#397DFF'
dimmedColor: '#64748B'
errorColor: '#F87171'
subtleColor: '#475569'
Expand Down
20 changes: 0 additions & 20 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26385,10 +26385,6 @@ components:
overridden:
description: Present when this link does not run, because the step is not the last of its block.
type: boolean
enum:
- true
x-enumNames:
- "TRUE"
effectiveTo:
description: 'With overridden: the step that runs instead.'
type: string
Expand Down Expand Up @@ -28858,10 +28854,6 @@ components:
atStart:
description: Insert as the first step of the block. Send this or afterStepID.
type: boolean
enum:
- true
x-enumNames:
- "TRUE"
step:
$ref: '#/components/schemas/StableWorkflowStepInput'
expectedSteps:
Expand Down Expand Up @@ -30491,10 +30483,6 @@ components:
atStart:
description: Add them before every other action on this exit.
type: boolean
enum:
- true
x-enumNames:
- "TRUE"
expectedActions:
maxItems: 20
type: array
Expand Down Expand Up @@ -42068,10 +42056,6 @@ components:
incomplete:
description: 'Present when the search did not read everything: it stopped at its time limit, or a regular expression read only the first 1,000 characters of a longer line. The counts cover only what it read.'
type: boolean
enum:
- true
x-enumNames:
- "TRUE"
notSearched:
type: array
items:
Expand Down Expand Up @@ -42423,10 +42407,6 @@ components:
literalText:
description: The pattern ran as plain text; `note` says why.
type: boolean
enum:
- true
x-enumNames:
- "TRUE"
hits:
type: array
items:
Expand Down
42 changes: 42 additions & 0 deletions .speakeasy/overlays/optional-literal-flags.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
overlay: 1.0.0
info:
title: Optional literal flags as plain optional booleans
version: 1.0.0
# The realtime API (voiceflow/creator-app, apps/realtime) declares these five
# properties as zod `z.literal(true).optional()`: absent, or true. That reaches
# the spec as `type: boolean` with a one-value `enum: [true]`, and Speakeasy
# generates a one-value enum as a const field, which its JSON code always
# encodes and never decodes. So the CLI sent `"atStart": true` on every
# insert-step and add-actions request (the server rejects atStart together
# with afterStepID, so inserting after a step always failed), and every
# decoded response reported overridden, incomplete and literalText as true.
#
# Dropping the one-value enum leaves each one a plain optional boolean, which
# keeps "absent" distinct from "true" in both directions. The descriptions
# still come from the API. Remove this overlay once the API spec stops
# emitting these as one-value enums.
#
# Left alone on purpose: StableFunctionCheckResponseUnion.checked (true or
# false picks the union variant) and StableWorkflowStepReadOnlyContent.readOnly
# (required, always true). Those really are constants.
actions:
- target: $.components.schemas.StableWorkflowStepInsertRequest.properties.atStart.enum
remove: true
- target: $.components.schemas.StableWorkflowStepInsertRequest.properties.atStart['x-enumNames']
remove: true
- target: $.components.schemas.StableWorkflowPortActionsAddRequest.properties.atStart.enum
remove: true
- target: $.components.schemas.StableWorkflowPortActionsAddRequest.properties.atStart['x-enumNames']
remove: true
- target: $.components.schemas.StableWorkflowLink.properties.overridden.enum
remove: true
- target: $.components.schemas.StableWorkflowLink.properties.overridden['x-enumNames']
remove: true
- target: $.components.schemas.StableEnvironmentSearchTextReadResponse.properties.incomplete.enum
remove: true
- target: $.components.schemas.StableEnvironmentSearchTextReadResponse.properties.incomplete['x-enumNames']
remove: true
- target: $.components.schemas.StableTranscriptGrepResponse.properties.literalText.enum
remove: true
- target: $.components.schemas.StableTranscriptGrepResponse.properties.literalText['x-enumNames']
remove: true
2 changes: 2 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ sources:
Voiceflow:
inputs:
- location: ./openapi.stable.json
overlays:
- location: ./.speakeasy/overlays/optional-literal-flags.yaml
transformations:
- filterOperations:
operations: StableEnvironmentController_export
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The Voiceflow CLI. Build, test, and operate AI agents on [Voiceflow](https://www
<!-- Start Summary [summary] -->
## Summary

Realtime: Realtime gateway API service
Build, test, and operate Voiceflow AI agents from your terminal, your CI, or your coding agent.
<!-- End Summary [summary] -->

<!-- Start Table of Contents [toc] -->
Expand Down
40 changes: 20 additions & 20 deletions docs/vf.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## vf

Realtime: Realtime gateway API service
Build, test, and operate Voiceflow AI agents from your terminal

### Synopsis

Realtime: Realtime gateway API service
vf is the Voiceflow CLI. Build, test, and operate AI agents on Voiceflow from your terminal, your CI, or your coding agent.

```
vf [flags]
Expand All @@ -21,7 +21,7 @@ vf [flags]
-h, --help help for vf
--include-headers Include HTTP response headers in the output
-q, --jq string Filter and transform output using a jq expression (e.g., '.name', '.items[] | .id')
--no-interactive Disable all interactive features (auto-prompting, explorer auto-launch, TUI forms)
--no-interactive Disable all interactive features (auto-prompting, the home prompt, TUI forms)
-o, --output-format string Specify the output format. Options: pretty, json, yaml, table, toon. (default "pretty")
--server-url string Override the default server URL
--timeout string HTTP request timeout (e.g., 30s, 5m, 100ms)
Expand All @@ -31,25 +31,25 @@ vf [flags]

### SEE ALSO

* [vf agent](vf_agent.md) - Operations for agent
* [vf analytics](vf_analytics.md) - Operations for analytics
* [vf api-tool](vf_api-tool.md) - Operations for api-tool
* [vf agent](vf_agent.md) - Configure the agent's instructions, prompt and voice
* [vf analytics](vf_analytics.md) - See how agents are used: calls, tokens, tools
* [vf api-tool](vf_api-tool.md) - Manage API tools: HTTP requests the agent can make
* [vf auth](vf_auth.md) - Manage authentication credentials
* [vf configure](vf_configure.md) - Configure authentication credentials and preferences
* [vf conversation](vf_conversation.md) - Operations for conversation
* [vf document](vf_document.md) - Operations for document
* [vf environment](vf_environment.md) - Operations for environment
* [vf evaluation](vf_evaluation.md) - Operations for evaluation
* [vf conversation](vf_conversation.md) - Talk to an agent: send messages, run scripts
* [vf document](vf_document.md) - Manage knowledge base documents and sitemaps
* [vf environment](vf_environment.md) - Publish, clone, merge and compare environments
* [vf evaluation](vf_evaluation.md) - Create and run evaluations that score transcripts
* [vf explore](vf_explore.md) - Interactively browse and run commands
* [vf function](vf_function.md) - Operations for function
* [vf knowledge-base](vf_knowledge-base.md) - Operations for knowledge-base
* [vf mcp-server](vf_mcp-server.md) - Operations for mcp-server
* [vf mcp-tool](vf_mcp-tool.md) - Operations for mcp-tool
* [vf playbook](vf_playbook.md) - Operations for playbook
* [vf project](vf_project.md) - Operations for project
* [vf tool](vf_tool.md) - Operations for tool
* [vf transcript](vf_transcript.md) - Operations for transcript
* [vf variable](vf_variable.md) - Operations for variable
* [vf function](vf_function.md) - Write, run and manage functions
* [vf knowledge-base](vf_knowledge-base.md) - Query the knowledge base
* [vf mcp-server](vf_mcp-server.md) - Manage the MCP servers an agent connects to
* [vf mcp-tool](vf_mcp-tool.md) - List, inspect and run MCP server tools
* [vf playbook](vf_playbook.md) - Build playbooks: instructions, tools and exit paths
* [vf project](vf_project.md) - Create, list and manage projects
* [vf tool](vf_tool.md) - Manage the tools an agent and its playbooks use
* [vf transcript](vf_transcript.md) - Search and read conversation transcripts
* [vf variable](vf_variable.md) - Manage the variables an agent reads and sets
* [vf version](vf_version.md) - Print the CLI version
* [vf whoami](vf_whoami.md) - Display current authentication configuration
* [vf workspace](vf_workspace.md) - Operations for workspace
* [vf workspace](vf_workspace.md) - Create, list and manage workspaces
8 changes: 4 additions & 4 deletions docs/vf_agent.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## vf agent

Operations for agent
Configure the agent's instructions, prompt and voice

### Synopsis

Operations for agent
Configure the agent's instructions, prompt and voice

```
vf agent [flags]
Expand All @@ -26,7 +26,7 @@ vf agent [flags]
-H, --header stringArray Set a custom HTTP request header (format: "Key: Value"). Can be specified multiple times.
--include-headers Include HTTP response headers in the output
-q, --jq string Filter and transform output using a jq expression (e.g., '.name', '.items[] | .id')
--no-interactive Disable all interactive features (auto-prompting, explorer auto-launch, TUI forms)
--no-interactive Disable all interactive features (auto-prompting, the home prompt, TUI forms)
-o, --output-format string Specify the output format. Options: pretty, json, yaml, table, toon. (default "pretty")
--server-url string Override the default server URL
--timeout string HTTP request timeout (e.g., 30s, 5m, 100ms)
Expand All @@ -36,6 +36,6 @@ vf agent [flags]

### SEE ALSO

* [vf](vf.md) - Realtime: Realtime gateway API service
* [vf](vf.md) - Build, test, and operate Voiceflow AI agents from your terminal
* [vf agent get](vf_agent_get.md) - Get agent
* [vf agent update](vf_agent_update.md) - Update agent
4 changes: 2 additions & 2 deletions docs/vf_agent_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ vf agent get [flags]
-H, --header stringArray Set a custom HTTP request header (format: "Key: Value"). Can be specified multiple times.
--include-headers Include HTTP response headers in the output
-q, --jq string Filter and transform output using a jq expression (e.g., '.name', '.items[] | .id')
--no-interactive Disable all interactive features (auto-prompting, explorer auto-launch, TUI forms)
--no-interactive Disable all interactive features (auto-prompting, the home prompt, TUI forms)
-o, --output-format string Specify the output format. Options: pretty, json, yaml, table, toon. (default "pretty")
--server-url string Override the default server URL
--timeout string HTTP request timeout (e.g., 30s, 5m, 100ms)
Expand All @@ -44,4 +44,4 @@ vf agent get [flags]

### SEE ALSO

* [vf agent](vf_agent.md) - Operations for agent
* [vf agent](vf_agent.md) - Configure the agent's instructions, prompt and voice
4 changes: 2 additions & 2 deletions docs/vf_agent_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ vf agent update [flags]
-H, --header stringArray Set a custom HTTP request header (format: "Key: Value"). Can be specified multiple times.
--include-headers Include HTTP response headers in the output
-q, --jq string Filter and transform output using a jq expression (e.g., '.name', '.items[] | .id')
--no-interactive Disable all interactive features (auto-prompting, explorer auto-launch, TUI forms)
--no-interactive Disable all interactive features (auto-prompting, the home prompt, TUI forms)
-o, --output-format string Specify the output format. Options: pretty, json, yaml, table, toon. (default "pretty")
--server-url string Override the default server URL
--timeout string HTTP request timeout (e.g., 30s, 5m, 100ms)
Expand All @@ -61,4 +61,4 @@ vf agent update [flags]

### SEE ALSO

* [vf agent](vf_agent.md) - Operations for agent
* [vf agent](vf_agent.md) - Configure the agent's instructions, prompt and voice
10 changes: 5 additions & 5 deletions docs/vf_analytics.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## vf analytics

Operations for analytics
See how agents are used: calls, tokens, tools

### Synopsis

Operations for analytics
See how agents are used: calls, tokens, tools

```
vf analytics [flags]
Expand All @@ -26,7 +26,7 @@ vf analytics [flags]
-H, --header stringArray Set a custom HTTP request header (format: "Key: Value"). Can be specified multiple times.
--include-headers Include HTTP response headers in the output
-q, --jq string Filter and transform output using a jq expression (e.g., '.name', '.items[] | .id')
--no-interactive Disable all interactive features (auto-prompting, explorer auto-launch, TUI forms)
--no-interactive Disable all interactive features (auto-prompting, the home prompt, TUI forms)
-o, --output-format string Specify the output format. Options: pretty, json, yaml, table, toon. (default "pretty")
--server-url string Override the default server URL
--timeout string HTTP request timeout (e.g., 30s, 5m, 100ms)
Expand All @@ -36,5 +36,5 @@ vf analytics [flags]

### SEE ALSO

* [vf](vf.md) - Realtime: Realtime gateway API service
* [vf analytics query](vf_analytics_query.md) - Operations for query
* [vf](vf.md) - Build, test, and operate Voiceflow AI agents from your terminal
* [vf analytics query](vf_analytics_query.md) - Query calls, token use, and tool and document use
8 changes: 4 additions & 4 deletions docs/vf_analytics_query.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## vf analytics query

Operations for query
Query calls, token use, and tool and document use

### Synopsis

Operations for query
Query calls, token use, and tool and document use

```
vf analytics query [flags]
Expand All @@ -26,7 +26,7 @@ vf analytics query [flags]
-H, --header stringArray Set a custom HTTP request header (format: "Key: Value"). Can be specified multiple times.
--include-headers Include HTTP response headers in the output
-q, --jq string Filter and transform output using a jq expression (e.g., '.name', '.items[] | .id')
--no-interactive Disable all interactive features (auto-prompting, explorer auto-launch, TUI forms)
--no-interactive Disable all interactive features (auto-prompting, the home prompt, TUI forms)
-o, --output-format string Specify the output format. Options: pretty, json, yaml, table, toon. (default "pretty")
--server-url string Override the default server URL
--timeout string HTTP request timeout (e.g., 30s, 5m, 100ms)
Expand All @@ -36,7 +36,7 @@ vf analytics query [flags]

### SEE ALSO

* [vf analytics](vf_analytics.md) - Operations for analytics
* [vf analytics](vf_analytics.md) - See how agents are used: calls, tokens, tools
* [vf analytics query api-tool-usage](vf_analytics_query_api-tool-usage.md) - Query API tool usage
* [vf analytics query call-count](vf_analytics_query_call-count.md) - Query call count
* [vf analytics query call-duration](vf_analytics_query_call-duration.md) - Query call duration
Expand Down
4 changes: 2 additions & 2 deletions docs/vf_analytics_query_api-tool-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ vf analytics query api-tool-usage [flags]
-H, --header stringArray Set a custom HTTP request header (format: "Key: Value"). Can be specified multiple times.
--include-headers Include HTTP response headers in the output
-q, --jq string Filter and transform output using a jq expression (e.g., '.name', '.items[] | .id')
--no-interactive Disable all interactive features (auto-prompting, explorer auto-launch, TUI forms)
--no-interactive Disable all interactive features (auto-prompting, the home prompt, TUI forms)
-o, --output-format string Specify the output format. Options: pretty, json, yaml, table, toon. (default "pretty")
--server-url string Override the default server URL
--timeout string HTTP request timeout (e.g., 30s, 5m, 100ms)
Expand All @@ -53,4 +53,4 @@ vf analytics query api-tool-usage [flags]

### SEE ALSO

* [vf analytics query](vf_analytics_query.md) - Operations for query
* [vf analytics query](vf_analytics_query.md) - Query calls, token use, and tool and document use
4 changes: 2 additions & 2 deletions docs/vf_analytics_query_call-count.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ vf analytics query call-count [flags]
-H, --header stringArray Set a custom HTTP request header (format: "Key: Value"). Can be specified multiple times.
--include-headers Include HTTP response headers in the output
-q, --jq string Filter and transform output using a jq expression (e.g., '.name', '.items[] | .id')
--no-interactive Disable all interactive features (auto-prompting, explorer auto-launch, TUI forms)
--no-interactive Disable all interactive features (auto-prompting, the home prompt, TUI forms)
-o, --output-format string Specify the output format. Options: pretty, json, yaml, table, toon. (default "pretty")
--server-url string Override the default server URL
--timeout string HTTP request timeout (e.g., 30s, 5m, 100ms)
Expand All @@ -50,4 +50,4 @@ vf analytics query call-count [flags]

### SEE ALSO

* [vf analytics query](vf_analytics_query.md) - Operations for query
* [vf analytics query](vf_analytics_query.md) - Query calls, token use, and tool and document use
4 changes: 2 additions & 2 deletions docs/vf_analytics_query_call-duration.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ vf analytics query call-duration [flags]
-H, --header stringArray Set a custom HTTP request header (format: "Key: Value"). Can be specified multiple times.
--include-headers Include HTTP response headers in the output
-q, --jq string Filter and transform output using a jq expression (e.g., '.name', '.items[] | .id')
--no-interactive Disable all interactive features (auto-prompting, explorer auto-launch, TUI forms)
--no-interactive Disable all interactive features (auto-prompting, the home prompt, TUI forms)
-o, --output-format string Specify the output format. Options: pretty, json, yaml, table, toon. (default "pretty")
--server-url string Override the default server URL
--timeout string HTTP request timeout (e.g., 30s, 5m, 100ms)
Expand All @@ -50,4 +50,4 @@ vf analytics query call-duration [flags]

### SEE ALSO

* [vf analytics query](vf_analytics_query.md) - Operations for query
* [vf analytics query](vf_analytics_query.md) - Query calls, token use, and tool and document use
4 changes: 2 additions & 2 deletions docs/vf_analytics_query_category-token-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ vf analytics query category-token-usage [flags]
-H, --header stringArray Set a custom HTTP request header (format: "Key: Value"). Can be specified multiple times.
--include-headers Include HTTP response headers in the output
-q, --jq string Filter and transform output using a jq expression (e.g., '.name', '.items[] | .id')
--no-interactive Disable all interactive features (auto-prompting, explorer auto-launch, TUI forms)
--no-interactive Disable all interactive features (auto-prompting, the home prompt, TUI forms)
-o, --output-format string Specify the output format. Options: pretty, json, yaml, table, toon. (default "pretty")
--server-url string Override the default server URL
--timeout string HTTP request timeout (e.g., 30s, 5m, 100ms)
Expand All @@ -51,4 +51,4 @@ vf analytics query category-token-usage [flags]

### SEE ALSO

* [vf analytics query](vf_analytics_query.md) - Operations for query
* [vf analytics query](vf_analytics_query.md) - Query calls, token use, and tool and document use
Loading
Loading