tinybird 0.0.1.dev288__tar.gz → 0.0.1.dev289__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.
Potentially problematic release.
This version of tinybird might be problematic. Click here for more details.
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/datafile/common.py +0 -10
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/sql_toolset.py +2 -2
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/agent.py +12 -3
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/run_command.py +9 -3
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/utils.py +6 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/local_common.py +2 -1
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/setup.cfg +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/datafile/parse_connection.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/service_datasources.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/check_pypi.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/client.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/config.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/__init__.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/animations.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/banner.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/command_agent.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/compactor.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/explore_agent.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/memory.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/mock_agent.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/models.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/prompts.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/testing_agent.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/__init__.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/analyze.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/append.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/build.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/datafile.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/deploy.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/deploy_check.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/diff_resource.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/execute_query.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/get_endpoint_stats.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/get_openapi_definition.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/mock.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/plan.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/request_endpoint.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/secret.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/test.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/build_common.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/cli.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/deployment_common.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/deprecations.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/dev_server.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/info.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/local.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/login_common.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/mock_common.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/open.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/secret_common.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/sink.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/test_common.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird.egg-info/top_level.txt +0 -0
|
@@ -1877,16 +1877,6 @@ def parse(
|
|
|
1877
1877
|
doc.shared_with += workspaces
|
|
1878
1878
|
total_workspaces += len(workspaces)
|
|
1879
1879
|
|
|
1880
|
-
# Add warning once if any workspaces were found
|
|
1881
|
-
if total_workspaces > 0:
|
|
1882
|
-
warnings.append(
|
|
1883
|
-
DatafileParseWarning(
|
|
1884
|
-
message=(
|
|
1885
|
-
f"{kwargs['cmd'].upper()} is not fully implemented in Forward and will be ignored while this warning is present."
|
|
1886
|
-
)
|
|
1887
|
-
)
|
|
1888
|
-
)
|
|
1889
|
-
|
|
1890
1880
|
# Validate that at least one workspace was provided
|
|
1891
1881
|
if total_workspaces == 0:
|
|
1892
1882
|
raise DatafileSyntaxError(
|
|
@@ -144,7 +144,7 @@ def format_where_for_mutation_command(where_clause: str) -> str:
|
|
|
144
144
|
return f"DELETE WHERE {quoted_condition[1:-1]}"
|
|
145
145
|
|
|
146
146
|
|
|
147
|
-
@lru_cache(maxsize=2**
|
|
147
|
+
@lru_cache(maxsize=2**15)
|
|
148
148
|
def sql_get_used_tables_cached(
|
|
149
149
|
sql: str,
|
|
150
150
|
raising: bool = False,
|
|
@@ -301,7 +301,7 @@ def replacements_to_tuples(replacements: dict) -> dict:
|
|
|
301
301
|
return parsed_replacements
|
|
302
302
|
|
|
303
303
|
|
|
304
|
-
@lru_cache(maxsize=2**
|
|
304
|
+
@lru_cache(maxsize=2**15)
|
|
305
305
|
def replace_tables_chquery_cached(
|
|
306
306
|
sql: str,
|
|
307
307
|
sorted_replacements: Optional[tuple] = None,
|
|
@@ -4,5 +4,5 @@ __description__ = 'Tinybird Command Line Tool'
|
|
|
4
4
|
__url__ = 'https://www.tinybird.co/docs/forward/commands'
|
|
5
5
|
__author__ = 'Tinybird'
|
|
6
6
|
__author_email__ = 'support@tinybird.co'
|
|
7
|
-
__version__ = '0.0.1.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '0.0.1.dev289'
|
|
8
|
+
__revision__ = 'ac20837'
|
|
@@ -50,7 +50,13 @@ from tinybird.tb.modules.agent.tools.get_endpoint_stats import get_endpoint_stat
|
|
|
50
50
|
from tinybird.tb.modules.agent.tools.get_openapi_definition import get_openapi_definition
|
|
51
51
|
from tinybird.tb.modules.agent.tools.plan import complete_plan, plan
|
|
52
52
|
from tinybird.tb.modules.agent.tools.secret import create_or_update_secrets
|
|
53
|
-
from tinybird.tb.modules.agent.utils import
|
|
53
|
+
from tinybird.tb.modules.agent.utils import (
|
|
54
|
+
AgentRunCancelled,
|
|
55
|
+
SubAgentRunCancelled,
|
|
56
|
+
TinybirdAgentContext,
|
|
57
|
+
show_confirmation,
|
|
58
|
+
show_input,
|
|
59
|
+
)
|
|
54
60
|
from tinybird.tb.modules.build_common import process as build_process
|
|
55
61
|
from tinybird.tb.modules.common import (
|
|
56
62
|
_analyze,
|
|
@@ -207,8 +213,11 @@ class TinybirdAgent:
|
|
|
207
213
|
Returns:
|
|
208
214
|
str: The result of the command.
|
|
209
215
|
"""
|
|
210
|
-
|
|
211
|
-
|
|
216
|
+
try:
|
|
217
|
+
result = self.command_agent.run(task, deps=ctx.deps, usage=ctx.usage)
|
|
218
|
+
return f"Result: {result.output}\nDo not repeat in your response the result again, because it is already displayed in the terminal."
|
|
219
|
+
except SubAgentRunCancelled as e:
|
|
220
|
+
return f"User does not want to continue with the proposed solution. Reason: {e}"
|
|
212
221
|
|
|
213
222
|
@self.agent.tool
|
|
214
223
|
def explore_data(ctx: RunContext[TinybirdAgentContext], task: str) -> str:
|
{tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/run_command.py
RENAMED
|
@@ -3,7 +3,13 @@ import subprocess
|
|
|
3
3
|
import click
|
|
4
4
|
from pydantic_ai import RunContext
|
|
5
5
|
|
|
6
|
-
from tinybird.tb.modules.agent.utils import
|
|
6
|
+
from tinybird.tb.modules.agent.utils import (
|
|
7
|
+
AgentRunCancelled,
|
|
8
|
+
SubAgentRunCancelled,
|
|
9
|
+
TinybirdAgentContext,
|
|
10
|
+
show_confirmation,
|
|
11
|
+
show_input,
|
|
12
|
+
)
|
|
7
13
|
from tinybird.tb.modules.feedback_manager import FeedbackManager
|
|
8
14
|
|
|
9
15
|
|
|
@@ -24,7 +30,7 @@ def run_command(ctx: RunContext[TinybirdAgentContext], command: str):
|
|
|
24
30
|
if confirmation == "review":
|
|
25
31
|
feedback = show_input(ctx.deps.workspace_name)
|
|
26
32
|
ctx.deps.thinking_animation.start()
|
|
27
|
-
|
|
33
|
+
raise SubAgentRunCancelled(f"""User did not confirm the command `{command}`. Reason: {feedback}.""")
|
|
28
34
|
|
|
29
35
|
click.echo(FeedbackManager.highlight(message=f"» Running command: {command}"))
|
|
30
36
|
command = command.replace("tb", "tb --no-version-warning")
|
|
@@ -32,7 +38,7 @@ def run_command(ctx: RunContext[TinybirdAgentContext], command: str):
|
|
|
32
38
|
click.echo(result.stdout)
|
|
33
39
|
ctx.deps.thinking_animation.start()
|
|
34
40
|
return result.stdout
|
|
35
|
-
except AgentRunCancelled as e:
|
|
41
|
+
except (AgentRunCancelled, SubAgentRunCancelled) as e:
|
|
36
42
|
raise e
|
|
37
43
|
except Exception as e:
|
|
38
44
|
click.echo(FeedbackManager.error(message=f"Error running command: {e}"))
|
|
@@ -721,6 +721,12 @@ class AgentRunCancelled(Exception):
|
|
|
721
721
|
pass
|
|
722
722
|
|
|
723
723
|
|
|
724
|
+
class SubAgentRunCancelled(Exception):
|
|
725
|
+
"""Exception raised when sub-agent cancels an operation"""
|
|
726
|
+
|
|
727
|
+
pass
|
|
728
|
+
|
|
729
|
+
|
|
724
730
|
def show_confirmation(title: str, skip_confirmation: bool = False, show_review: bool = True) -> ConfirmationResult:
|
|
725
731
|
if skip_confirmation:
|
|
726
732
|
return "yes"
|
|
@@ -24,6 +24,7 @@ from tinybird.tb.modules.telemetry import add_telemetry_event
|
|
|
24
24
|
TB_IMAGE_NAME = "tinybirdco/tinybird-local:latest"
|
|
25
25
|
TB_CONTAINER_NAME = "tinybird-local"
|
|
26
26
|
TB_LOCAL_PORT = int(os.getenv("TB_LOCAL_PORT", 7181))
|
|
27
|
+
TB_LOCAL_CLICKHOUSE_INTERFACE_PORT = int(os.getenv("TB_LOCAL_CLICKHOUSE_INTERFACE_PORT", 7182))
|
|
27
28
|
TB_LOCAL_HOST = re.sub(r"^https?://", "", os.getenv("TB_LOCAL_HOST", "localhost"))
|
|
28
29
|
TB_LOCAL_ADDRESS = f"http://{TB_LOCAL_HOST}:{TB_LOCAL_PORT}"
|
|
29
30
|
TB_LOCAL_DEFAULT_WORKSPACE_NAME = "Tinybird_Local_Testing"
|
|
@@ -269,7 +270,7 @@ def start_tinybird_local(
|
|
|
269
270
|
TB_IMAGE_NAME,
|
|
270
271
|
name=TB_CONTAINER_NAME,
|
|
271
272
|
detach=True,
|
|
272
|
-
ports={"7181/tcp": TB_LOCAL_PORT},
|
|
273
|
+
ports={"7181/tcp": TB_LOCAL_PORT, "7182/tcp": TB_LOCAL_CLICKHOUSE_INTERFACE_PORT},
|
|
273
274
|
remove=False,
|
|
274
275
|
platform="linux/amd64",
|
|
275
276
|
environment=environment,
|
|
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
|
|
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
|
{tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/deploy_check.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/diff_resource.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/execute_query.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/agent/tools/request_endpoint.py
RENAMED
|
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
|
{tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/build_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/build_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/format_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/datafile/pipe_checker.py
RENAMED
|
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
|
|
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
|
{tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb/modules/tinyunit/tinyunit_lib.py
RENAMED
|
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
|
{tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev288 → tinybird-0.0.1.dev289}/tinybird/tb_cli_modules/workspace_members.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|