Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.
Python aiburrchatbot-frameworkdagsgenerative-aigraphshacktoberfestllmopsllmsmlopspersistent-data-structurestate-machinestate-managementvisibility
Ensures demo projects are labeled in the UI
elijahbenizzy766f4f0bb82c
diff --git a/burr/cli/__main__.py b/burr/cli/__main__.pyindex 63718b76..ac33b0a8 100644--- a/burr/cli/__main__.py+++ b/burr/cli/__main__.py@@ -24,6 +24,8 @@ except ImportError as e:"start",)+IS_WINDOWS = os.name == "nt"+# TODO -- add this as a general callback to the CLIdef _telemetry_if_enabled(event: str):@@ -114,6 +116,12 @@ def _run_server(port: int, dev_mode: bool, no_open: bool, no_copy_demo_data: boodemo_data_path = files("burr").joinpath("tracking/server/demo_data")for top_level in os.listdir(demo_data_path):if not os.path.exists(f"{base_dir}/{top_level}"):+ # this is purely for legacy -- we used to name with `demo_`+ if not IS_WINDOWS and os.path.exists(+ f"{base_dir}/{top_level.replace('demo_', 'demo:')}"+ ):+ # in this case we don't need to copy it over, it already exists in the right place...+ continuelogger.info(f"Copying {top_level} over...")shutil.copytree(f"{demo_data_path}/{top_level}", f"{base_dir}/{top_level}")@@ -293,6 +301,5 @@ cli.add_command(test_case)for key, command in cli.commands.items():globals()[f'cli_{key.replace("-", "_")}'] = command-if __name__ == "__main__":cli()diff --git a/telemetry/ui/src/components/routes/ProjectList.tsx b/telemetry/ui/src/components/routes/ProjectList.tsxindex 0bc19214..c430377e 100644--- a/telemetry/ui/src/components/routes/ProjectList.tsx+++ b/telemetry/ui/src/components/routes/ProjectList.tsx@@ -33,11 +33,12 @@ export const ProjectListTable = (props: { projects: Project[] }) => {<TableBody>{projectsSorted.map((project) => {let projectName = project.name;- const chipType = projectName.startsWith('demo:')- ? 'demo'- : projectName.startsWith('test:')- ? 'test'- : undefined;+ const chipType =+ projectName.startsWith('demo:') || projectName.startsWith('demo_')+ ? 'demo'+ : projectName.startsWith('test:') || projectName.startsWith('test_')+ ? 'test'+ : undefined;if (chipType) {projectName = projectName.slice(5);}