Skip to content

Commit 06bdb28

Browse files
agu-zmaxbrunsfeld
andauthored
zeta cli: Add convert-example command (#41608)
Adds a `convert-example` subcommand to the zeta cli that converts eval examples from/to `json`, `toml`, and `md` formats. Release Notes: - N/A --------- Co-authored-by: Max Brunsfeld <[email protected]>
1 parent d6b58bb commit 06bdb28

File tree

6 files changed

+378
-2
lines changed

6 files changed

+378
-2
lines changed

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cloud_zeta2_prompt/src/cloud_zeta2_prompt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ pub fn write_codeblock<'a>(
212212
include_line_numbers: bool,
213213
output: &'a mut String,
214214
) {
215-
writeln!(output, "`````path={}", path.display()).unwrap();
215+
writeln!(output, "`````{}", path.display()).unwrap();
216216
write_excerpts(
217217
excerpts,
218218
sorted_insertions,

crates/zeta2/src/related_excerpts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const SEARCH_PROMPT: &str = indoc! {r#"
6464
6565
## Current cursor context
6666
67-
`````path={current_file_path}
67+
`````{current_file_path}
6868
{cursor_excerpt}
6969
`````
7070

crates/zeta_cli/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ paths.workspace = true
3939
polars = { version = "0.51", features = ["lazy", "dtype-struct", "parquet"] }
4040
project.workspace = true
4141
prompt_store.workspace = true
42+
pulldown-cmark.workspace = true
4243
release_channel.workspace = true
4344
reqwest_client.workspace = true
45+
toml.workspace = true
4446
serde.workspace = true
4547
serde_json.workspace = true
4648
settings.workspace = true

0 commit comments

Comments
 (0)