intuned-runtime 1.3.2__py3-none-any.whl → 1.3.3__py3-none-any.whl
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 intuned-runtime might be problematic. Click here for more details.
- intuned_cli/commands/__init__.py +1 -1
- intuned_cli/commands/attempt_api_command.py +0 -2
- intuned_cli/commands/attempt_authsession_check_command.py +0 -2
- intuned_cli/commands/attempt_authsession_command.py +0 -3
- intuned_cli/commands/attempt_authsession_create_command.py +0 -2
- intuned_cli/commands/attempt_command.py +0 -3
- intuned_cli/commands/authsession_command.py +0 -3
- intuned_cli/commands/authsession_record_command.py +0 -2
- intuned_cli/commands/command.py +0 -3
- intuned_cli/commands/deploy_command.py +0 -3
- intuned_cli/commands/init_command.py +0 -3
- intuned_cli/commands/run_api_command.py +0 -2
- intuned_cli/commands/run_authsession_command.py +0 -3
- intuned_cli/commands/run_authsession_create_command.py +2 -5
- intuned_cli/commands/run_authsession_update_command.py +3 -6
- intuned_cli/commands/run_authsession_validate_command.py +2 -5
- intuned_cli/commands/run_command.py +0 -3
- intuned_cli/commands/save_command.py +0 -3
- intuned_cli/controller/deploy.py +0 -2
- intuned_cli/controller/save.py +0 -18
- intuned_cli/utils/wrapper.py +13 -3
- intuned_internal_cli/commands/__init__.py +8 -16
- intuned_internal_cli/commands/browser/__init__.py +1 -1
- intuned_internal_cli/commands/browser/save_state.py +2 -3
- intuned_internal_cli/commands/project/__init__.py +7 -9
- intuned_internal_cli/commands/project/auth_session/__init__.py +3 -3
- intuned_internal_cli/commands/project/auth_session/check.py +2 -2
- intuned_internal_cli/commands/project/auth_session/create.py +2 -3
- intuned_internal_cli/commands/project/auth_session/load.py +2 -3
- intuned_internal_cli/commands/project/project.py +2 -2
- intuned_internal_cli/commands/project/run.py +2 -2
- intuned_internal_cli/commands/project/run_interface.py +75 -8
- intuned_internal_cli/commands/project/type_check.py +5 -5
- intuned_internal_cli/commands/root.py +2 -1
- intuned_internal_cli/utils/wrapper.py +15 -0
- {intuned_runtime-1.3.2.dist-info → intuned_runtime-1.3.3.dist-info}/METADATA +1 -1
- {intuned_runtime-1.3.2.dist-info → intuned_runtime-1.3.3.dist-info}/RECORD +44 -48
- runtime/browser/launch_browser.py +15 -0
- runtime/browser/launch_chromium.py +10 -1
- runtime/run/types.py +0 -5
- runtime/utils/anyio.py +26 -0
- intuned_internal_cli/commands/ai_source/__init__.py +0 -4
- intuned_internal_cli/commands/ai_source/ai_source.py +0 -10
- intuned_internal_cli/commands/ai_source/deploy.py +0 -64
- intuned_internal_cli/commands/init.py +0 -127
- intuned_internal_cli/commands/project/upgrade.py +0 -92
- intuned_internal_cli/commands/publish_packages.py +0 -264
- {intuned_runtime-1.3.2.dist-info → intuned_runtime-1.3.3.dist-info}/WHEEL +0 -0
- {intuned_runtime-1.3.2.dist-info → intuned_runtime-1.3.3.dist-info}/entry_points.txt +0 -0
- {intuned_runtime-1.3.2.dist-info → intuned_runtime-1.3.3.dist-info}/licenses/LICENSE +0 -0
intuned_cli/commands/__init__.py
CHANGED
|
@@ -17,7 +17,7 @@ from .run_authsession_command import run__authsession as run__authsession # typ
|
|
|
17
17
|
from .run_authsession_create_command import authsession__create as authsession__create # type: ignore
|
|
18
18
|
from .run_authsession_create_command import run__authsession__create as run__authsession__create # type: ignore
|
|
19
19
|
from .run_authsession_update_command import authsession__update as authsession__update # type: ignore
|
|
20
|
-
from .run_authsession_update_command import
|
|
20
|
+
from .run_authsession_update_command import run__authsession__update as run__authsession__update # type: ignore
|
|
21
21
|
from .run_authsession_validate_command import authsession__validate as authsession__validate # type: ignore
|
|
22
22
|
from .run_authsession_validate_command import run__authsession__validate as run__authsession__validate # type: ignore
|
|
23
23
|
from .run_command import run as run # type: ignore
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import arguably
|
|
2
1
|
import pytimeparse # type: ignore
|
|
3
2
|
|
|
4
3
|
from intuned_cli.controller.api import execute_attempt_api_cli
|
|
@@ -7,7 +6,6 @@ from intuned_cli.utils.auth_session_helpers import load_parameters
|
|
|
7
6
|
from intuned_cli.utils.wrapper import cli_command
|
|
8
7
|
|
|
9
8
|
|
|
10
|
-
@arguably.command # type: ignore
|
|
11
9
|
@cli_command
|
|
12
10
|
async def attempt__api(
|
|
13
11
|
api_name: str,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import arguably
|
|
2
1
|
import pytimeparse # type: ignore
|
|
3
2
|
|
|
4
3
|
from intuned_cli.controller.authsession import execute_attempt_check_auth_session_cli
|
|
@@ -6,7 +5,6 @@ from intuned_cli.utils.auth_session_helpers import assert_auth_enabled
|
|
|
6
5
|
from intuned_cli.utils.wrapper import cli_command
|
|
7
6
|
|
|
8
7
|
|
|
9
|
-
@arguably.command # type: ignore
|
|
10
8
|
@cli_command
|
|
11
9
|
async def attempt__authsession__check(
|
|
12
10
|
id: str,
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import arguably
|
|
2
|
-
|
|
3
1
|
from intuned_cli.utils.help import print_help_and_exit
|
|
4
2
|
from intuned_cli.utils.wrapper import cli_command
|
|
5
3
|
|
|
6
4
|
|
|
7
|
-
@arguably.command # type: ignore
|
|
8
5
|
@cli_command
|
|
9
6
|
async def attempt__authsession():
|
|
10
7
|
"""Execute san Intuned authsession attempt"""
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import arguably
|
|
2
1
|
import pytimeparse # type: ignore
|
|
3
2
|
|
|
4
3
|
from intuned_cli.controller.authsession import execute_attempt_create_auth_session_cli
|
|
@@ -7,7 +6,6 @@ from intuned_cli.utils.auth_session_helpers import load_parameters
|
|
|
7
6
|
from intuned_cli.utils.wrapper import cli_command
|
|
8
7
|
|
|
9
8
|
|
|
10
|
-
@arguably.command # type: ignore
|
|
11
9
|
@cli_command
|
|
12
10
|
async def attempt__authsession__create(
|
|
13
11
|
parameters: str,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import arguably
|
|
2
1
|
import pytimeparse # type: ignore
|
|
3
2
|
|
|
4
3
|
from intuned_cli.controller.authsession import execute_record_auth_session_cli
|
|
@@ -7,7 +6,6 @@ from intuned_cli.utils.auth_session_helpers import get_auth_session_recorder_par
|
|
|
7
6
|
from intuned_cli.utils.wrapper import cli_command
|
|
8
7
|
|
|
9
8
|
|
|
10
|
-
@arguably.command # type: ignore
|
|
11
9
|
@cli_command
|
|
12
10
|
async def authsession__record(
|
|
13
11
|
*,
|
intuned_cli/commands/command.py
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import arguably
|
|
2
|
-
|
|
3
1
|
from intuned_cli.utils.console import console
|
|
4
2
|
from intuned_cli.utils.error import CLIExit
|
|
5
3
|
from intuned_cli.utils.help import print_help_and_exit
|
|
6
4
|
from intuned_cli.utils.wrapper import cli_command
|
|
7
5
|
|
|
8
6
|
|
|
9
|
-
@arguably.command # type: ignore
|
|
10
7
|
@cli_command
|
|
11
8
|
async def __root__(
|
|
12
9
|
*,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import arguably
|
|
2
|
-
|
|
3
1
|
from intuned_cli.controller.deploy import deploy_project
|
|
4
2
|
from intuned_cli.controller.save import validate_intuned_project
|
|
5
3
|
from intuned_cli.controller.save import validate_project_name
|
|
@@ -8,7 +6,6 @@ from intuned_cli.utils.error import CLIError
|
|
|
8
6
|
from intuned_cli.utils.wrapper import cli_command
|
|
9
7
|
|
|
10
8
|
|
|
11
|
-
@arguably.command # type: ignore
|
|
12
9
|
@cli_command
|
|
13
10
|
async def deploy(
|
|
14
11
|
project_name: str | None = None,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import arguably
|
|
2
1
|
import pytimeparse # type: ignore
|
|
3
2
|
|
|
4
3
|
from intuned_cli.controller.api import AuthSessionInput
|
|
@@ -8,7 +7,6 @@ from intuned_cli.utils.auth_session_helpers import load_parameters
|
|
|
8
7
|
from intuned_cli.utils.wrapper import cli_command
|
|
9
8
|
|
|
10
9
|
|
|
11
|
-
@arguably.command # type: ignore
|
|
12
10
|
@cli_command
|
|
13
11
|
async def run__api(
|
|
14
12
|
api_name: str,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
from functools import WRAPPER_ASSIGNMENTS
|
|
2
2
|
from functools import wraps
|
|
3
3
|
|
|
4
|
-
import arguably
|
|
5
4
|
import pytimeparse # type: ignore
|
|
6
5
|
|
|
7
6
|
from intuned_cli.controller.authsession import execute_run_create_auth_session_cli
|
|
@@ -10,7 +9,6 @@ from intuned_cli.utils.auth_session_helpers import load_parameters
|
|
|
10
9
|
from intuned_cli.utils.wrapper import cli_command
|
|
11
10
|
|
|
12
11
|
|
|
13
|
-
@cli_command
|
|
14
12
|
async def _run_auth_session_create_impl(
|
|
15
13
|
parameters: str,
|
|
16
14
|
/,
|
|
@@ -61,8 +59,7 @@ async def _run_auth_session_create_impl(
|
|
|
61
59
|
)
|
|
62
60
|
|
|
63
61
|
|
|
64
|
-
|
|
65
|
-
@arguably.command # type: ignore
|
|
62
|
+
@cli_command
|
|
66
63
|
@wraps(_run_auth_session_create_impl, (a for a in WRAPPER_ASSIGNMENTS if a != "__name__"))
|
|
67
64
|
async def run__authsession__create(
|
|
68
65
|
*args, # type: ignore
|
|
@@ -71,7 +68,7 @@ async def run__authsession__create(
|
|
|
71
68
|
return await _run_auth_session_create_impl(*args, **kwargs) # type: ignore
|
|
72
69
|
|
|
73
70
|
|
|
74
|
-
@
|
|
71
|
+
@cli_command
|
|
75
72
|
@wraps(_run_auth_session_create_impl, (a for a in WRAPPER_ASSIGNMENTS if a != "__name__"))
|
|
76
73
|
async def authsession__create(
|
|
77
74
|
*args, # type: ignore
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
from functools import WRAPPER_ASSIGNMENTS
|
|
2
2
|
from functools import wraps
|
|
3
3
|
|
|
4
|
-
import arguably
|
|
5
4
|
import pytimeparse # type: ignore
|
|
6
5
|
|
|
7
6
|
from intuned_cli.controller.authsession import execute_run_update_auth_session_cli
|
|
@@ -10,7 +9,6 @@ from intuned_cli.utils.auth_session_helpers import load_parameters
|
|
|
10
9
|
from intuned_cli.utils.wrapper import cli_command
|
|
11
10
|
|
|
12
11
|
|
|
13
|
-
@cli_command
|
|
14
12
|
async def _run_update_authsession_impl(
|
|
15
13
|
id: str,
|
|
16
14
|
/,
|
|
@@ -62,17 +60,16 @@ async def _run_update_authsession_impl(
|
|
|
62
60
|
)
|
|
63
61
|
|
|
64
62
|
|
|
65
|
-
|
|
66
|
-
@arguably.command # type: ignore
|
|
63
|
+
@cli_command
|
|
67
64
|
@wraps(_run_update_authsession_impl, (a for a in WRAPPER_ASSIGNMENTS if a != "__name__"))
|
|
68
|
-
async def
|
|
65
|
+
async def run__authsession__update(
|
|
69
66
|
*args, # type: ignore
|
|
70
67
|
**kwargs, # type: ignore
|
|
71
68
|
):
|
|
72
69
|
return await _run_update_authsession_impl(*args, **kwargs) # type: ignore
|
|
73
70
|
|
|
74
71
|
|
|
75
|
-
@
|
|
72
|
+
@cli_command
|
|
76
73
|
@wraps(_run_update_authsession_impl, (a for a in WRAPPER_ASSIGNMENTS if a != "__name__"))
|
|
77
74
|
async def authsession__update(
|
|
78
75
|
*args, # type: ignore
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
from functools import WRAPPER_ASSIGNMENTS
|
|
2
2
|
from functools import wraps
|
|
3
3
|
|
|
4
|
-
import arguably
|
|
5
4
|
import pytimeparse # type: ignore
|
|
6
5
|
|
|
7
6
|
from intuned_cli.controller.authsession import execute_run_validate_auth_session_cli
|
|
@@ -9,7 +8,6 @@ from intuned_cli.utils.auth_session_helpers import assert_auth_enabled
|
|
|
9
8
|
from intuned_cli.utils.wrapper import cli_command
|
|
10
9
|
|
|
11
10
|
|
|
12
|
-
@cli_command
|
|
13
11
|
async def _run_validate_authsession_impl(
|
|
14
12
|
id: str,
|
|
15
13
|
/,
|
|
@@ -59,8 +57,7 @@ async def _run_validate_authsession_impl(
|
|
|
59
57
|
)
|
|
60
58
|
|
|
61
59
|
|
|
62
|
-
|
|
63
|
-
@arguably.command # type: ignore
|
|
60
|
+
@cli_command
|
|
64
61
|
@wraps(_run_validate_authsession_impl, (a for a in WRAPPER_ASSIGNMENTS if a != "__name__"))
|
|
65
62
|
async def run__authsession__validate(
|
|
66
63
|
*args, # type: ignore
|
|
@@ -69,7 +66,7 @@ async def run__authsession__validate(
|
|
|
69
66
|
return await _run_validate_authsession_impl(*args, **kwargs) # type: ignore
|
|
70
67
|
|
|
71
68
|
|
|
72
|
-
@
|
|
69
|
+
@cli_command
|
|
73
70
|
@wraps(_run_validate_authsession_impl, (a for a in WRAPPER_ASSIGNMENTS if a != "__name__"))
|
|
74
71
|
async def authsession__validate(
|
|
75
72
|
*args, # type: ignore
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import arguably
|
|
2
|
-
|
|
3
1
|
from intuned_cli.controller.save import save_project
|
|
4
2
|
from intuned_cli.controller.save import validate_intuned_project
|
|
5
3
|
from intuned_cli.controller.save import validate_project_name
|
|
@@ -8,7 +6,6 @@ from intuned_cli.utils.error import CLIError
|
|
|
8
6
|
from intuned_cli.utils.wrapper import cli_command
|
|
9
7
|
|
|
10
8
|
|
|
11
|
-
@arguably.command # type: ignore
|
|
12
9
|
@cli_command
|
|
13
10
|
async def save(
|
|
14
11
|
project_name: str | None = None,
|
intuned_cli/controller/deploy.py
CHANGED
|
@@ -11,8 +11,6 @@ from intuned_cli.utils.backend import get_base_url
|
|
|
11
11
|
from intuned_cli.utils.console import console
|
|
12
12
|
from intuned_cli.utils.error import CLIError
|
|
13
13
|
|
|
14
|
-
supported_playwright_versions = ["1.46.0", "1.52.0"]
|
|
15
|
-
|
|
16
14
|
project_deploy_timeout = 10 * 60
|
|
17
15
|
project_deploy_check_period = 5
|
|
18
16
|
|
intuned_cli/controller/save.py
CHANGED
|
@@ -6,7 +6,6 @@ from typing import Any
|
|
|
6
6
|
|
|
7
7
|
import httpx
|
|
8
8
|
import pathspec
|
|
9
|
-
import toml
|
|
10
9
|
from anyio import Path
|
|
11
10
|
from dotenv.main import DotEnv
|
|
12
11
|
from pydantic import BaseModel
|
|
@@ -27,8 +26,6 @@ from runtime.env import api_key_env_var_key
|
|
|
27
26
|
from runtime.env import project_env_var_key
|
|
28
27
|
from runtime.env import workspace_env_var_key
|
|
29
28
|
|
|
30
|
-
supported_playwright_versions = ["1.46.0", "1.52.0"]
|
|
31
|
-
|
|
32
29
|
|
|
33
30
|
class IntunedPyprojectToml(BaseModel):
|
|
34
31
|
class _Tool(BaseModel):
|
|
@@ -48,21 +45,6 @@ async def validate_intuned_project():
|
|
|
48
45
|
if not await pyproject_toml_path.exists():
|
|
49
46
|
raise CLIError("pyproject.toml file is missing in the current directory.")
|
|
50
47
|
|
|
51
|
-
content = await pyproject_toml_path.read_text()
|
|
52
|
-
json_content = toml.loads(content)
|
|
53
|
-
try:
|
|
54
|
-
pyproject_toml = IntunedPyprojectToml.model_validate(json_content)
|
|
55
|
-
except Exception as e:
|
|
56
|
-
raise CLIError(f"Failed to parse pyproject.toml: {e}") from e
|
|
57
|
-
|
|
58
|
-
playwright_version = pyproject_toml.tool.poetry.dependencies.get("playwright")
|
|
59
|
-
|
|
60
|
-
if playwright_version not in supported_playwright_versions:
|
|
61
|
-
raise CLIError(
|
|
62
|
-
f"Unsupported Playwright version '{playwright_version}'. "
|
|
63
|
-
f"Supported versions are: {', '.join(supported_playwright_versions)}."
|
|
64
|
-
)
|
|
65
|
-
|
|
66
48
|
intuned_json = await load_intuned_json()
|
|
67
49
|
|
|
68
50
|
api_folder = cwd / "api"
|
intuned_cli/utils/wrapper.py
CHANGED
|
@@ -4,6 +4,10 @@ from collections.abc import Callable
|
|
|
4
4
|
from functools import wraps
|
|
5
5
|
from typing import Any
|
|
6
6
|
from typing import cast
|
|
7
|
+
from typing import ParamSpec
|
|
8
|
+
from typing import TypeVar
|
|
9
|
+
|
|
10
|
+
import arguably
|
|
7
11
|
|
|
8
12
|
from intuned_cli.utils.browser import close_cli_browser
|
|
9
13
|
from intuned_cli.utils.browser import is_cli_browser_launched
|
|
@@ -12,11 +16,17 @@ from intuned_cli.utils.error import CLIError
|
|
|
12
16
|
from intuned_cli.utils.error import CLIExit
|
|
13
17
|
from intuned_cli.utils.error import log_automation_error
|
|
14
18
|
from runtime.errors.run_api_errors import RunApiError
|
|
19
|
+
from runtime.utils.anyio import run_sync
|
|
20
|
+
|
|
21
|
+
P = ParamSpec("P")
|
|
22
|
+
R = TypeVar("R")
|
|
15
23
|
|
|
16
24
|
|
|
17
|
-
def cli_command
|
|
25
|
+
def cli_command(fn: Callable[P, Awaitable[R]]) -> Callable[P, R]:
|
|
26
|
+
@arguably.command # type: ignore
|
|
18
27
|
@wraps(fn)
|
|
19
|
-
|
|
28
|
+
@run_sync
|
|
29
|
+
async def wrapper(*args: Any, **kwargs: Any) -> R:
|
|
20
30
|
keep_open = kwargs.get("keep_browser_open", False)
|
|
21
31
|
if keep_open:
|
|
22
32
|
console.print(
|
|
@@ -47,7 +57,7 @@ def cli_command[F: Callable[..., Awaitable[Any]]](fn: F) -> F:
|
|
|
47
57
|
await _wait_for_user_input()
|
|
48
58
|
await close_cli_browser()
|
|
49
59
|
|
|
50
|
-
return cast(
|
|
60
|
+
return cast(Callable[P, R], wrapper)
|
|
51
61
|
|
|
52
62
|
|
|
53
63
|
async def _wait_for_user_input():
|
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
from .
|
|
2
|
-
from .
|
|
3
|
-
from .
|
|
4
|
-
from .
|
|
5
|
-
from .project import
|
|
6
|
-
from .project import
|
|
7
|
-
from .project import
|
|
8
|
-
from .
|
|
9
|
-
from .project.auth_session import project__auth_session__create # type: ignore
|
|
10
|
-
from .project.auth_session import project__auth_session__load # type: ignore
|
|
11
|
-
from .publish_packages import publish_packages # type: ignore
|
|
12
|
-
from .root import __root__ # type: ignore
|
|
1
|
+
from .browser import browser__save_state
|
|
2
|
+
from .project import project
|
|
3
|
+
from .project import project__run
|
|
4
|
+
from .project import project__type_check
|
|
5
|
+
from .project.auth_session import project__auth_session__check
|
|
6
|
+
from .project.auth_session import project__auth_session__create
|
|
7
|
+
from .project.auth_session import project__auth_session__load
|
|
8
|
+
from .root import __root__
|
|
13
9
|
|
|
14
10
|
__all__ = [
|
|
15
11
|
"project__run",
|
|
16
|
-
"publish_packages",
|
|
17
|
-
"init",
|
|
18
12
|
"project",
|
|
19
|
-
"ai_source__deploy",
|
|
20
|
-
"ai_source",
|
|
21
13
|
"project__auth_session__load",
|
|
22
14
|
"project__auth_session__create",
|
|
23
15
|
"project__auth_session__check",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import json
|
|
2
2
|
import os
|
|
3
3
|
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
from intuned_internal_cli.utils.wrapper import internal_cli_command
|
|
6
5
|
from runtime.browser import launch_browser
|
|
7
6
|
from runtime.browser.storage_state import get_storage_state
|
|
8
7
|
|
|
9
8
|
|
|
10
|
-
@
|
|
9
|
+
@internal_cli_command
|
|
11
10
|
async def browser__save_state(
|
|
12
11
|
*,
|
|
13
12
|
cdp_address: str,
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
from .auth_session import project__auth_session__check
|
|
2
|
-
from .auth_session import project__auth_session__create
|
|
3
|
-
from .auth_session import project__auth_session__load
|
|
4
|
-
from .project import project
|
|
5
|
-
from .run import project__run
|
|
6
|
-
from .run_interface import project__run_interface
|
|
7
|
-
from .type_check import project__type_check
|
|
8
|
-
from .upgrade import project__upgrade # type: ignore
|
|
1
|
+
from .auth_session import project__auth_session__check
|
|
2
|
+
from .auth_session import project__auth_session__create
|
|
3
|
+
from .auth_session import project__auth_session__load
|
|
4
|
+
from .project import project
|
|
5
|
+
from .run import project__run
|
|
6
|
+
from .run_interface import project__run_interface
|
|
7
|
+
from .type_check import project__type_check
|
|
9
8
|
|
|
10
9
|
__all__ = [
|
|
11
10
|
"run",
|
|
@@ -15,6 +14,5 @@ __all__ = [
|
|
|
15
14
|
"project__auth_session__load",
|
|
16
15
|
"project__auth_session__create",
|
|
17
16
|
"project__auth_session__check",
|
|
18
|
-
"project__upgrade",
|
|
19
17
|
"project__run_interface",
|
|
20
18
|
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
from .check import project__auth_session__check
|
|
2
|
-
from .create import project__auth_session__create
|
|
3
|
-
from .load import project__auth_session__load
|
|
1
|
+
from .check import project__auth_session__check
|
|
2
|
+
from .create import project__auth_session__create
|
|
3
|
+
from .load import project__auth_session__load
|
|
4
4
|
|
|
5
5
|
__all__ = ["project__auth_session__check", "project__auth_session__create", "project__auth_session__load"]
|
|
@@ -2,7 +2,6 @@ import json
|
|
|
2
2
|
import os
|
|
3
3
|
from typing import Any
|
|
4
4
|
|
|
5
|
-
import arguably
|
|
6
5
|
import pydantic # type: ignore
|
|
7
6
|
from more_termcolor import bold # type: ignore
|
|
8
7
|
from more_termcolor import green # type: ignore
|
|
@@ -12,6 +11,7 @@ from tenacity import retry_if_not_result
|
|
|
12
11
|
from tenacity import RetryError
|
|
13
12
|
from tenacity import stop_after_attempt
|
|
14
13
|
|
|
14
|
+
from intuned_internal_cli.utils.wrapper import internal_cli_command
|
|
15
15
|
from runtime.context.context import IntunedContext
|
|
16
16
|
from runtime.errors.run_api_errors import RunApiError
|
|
17
17
|
from runtime.run.intuned_settings import load_intuned_settings
|
|
@@ -27,7 +27,7 @@ from runtime.types.run_types import StorageState
|
|
|
27
27
|
from runtime.types.run_types import TracingDisabled
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
@
|
|
30
|
+
@internal_cli_command
|
|
31
31
|
async def project__auth_session__check(
|
|
32
32
|
*,
|
|
33
33
|
no_headless: bool = False,
|
|
@@ -2,8 +2,7 @@ import json
|
|
|
2
2
|
import os
|
|
3
3
|
from typing import Any
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
from intuned_internal_cli.utils.wrapper import internal_cli_command
|
|
7
6
|
from runtime.context.context import IntunedContext
|
|
8
7
|
from runtime.errors.run_api_errors import RunApiError
|
|
9
8
|
from runtime.run.intuned_settings import load_intuned_settings
|
|
@@ -16,7 +15,7 @@ from runtime.types.run_types import StandaloneRunOptions
|
|
|
16
15
|
from runtime.types.run_types import TracingDisabled
|
|
17
16
|
|
|
18
17
|
|
|
19
|
-
@
|
|
18
|
+
@internal_cli_command
|
|
20
19
|
async def project__auth_session__create(
|
|
21
20
|
*,
|
|
22
21
|
no_headless: bool = False,
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import json
|
|
2
2
|
import os
|
|
3
3
|
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
from intuned_internal_cli.utils.wrapper import internal_cli_command
|
|
6
5
|
from runtime.browser import launch_browser
|
|
7
6
|
from runtime.browser.storage_state import set_storage_state
|
|
8
7
|
from runtime.run.intuned_settings import load_intuned_settings
|
|
9
8
|
from runtime.types.run_types import StorageState
|
|
10
9
|
|
|
11
10
|
|
|
12
|
-
@
|
|
11
|
+
@internal_cli_command
|
|
13
12
|
async def project__auth_session__load(
|
|
14
13
|
*,
|
|
15
14
|
cdp_address: str,
|
|
@@ -10,7 +10,6 @@ from importlib import import_module
|
|
|
10
10
|
from typing import Any
|
|
11
11
|
from typing import cast
|
|
12
12
|
|
|
13
|
-
import arguably
|
|
14
13
|
from dotenv import find_dotenv
|
|
15
14
|
from dotenv import load_dotenv
|
|
16
15
|
from more_termcolor import bold # type: ignore
|
|
@@ -21,6 +20,7 @@ from more_termcolor import on_blue # type: ignore
|
|
|
21
20
|
from more_termcolor import underline # type: ignore
|
|
22
21
|
from more_termcolor import yellow # type: ignore
|
|
23
22
|
|
|
23
|
+
from intuned_internal_cli.utils.wrapper import internal_cli_command
|
|
24
24
|
from runtime.run.intuned_settings import load_intuned_settings
|
|
25
25
|
from runtime.types import Payload
|
|
26
26
|
from runtime.types.run_types import Auth
|
|
@@ -38,7 +38,7 @@ class Mode(StrEnum):
|
|
|
38
38
|
ide = "ide"
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
@
|
|
41
|
+
@internal_cli_command
|
|
42
42
|
async def project__run(
|
|
43
43
|
*,
|
|
44
44
|
api_name: str = "default",
|