blocks-cli 0.1.34__tar.gz → 0.1.35__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.34 → blocks-cli-0.1.35}/PKG-INFO +1 -1
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/commands/push.py +3 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/config/auth.py +1 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/setup.py +1 -1
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/LICENSE +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/MANIFEST.in +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/README.md +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/__init__.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/api.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/builds.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/bundles.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/commands/__base__.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/commands/__init__.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/commands/configure.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/commands/create.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/commands/init.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/commands/test.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/config/__init__.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/config/config.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/console.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/fs.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/package.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli/registration.py +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/blocks_cli.egg-info/SOURCES.txt +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/requirements.txt +0 -0
- {blocks-cli-0.1.34 → blocks-cli-0.1.35}/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.35
|
|
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
|
|
@@ -130,12 +130,15 @@ def push(file: Path = typer.Argument(..., help="Name of blocks file to push.")):
|
|
|
130
130
|
|
|
131
131
|
function_name = automation.get("function_name")
|
|
132
132
|
function_source_code = automation.get("function_source_code")
|
|
133
|
+
function_hash = automation.get("function_hash")
|
|
133
134
|
config_schema = automation.get("config_class").model_json_schema() if automation.get("config_class") else None
|
|
134
135
|
trigger_alias = automation.get("trigger_alias")
|
|
135
136
|
|
|
136
137
|
# Extract known fields
|
|
137
138
|
automation_config = {
|
|
138
139
|
"name": automation_name,
|
|
140
|
+
"function_hash": function_hash,
|
|
141
|
+
"function_source_code": function_source_code,
|
|
139
142
|
"import_path": f"{file.name}:{function_name}",
|
|
140
143
|
"runner": runner,
|
|
141
144
|
"runtime": runtime,
|
|
@@ -10,6 +10,7 @@ class AuthConfig(BaseModel):
|
|
|
10
10
|
wid: Optional[str] = ""
|
|
11
11
|
# Corresponds to env variable BLOCKS_AUTH__API_KEY
|
|
12
12
|
api_key: Optional[str] = ""
|
|
13
|
+
job_session_token: Optional[str] = ""
|
|
13
14
|
|
|
14
15
|
def save_api_key(self, api_key: str) -> None:
|
|
15
16
|
"""Save the API key to the config file."""
|
|
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
|