blocks-cli 0.1.32__tar.gz → 0.1.33__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/PKG-INFO +1 -1
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/bundles.py +9 -7
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/commands/push.py +1 -1
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/setup.py +1 -1
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/LICENSE +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/MANIFEST.in +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/README.md +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/__init__.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/api.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/builds.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/commands/__base__.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/commands/__init__.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/commands/configure.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/commands/create.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/commands/init.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/commands/test.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/config/__init__.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/config/auth.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/config/config.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/console.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/fs.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/package.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/registration.py +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli.egg-info/SOURCES.txt +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/requirements.txt +0 -0
- {blocks-cli-0.1.32 → blocks-cli-0.1.33}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: blocks-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.33
|
|
4
4
|
Summary: CLI tool for Blocks, a platform for writing custom AI-enabled codebase automations in Python. Leverage a full codebase-aware API. Automatically trigger automations from Github, Slack, and other providers.
|
|
5
5
|
Home-page: https://github.com/BlocksOrg/sdk
|
|
6
6
|
Author: BlocksOrg
|
|
@@ -16,15 +16,17 @@ def get_bundle_upload_url():
|
|
|
16
16
|
|
|
17
17
|
def upload_bundle_zip(bundle_upload_url: str, base_path: Path, zip_file_path: Optional[Path] = None, delete_after_upload: bool = True):
|
|
18
18
|
try:
|
|
19
|
-
|
|
19
|
+
random_file_name = str(uuid.uuid4())
|
|
20
|
+
zip_filename_only = f"{random_file_name}.zip"
|
|
21
|
+
|
|
20
22
|
if zip_file_path:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
# Use provided directory path
|
|
24
|
+
zip_directory = zip_file_path
|
|
25
|
+
zip_directory.mkdir(parents=True, exist_ok=True)
|
|
26
|
+
zip_filename = str(zip_directory / zip_filename_only)
|
|
24
27
|
else:
|
|
25
|
-
#
|
|
26
|
-
|
|
27
|
-
zip_filename = f"{random_file_name}.zip"
|
|
28
|
+
# Use current directory
|
|
29
|
+
zip_filename = zip_filename_only
|
|
28
30
|
|
|
29
31
|
if os.path.exists(zip_filename):
|
|
30
32
|
os.remove(zip_filename)
|
|
@@ -75,7 +75,7 @@ def push(file: Path = typer.Argument(..., help="Name of blocks file to push.")):
|
|
|
75
75
|
init_progress.update(
|
|
76
76
|
init_task, total=1, description="Bundle uploaded successfully"
|
|
77
77
|
)
|
|
78
|
-
upload_bundle_zip(bundle_upload_url, cwd)
|
|
78
|
+
upload_bundle_zip(bundle_upload_url, cwd, cwd.parent)
|
|
79
79
|
init_progress.update(
|
|
80
80
|
init_task, total=1, description="Bundle uploaded successfully"
|
|
81
81
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|