From cc36aa16b243748d9b462204146c03d82182b6ba Mon Sep 17 00:00:00 2001 From: arjuuuuunnnnn Date: Sat, 24 May 2025 11:06:43 +0530 Subject: [PATCH 1/7] fix: ascii load from prompts-dev --- zor/prompts/ascii.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 zor/prompts/ascii.txt diff --git a/zor/prompts/ascii.txt b/zor/prompts/ascii.txt new file mode 100644 index 0000000..2d12eb3 --- /dev/null +++ b/zor/prompts/ascii.txt @@ -0,0 +1,6 @@ +███████╗ ██████╗ ██████╗ +╚══███╔╝██╔═══██╗██╔══██╗ + ███╔╝ ██║ ██║██████╔╝ + ███╔╝ ██║ ██║██╔══██╗ +███████╗╚██████╔╝██║ ██║ +╚══════╝ ╚═════╝ ╚═╝ ╚═╝ From 736eff8bb6496a79c3ef050ad2b007b1cd7f7d27 Mon Sep 17 00:00:00 2001 From: arjuuuuunnnnn Date: Sat, 24 May 2025 11:07:09 +0530 Subject: [PATCH 2/7] fix: ascii load from prompts-dev --- zor/prompts/ascii.txt | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 zor/prompts/ascii.txt diff --git a/zor/prompts/ascii.txt b/zor/prompts/ascii.txt deleted file mode 100644 index 2d12eb3..0000000 --- a/zor/prompts/ascii.txt +++ /dev/null @@ -1,6 +0,0 @@ -███████╗ ██████╗ ██████╗ -╚══███╔╝██╔═══██╗██╔══██╗ - ███╔╝ ██║ ██║██████╔╝ - ███╔╝ ██║ ██║██╔══██╗ -███████╗╚██████╔╝██║ ██║ -╚══════╝ ╚═════╝ ╚═╝ ╚═╝ From 4b05f597170464f05d1bb499c7b3a8cafea4a108 Mon Sep 17 00:00:00 2001 From: arjuuuuunnnnn Date: Sat, 24 May 2025 11:15:01 +0530 Subject: [PATCH 3/7] feat: support to laod prompts from dir --- CHANGELOG.md | 6 ++++++ pyproject.toml | 2 +- zor/main.py | 15 +++++++++++---- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7746277..3e51903 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,3 +43,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Bug fix - ascii loading from prompts dir error fix + +## [0.0.5] - 2025-05-24 + +### Added +- Added support for loading prompts from a directory + diff --git a/pyproject.toml b/pyproject.toml index b20f12a..372a3aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "zor" -version = "0.0.4" +version = "0.0.5" description = "An Open-Source Claude Code like tool" authors = [{ name = "Hemanth", email = "arjunbanur27@gmail.com" }] readme = "README.md" diff --git a/zor/main.py b/zor/main.py index 7685225..194257a 100644 --- a/zor/main.py +++ b/zor/main.py @@ -446,10 +446,17 @@ def setup(): """Configure your Gemini API key""" global api_key_valid - zor_ascii = load_prompt("zor_ascii") - console = Console() - console.print(zor_ascii, style="bold green") - # typer.echo(zor_ascii) + zor_ascii = """ +███████╗ ██████╗ ██████╗ +╚══███╔╝██╔═══██╗██╔══██╗ + ███╔╝ ██║ ██║██████╔╝ + ███╔╝ ██║ ██║██╔══██╗ +███████╗╚██████╔╝██║ ██║ +╚══════╝ ╚═════╝ ╚═╝ ╚═╝ +""" + # console = Console() + #console.print(zor_ascii, style="bold green") + typer.echo(zor_ascii) typer.echo("\n") config = load_config() From 50a132608b2ec1bf30717ddbcd9aa668f750a299 Mon Sep 17 00:00:00 2001 From: arjuuuuunnnnn Date: Tue, 3 Jun 2025 09:44:51 +0530 Subject: [PATCH 4/7] small fix in readme2 --- hello.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 hello.py diff --git a/hello.py b/hello.py new file mode 100644 index 0000000..0a79ab1 --- /dev/null +++ b/hello.py @@ -0,0 +1,3 @@ +from pathlib import Path + +print(Path(__file__).parent) From f32aaffae781f292b243f1fa25814e967f6045de Mon Sep 17 00:00:00 2001 From: arjuuuuunnnnn Date: Sun, 8 Jun 2025 14:56:16 +0530 Subject: [PATCH 5/7] rm unwanted artifacts --- hello.py | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 hello.py diff --git a/hello.py b/hello.py deleted file mode 100644 index 0a79ab1..0000000 --- a/hello.py +++ /dev/null @@ -1,3 +0,0 @@ -from pathlib import Path - -print(Path(__file__).parent) From 01dc1cc9c2956a5b9205336fe703950f0394678f Mon Sep 17 00:00:00 2001 From: Chandana-1144 Date: Thu, 12 Jun 2025 00:14:59 +0530 Subject: [PATCH 6/7] Fix: Added setuptools config in pyproject.toml for proper packaging --- MANIFEST.in | 1 + pyproject.toml | 1 + 2 files changed, 2 insertions(+) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..a5c9266 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +recursive-include zor/prompts *.txt diff --git a/pyproject.toml b/pyproject.toml index 372a3aa..1a79d59 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,3 +40,4 @@ zor = "zor.main:app" [tool.setuptools] packages = ["zor"] +include-package-data = true From 90fb6c0bae3fbbb7ea93598e4ed78c4b8bcdc1c4 Mon Sep 17 00:00:00 2001 From: arjuuuuunnnnn Date: Thu, 12 Jun 2025 10:18:17 +0530 Subject: [PATCH 7/7] merge(#52): fix load prompts from its dir in package --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1a79d59..33128f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "zor" -version = "0.0.5" +version = "0.0.6" description = "An Open-Source Claude Code like tool" authors = [{ name = "Hemanth", email = "arjunbanur27@gmail.com" }] readme = "README.md"