systemlink-cli 2.5.3__py3-none-any.whl → 2.5.4__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.
slcli/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  """Version information for slcli."""
2
2
 
3
3
  # This file is auto-generated. Do not edit manually.
4
- __version__ = "2.5.3"
4
+ __version__ = "2.5.4"
slcli/config.py CHANGED
@@ -1,21 +1,15 @@
1
1
  """Configuration management for slcli."""
2
2
 
3
3
  import json
4
- import os
5
4
  from pathlib import Path
6
5
  from typing import Dict, Optional
7
6
 
7
+ from .paths import get_config_dir
8
+
8
9
 
9
10
  def get_config_file_path() -> Path:
10
11
  """Get the path to the slcli configuration file."""
11
- # Use XDG_CONFIG_HOME if set, otherwise use ~/.config
12
- if "XDG_CONFIG_HOME" in os.environ:
13
- config_dir = Path(os.environ["XDG_CONFIG_HOME"]) / "slcli"
14
- else:
15
- config_dir = Path.home() / ".config" / "slcli"
16
-
17
- config_dir.mkdir(parents=True, exist_ok=True)
18
- return config_dir / "config.json"
12
+ return get_config_dir() / "config.json"
19
13
 
20
14
 
21
15
  def load_config() -> Dict[str, str]:
slcli/main.py CHANGED
@@ -27,6 +27,7 @@ from .file_click import register_file_commands
27
27
  from .function_click import register_function_commands
28
28
  from .managed_client_click import register_managed_client_commands
29
29
  from .mcp_click import register_mcp_commands
30
+ from .migrate_click import register_migrate_command
30
31
  from .notebook_click import register_notebook_commands
31
32
  from .platform import get_platform_info
32
33
  from .policy_click import register_policy_commands
@@ -80,6 +81,7 @@ def _configure_rich_click_command_groups() -> None:
80
81
  "version",
81
82
  "completion",
82
83
  "example",
84
+ "migrate",
83
85
  ],
84
86
  },
85
87
  {
@@ -791,6 +793,7 @@ register_file_commands(cli)
791
793
  register_function_commands(cli)
792
794
  register_managed_client_commands(cli)
793
795
  register_mcp_commands(cli)
796
+ register_migrate_command(cli)
794
797
  register_templates_commands(cli)
795
798
  register_notebook_commands(cli)
796
799
  register_policy_commands(cli)
slcli/migrate_click.py ADDED
@@ -0,0 +1,135 @@
1
+ """CLI registration for the discovery-only ``migrate`` command.
2
+
3
+ Migration depends on the optional ``migration`` extra, so this module imports
4
+ ``slcli.migration`` only when the command runs.
5
+ """
6
+
7
+ from importlib.util import find_spec
8
+ from typing import Dict, List, Optional
9
+ from urllib.parse import urlparse
10
+
11
+ import click
12
+
13
+ _MIGRATION_EXTRA_PACKAGES = frozenset({"prefect", "psutil", "pydantic"})
14
+
15
+
16
+ def migration_extra_installed() -> bool:
17
+ """Return whether the ``migration`` extra's packages are installed, without importing them."""
18
+ return all(find_spec(package) is not None for package in _MIGRATION_EXTRA_PACKAGES)
19
+
20
+
21
+ _MAPPING_FORMAT_ERROR = "workspace mappings must be SOURCE or SOURCE:DESTINATION"
22
+
23
+
24
+ def _split_workspace_mappings(value: str) -> List[List[str]]:
25
+ r"""Split mappings on unescaped commas and colons.
26
+
27
+ A backslash makes the next character literal, so \, and \: allow workspace
28
+ names containing a comma or colon. SystemLink workspace names cannot contain
29
+ backslashes or leading/trailing spaces, so escaping is unambiguous and
30
+ surrounding whitespace is ignored.
31
+ """
32
+ items: List[List[str]] = [[]]
33
+ part: List[str] = []
34
+
35
+ def finish_part() -> None:
36
+ items[-1].append("".join(part).strip())
37
+ part.clear()
38
+
39
+ chars = iter(value)
40
+ for char in chars:
41
+ if char == "\\":
42
+ escaped = next(chars, None)
43
+ if escaped is None:
44
+ raise click.BadParameter("workspace mappings cannot end with an escape '\\'")
45
+ part.append(escaped)
46
+ elif char == ":":
47
+ finish_part()
48
+ elif char == ",":
49
+ finish_part()
50
+ items.append([])
51
+ else:
52
+ part.append(char)
53
+ finish_part()
54
+ return items
55
+
56
+
57
+ def _parse_workspace_mappings(
58
+ ctx: click.Context, param: click.Parameter, value: Optional[str]
59
+ ) -> Optional[Dict[str, str]]:
60
+ """Parse comma-delimited SOURCE or SOURCE:DESTINATION workspace mappings."""
61
+ if value is None:
62
+ return None
63
+ mappings: Dict[str, str] = {}
64
+ for parts in _split_workspace_mappings(value):
65
+ if len(parts) > 2 or not all(parts):
66
+ raise click.BadParameter(_MAPPING_FORMAT_ERROR)
67
+ source, destination = parts[0], parts[-1]
68
+ if source in mappings:
69
+ raise click.BadParameter(f"workspace '{source}' is mapped more than once")
70
+ mappings[source] = destination
71
+ return mappings
72
+
73
+
74
+ def _validate_prefect_api_url(
75
+ ctx: click.Context, param: click.Parameter, value: Optional[str]
76
+ ) -> Optional[str]:
77
+ if value is not None:
78
+ parsed = urlparse(value)
79
+ if parsed.scheme not in ("http", "https") or not parsed.netloc:
80
+ raise click.BadParameter("must be an HTTP or HTTPS URL")
81
+ return value
82
+
83
+
84
+ def register_migrate_command(cli: click.Group) -> None:
85
+ """Register the discovery-only migrate command, hidden without the migration extra."""
86
+
87
+ @cli.command(name="migrate", hidden=not migration_extra_installed())
88
+ @click.option("--source-profile", help="Named source SystemLink profile for a new migration.")
89
+ @click.option(
90
+ "--workspace-mappings",
91
+ callback=_parse_workspace_mappings,
92
+ help=(
93
+ "Comma-delimited SOURCE or SOURCE:DESTINATION workspace mappings. "
94
+ "Escape ',' or ':' in a workspace name with a backslash, for example Lab\\:A:Dest. "
95
+ "Only the listed source workspaces are migrated; all when omitted."
96
+ ),
97
+ )
98
+ @click.option("--migration-id", help="Repeat discovery for an existing migration.")
99
+ @click.option(
100
+ "--prefect-api-url",
101
+ callback=_validate_prefect_api_url,
102
+ help="Use an externally managed Prefect server instead of starting one.",
103
+ )
104
+ def migrate(
105
+ source_profile: Optional[str],
106
+ workspace_mappings: Optional[Dict[str, str]],
107
+ migration_id: Optional[str],
108
+ prefect_api_url: Optional[str],
109
+ ) -> None:
110
+ """Discover and migrate resources from a SystemLink Server."""
111
+ if migration_id is not None and (
112
+ source_profile is not None or workspace_mappings is not None
113
+ ):
114
+ raise click.UsageError(
115
+ "--migration-id cannot be combined with --source-profile or --workspace-mappings"
116
+ )
117
+ if migration_id is None and source_profile is None:
118
+ raise click.UsageError(
119
+ "Provide --source-profile for a new migration or --migration-id for an existing one"
120
+ )
121
+
122
+ try:
123
+ from slcli.migration import command
124
+ except ModuleNotFoundError as exc:
125
+ if (exc.name or "").partition(".")[0] not in _MIGRATION_EXTRA_PACKAGES:
126
+ raise
127
+ raise click.ClickException(
128
+ "Migration dependencies are not installed. Install systemlink-cli with "
129
+ "the 'migration' extra, for example: pipx install 'systemlink-cli[migration]'."
130
+ ) from exc
131
+
132
+ if migration_id is not None:
133
+ command.resume_migration(migration_id, prefect_api_url)
134
+ elif source_profile is not None:
135
+ command.start_migration(source_profile, workspace_mappings, prefect_api_url)
@@ -0,0 +1,140 @@
1
+ """Compose a discovery-only migration run for the ``migrate`` command."""
2
+
3
+ import logging
4
+ from collections.abc import Generator
5
+ from contextlib import contextmanager
6
+ from pathlib import Path
7
+ from typing import Dict, Optional
8
+ from urllib.parse import urlparse
9
+
10
+ import click
11
+
12
+ from slcli._version import __version__
13
+ from slcli.migration.connection import MigrationConnection, resolve_migration_connection
14
+ from slcli.migration.orchestration import prefect_server, run_discovery
15
+ from slcli.migration.state import MigrationRun, create_migration_run, open_migration_run
16
+ from slcli.migration.testmonitor.models import TestMonitorDiscovery
17
+ from slcli.migration.workspace_client import WorkspaceClient
18
+
19
+ _logger = logging.getLogger("slcli.migration")
20
+ MIGRATION_LOG = "migration.log"
21
+
22
+
23
+ def start_migration(
24
+ source_profile: str,
25
+ workspace_mappings: Optional[Dict[str, str]],
26
+ prefect_api_url: Optional[str],
27
+ ) -> None:
28
+ """Create a new migration run and discover its source resources."""
29
+ connection = resolve_migration_connection(source_profile)
30
+ _echo_source(connection)
31
+ if workspace_mappings is not None:
32
+ _require_source_workspaces(connection, workspace_mappings)
33
+ run = create_migration_run(source_profile, workspace_mappings)
34
+ _discover(run, connection, workspace_mappings, prefect_api_url)
35
+
36
+
37
+ def resume_migration(migration_id: str, prefect_api_url: Optional[str]) -> None:
38
+ """Resume migration run with the original inputs and cached state."""
39
+ try:
40
+ run, metadata = open_migration_run(migration_id)
41
+ except ValueError as exc:
42
+ raise click.ClickException(str(exc)) from exc
43
+ connection = resolve_migration_connection(metadata.source_profile)
44
+ _echo_source(connection)
45
+ _discover(run, connection, metadata.workspace_mappings, prefect_api_url)
46
+
47
+
48
+ def format_summary(discovery: TestMonitorDiscovery) -> str:
49
+ """Return deterministic Test Monitor discovery counts and failures."""
50
+ lines = [
51
+ "Test Monitor discovery:",
52
+ f" Products: {len(discovery.products)}",
53
+ f" Terminal results: {len(discovery.results)}",
54
+ f" Failed workspaces: {len(discovery.failures)}",
55
+ *(f" {failure.workspace}: {failure.error_type}" for failure in discovery.failures),
56
+ ]
57
+ if discovery.failures:
58
+ lines.append(" Product workspaces were inferred without the failed workspaces.")
59
+ return "\n".join(lines)
60
+
61
+
62
+ def _all_workspaces_failed(discovery: TestMonitorDiscovery) -> bool:
63
+ return bool(discovery.workspaces) and len(discovery.failures) == len(discovery.workspaces)
64
+
65
+
66
+ def _echo_source(connection: MigrationConnection) -> None:
67
+ click.echo(f"Source: {connection.profile_name} ({connection.base_url})")
68
+ if urlparse(connection.base_url).scheme.lower() != "https":
69
+ click.echo("Warning: source connection does not use HTTPS.", err=True)
70
+ if connection.ssl_verify is False:
71
+ click.echo("Warning: source TLS certificate verification is disabled.", err=True)
72
+
73
+
74
+ def _require_source_workspaces(
75
+ connection: MigrationConnection, workspace_mappings: Dict[str, str]
76
+ ) -> None:
77
+ existing = {workspace.name for workspace in WorkspaceClient(connection).query_workspaces()}
78
+ unknown = sorted(set(workspace_mappings).difference(existing))
79
+ if unknown:
80
+ raise click.BadParameter(
81
+ f"unknown source workspace: {', '.join(unknown)}",
82
+ param_hint="--workspace-mappings",
83
+ )
84
+
85
+
86
+ @contextmanager
87
+ def _run_log(log_path: Path) -> Generator[None, None, None]:
88
+ """Write migration logs to the run directory for the duration of the run."""
89
+ handler = logging.FileHandler(log_path, encoding="utf-8")
90
+ handler.setFormatter(logging.Formatter("%(asctime)s %(levelname)s %(name)s %(message)s"))
91
+ previous_level = _logger.level
92
+ _logger.addHandler(handler)
93
+ _logger.setLevel(logging.INFO)
94
+ try:
95
+ yield
96
+ finally:
97
+ _logger.removeHandler(handler)
98
+ _logger.setLevel(previous_level)
99
+ handler.close()
100
+
101
+
102
+ def _discover(
103
+ run: MigrationRun,
104
+ connection: MigrationConnection,
105
+ workspace_mappings: Optional[Dict[str, str]],
106
+ prefect_api_url: Optional[str],
107
+ ) -> None:
108
+ click.echo(f"Migration ID: {run.migration_id}")
109
+ log_path = run.directory / MIGRATION_LOG
110
+ workspaces = list(workspace_mappings) if workspace_mappings is not None else None
111
+ server_mode = "managed" if prefect_api_url is None else "external"
112
+ with _run_log(log_path):
113
+ _logger.info(
114
+ "Discovery started: migration=%s cli=%s profile=%s endpoint=%s workspaces=%s "
115
+ "prefect_server=%s",
116
+ run.migration_id,
117
+ __version__,
118
+ connection.profile_name,
119
+ connection.base_url,
120
+ workspaces if workspaces is not None else "all",
121
+ server_mode,
122
+ )
123
+ try:
124
+ with prefect_server(run, prefect_api_url) as api_url:
125
+ discovery = run_discovery(run, connection.profile_name, workspaces, api_url)
126
+ except BaseException as exc:
127
+ _logger.error("Discovery failed: %s: %s", type(exc).__name__, exc)
128
+ click.echo(f"Log: {log_path}", err=True)
129
+ raise
130
+ test_monitor = discovery.test_monitor
131
+ _logger.info(
132
+ "Discovery completed: products=%d results=%d failed_workspaces=%s",
133
+ len(test_monitor.products),
134
+ len(test_monitor.results),
135
+ [failure.workspace for failure in test_monitor.failures],
136
+ )
137
+ click.echo(format_summary(test_monitor))
138
+ click.echo(f"Log: {log_path}")
139
+ if _all_workspaces_failed(test_monitor):
140
+ raise click.ClickException("Discovery failed for every workspace.")
@@ -1,7 +1,7 @@
1
1
  """Profile-explicit SystemLink connections for migration operations."""
2
2
 
3
3
  from dataclasses import dataclass, field
4
- from typing import Dict, Optional, Union
4
+ from typing import Any, Dict, Optional, Union
5
5
 
6
6
  import click
7
7
  import requests
@@ -9,6 +9,7 @@ from requests.adapters import HTTPAdapter
9
9
  from urllib3.util.retry import Retry
10
10
 
11
11
  from slcli.profiles import Profile, ProfileConfig
12
+ from slcli.ssl_trust import use_standard_ssl_context
12
13
  from slcli.utils import get_auth_headers, profile_ssl_verify, resolve_profile_auth
13
14
 
14
15
  # Policy for read-only queries, including POST query endpoints, which are safe to replay.
@@ -23,6 +24,20 @@ _QUERY_RETRY = Retry(
23
24
  )
24
25
 
25
26
 
27
+ class _ProfileSession(requests.Session):
28
+ """Session that evaluates an explicit CA bundle despite injected OS trust."""
29
+
30
+ def __init__(self, ssl_verify: Union[bool, str]) -> None:
31
+ """Bind the session to one TLS verification setting."""
32
+ super().__init__()
33
+ self.verify = self._ssl_verify = ssl_verify
34
+
35
+ def request(self, *args: Any, **kwargs: Any) -> requests.Response: # type: ignore[override]
36
+ """Send a request using the standard SSL context for CA bundle paths."""
37
+ with use_standard_ssl_context(self._ssl_verify):
38
+ return super().request(*args, **kwargs)
39
+
40
+
26
41
  @dataclass(frozen=True)
27
42
  class MigrationConnection:
28
43
  """Endpoint, authentication, and TLS settings from one explicitly named profile."""
@@ -34,9 +49,8 @@ class MigrationConnection:
34
49
 
35
50
  def create_session(self) -> requests.Session:
36
51
  """Return a query session bound to this connection's credentials and TLS."""
37
- session = requests.Session()
52
+ session = _ProfileSession(self.ssl_verify)
38
53
  session.headers.update(self.headers)
39
- session.verify = self.ssl_verify
40
54
  adapter = HTTPAdapter(max_retries=_QUERY_RETRY)
41
55
  session.mount("https://", adapter)
42
56
  session.mount("http://", adapter)
@@ -0,0 +1 @@
1
+ """Prefect flows for migration operations."""
@@ -0,0 +1,41 @@
1
+ """Discovery-only migration flow."""
2
+
3
+ from typing import List, Optional
4
+
5
+ from prefect import flow
6
+ from pydantic import ConfigDict
7
+
8
+ from slcli.migration.schema import VersionedModel
9
+ from slcli.migration.testmonitor.discovery_task import discover_test_monitor_task
10
+ from slcli.migration.testmonitor.models import TestMonitorDiscovery
11
+
12
+
13
+ class MigrationDiscovery(VersionedModel):
14
+ """Discovery results for every supported resource type."""
15
+
16
+ model_config = ConfigDict(frozen=True)
17
+
18
+ test_monitor: TestMonitorDiscovery
19
+
20
+
21
+ @flow(
22
+ name="systemlink-migration-discovery",
23
+ flow_run_name="migration-discovery-{migration_id}",
24
+ persist_result=True,
25
+ result_serializer="json",
26
+ )
27
+ def discover_flow(
28
+ migration_id: str,
29
+ source_profile: str,
30
+ workspaces: Optional[List[str]],
31
+ ) -> MigrationDiscovery:
32
+ """Run one persisted discovery task per supported resource type.
33
+
34
+ Args:
35
+ migration_id: Migration that scopes task cache keys.
36
+ source_profile: Name of the source profile.
37
+ workspaces: Source workspace names to discover; all workspaces when None.
38
+ """
39
+ return MigrationDiscovery(
40
+ test_monitor=discover_test_monitor_task(migration_id, source_profile, workspaces)
41
+ )
@@ -0,0 +1,62 @@
1
+ """Run migration flows against a Prefect server."""
2
+
3
+ from collections.abc import Generator
4
+ from contextlib import contextmanager
5
+ from typing import List, Optional
6
+
7
+ from prefect.events.worker import EventsWorker
8
+ from prefect.settings import (
9
+ PREFECT_API_URL,
10
+ PREFECT_HOME,
11
+ PREFECT_LOGGING_TO_API_ENABLED,
12
+ temporary_settings,
13
+ )
14
+
15
+ from slcli.migration.flows.discover import MigrationDiscovery, discover_flow
16
+ from slcli.migration.prefect_server import ManagedPrefectServer
17
+ from slcli.migration.state import MigrationRun
18
+
19
+
20
+ @contextmanager
21
+ def prefect_server(run: MigrationRun, api_url: Optional[str] = None) -> Generator[str, None, None]:
22
+ """Yield a Prefect API URL for a run.
23
+
24
+ Args:
25
+ run: Migration run whose ``server_home`` can host a managed server.
26
+ api_url: An externally managed server to use instead; the caller owns its
27
+ lifecycle and database.
28
+ """
29
+ if api_url is not None:
30
+ yield api_url
31
+ return
32
+ with ManagedPrefectServer(run.server_home) as managed_api_url:
33
+ yield managed_api_url
34
+
35
+
36
+ def run_discovery(
37
+ run: MigrationRun,
38
+ source_profile: str,
39
+ workspaces: Optional[List[str]],
40
+ api_url: str,
41
+ ) -> MigrationDiscovery:
42
+ """Run the discovery flow for a migration run on a Prefect server.
43
+
44
+ Args:
45
+ run: Migration run that provides the client home and result storage.
46
+ source_profile: Name of the source profile.
47
+ workspaces: Source workspace names to discover; all workspaces when None.
48
+ api_url: Prefect API URL from :func:`prefect_server`.
49
+ """
50
+ with temporary_settings(
51
+ updates={
52
+ PREFECT_HOME: run.client_home,
53
+ PREFECT_API_URL: api_url,
54
+ PREFECT_LOGGING_TO_API_ENABLED: False,
55
+ "results.local_storage_path": run.results_path,
56
+ }
57
+ ):
58
+ try:
59
+ return discover_flow(run.migration_id, source_profile, workspaces)
60
+ finally:
61
+ # Deliver queued task-state events before the server may be stopped.
62
+ EventsWorker.drain_all()
@@ -0,0 +1,18 @@
1
+ """Single schema version for everything migration persists."""
2
+
3
+ from pydantic import BaseModel, field_validator
4
+
5
+ SCHEMA_VERSION = 1
6
+
7
+
8
+ class VersionedModel(BaseModel):
9
+ """A persisted model that only loads data written with the current schema."""
10
+
11
+ schema_version: int = SCHEMA_VERSION
12
+
13
+ @field_validator("schema_version")
14
+ @classmethod
15
+ def _require_current(cls, value: int) -> int:
16
+ if value != SCHEMA_VERSION:
17
+ raise ValueError(f"unsupported schema version {value}; expected {SCHEMA_VERSION}")
18
+ return value
@@ -0,0 +1,124 @@
1
+ """Migration identity and user-scoped run state."""
2
+
3
+ import os
4
+ import uuid
5
+ from dataclasses import dataclass
6
+ from datetime import datetime, timezone
7
+ from pathlib import Path
8
+ from typing import Dict, Optional, Tuple
9
+
10
+ from pydantic import ConfigDict
11
+ from pydantic.alias_generators import to_camel
12
+
13
+ from slcli._version import __version__
14
+ from slcli.migration.schema import VersionedModel
15
+ from slcli.paths import get_state_dir
16
+
17
+ STATE_DIR_ENV = "SLCLI_MIGRATION_STATE_DIR"
18
+
19
+
20
+ class RunMetadata(VersionedModel):
21
+ """Immutable, non-secret identity and inputs of one migration run.
22
+
23
+ Mutable lifecycle state lives in Prefect flow and task runs, not here.
24
+ """
25
+
26
+ model_config = ConfigDict(alias_generator=to_camel, populate_by_name=True, frozen=True)
27
+
28
+ migration_id: str
29
+ cli_version: str = __version__
30
+ source_profile: str
31
+ workspace_mappings: Optional[Dict[str, str]]
32
+ created_at: datetime
33
+
34
+
35
+ @dataclass(frozen=True)
36
+ class MigrationRun:
37
+ """Paths for one migration run directory."""
38
+
39
+ migration_id: str
40
+ directory: Path
41
+
42
+ @property
43
+ def metadata_path(self) -> Path:
44
+ """Return the run metadata path."""
45
+ return self.directory / "metadata.json"
46
+
47
+ @property
48
+ def results_path(self) -> Path:
49
+ """Return the Prefect result storage, the source of truth for completed tasks."""
50
+ return self.directory / "results"
51
+
52
+ @property
53
+ def client_home(self) -> Path:
54
+ """Return the Prefect home for the slcli process running the flow."""
55
+ return self.directory / "prefect-client"
56
+
57
+ @property
58
+ def server_home(self) -> Path:
59
+ """Return the home of a Prefect server managed by slcli for this run."""
60
+ return self.directory / "prefect-server"
61
+
62
+ def read_metadata(self) -> RunMetadata:
63
+ """Read and validate this run's metadata."""
64
+ metadata = RunMetadata.model_validate_json(self.metadata_path.read_text(encoding="utf-8"))
65
+ if metadata.migration_id != self.migration_id:
66
+ raise ValueError(f"Migration '{self.migration_id}' metadata has a different identity")
67
+ return metadata
68
+
69
+ def write_metadata(self, metadata: RunMetadata) -> None:
70
+ """Atomically write this run's metadata."""
71
+ temporary_path = self.metadata_path.with_suffix(".json.tmp")
72
+ temporary_path.write_text(metadata.model_dump_json(by_alias=True, indent=2), "utf-8")
73
+ temporary_path.replace(self.metadata_path)
74
+
75
+
76
+ def get_migration_root() -> Path:
77
+ """Return the per-user directory that contains migration runs."""
78
+ override = os.environ.get(STATE_DIR_ENV)
79
+ return Path(override) if override else get_state_dir() / "migrations"
80
+
81
+
82
+ def _validate_created_migration_id(migration_id: str) -> None:
83
+ """Require the canonical UUIDv4 text emitted by :func:`create_migration_run`."""
84
+ try:
85
+ parsed_id = uuid.UUID(migration_id)
86
+ except ValueError as exc:
87
+ raise ValueError(f"Migration ID '{migration_id}' is invalid") from exc
88
+ if parsed_id.version != 4 or str(parsed_id) != migration_id:
89
+ raise ValueError(f"Migration ID '{migration_id}' is invalid")
90
+
91
+
92
+ def create_migration_run(
93
+ source_profile: str,
94
+ workspace_mappings: Optional[Dict[str, str]],
95
+ root: Optional[Path] = None,
96
+ ) -> MigrationRun:
97
+ """Create a new run directory, readable only by the current user."""
98
+ root = root or get_migration_root()
99
+ root.mkdir(mode=0o700, parents=True, exist_ok=True)
100
+ migration_id = str(uuid.uuid4())
101
+ run = MigrationRun(migration_id, root / migration_id)
102
+ run.directory.mkdir(mode=0o700)
103
+ run.results_path.mkdir()
104
+ run.client_home.mkdir()
105
+ run.write_metadata(
106
+ RunMetadata(
107
+ migration_id=migration_id,
108
+ source_profile=source_profile,
109
+ workspace_mappings=workspace_mappings,
110
+ created_at=datetime.now(timezone.utc),
111
+ )
112
+ )
113
+ return run
114
+
115
+
116
+ def open_migration_run(
117
+ migration_id: str, root: Optional[Path] = None
118
+ ) -> Tuple[MigrationRun, RunMetadata]:
119
+ """Open an existing run and its metadata."""
120
+ _validate_created_migration_id(migration_id)
121
+ run = MigrationRun(migration_id, (root or get_migration_root()) / migration_id)
122
+ if not run.metadata_path.is_file():
123
+ raise ValueError(f"Migration '{migration_id}' was not found")
124
+ return run, run.read_metadata()
@@ -0,0 +1 @@
1
+ """Test Monitor migration support."""
@@ -0,0 +1,104 @@
1
+ """Profile-bound Test Monitor queries for migration discovery."""
2
+
3
+ from collections.abc import Iterator
4
+ from typing import Dict, List, Optional, Sequence, Type, TypeVar
5
+
6
+ import requests
7
+ from pydantic import AwareDatetime
8
+
9
+ from slcli.migration.api import REQUEST_TIMEOUT_SECONDS, ApiModel
10
+ from slcli.migration.connection import MigrationConnection
11
+
12
+ PAGE_SIZE = 1000
13
+
14
+
15
+ class Product(ApiModel):
16
+ """A Test Monitor product. SLS products have no workspace of their own."""
17
+
18
+ id: str
19
+ part_number: str
20
+ workspace: Optional[str] = None
21
+ properties: Dict[str, str] = {}
22
+
23
+
24
+ class ResultStatus(ApiModel):
25
+ """The status of a Test Monitor result."""
26
+
27
+ status_type: str
28
+
29
+
30
+ class Result(ApiModel):
31
+ """A Test Monitor result, associated with a product by part number."""
32
+
33
+ id: str
34
+ part_number: Optional[str] = None
35
+ workspace: Optional[str] = None
36
+ status: ResultStatus
37
+ updated_at: AwareDatetime
38
+ properties: Dict[str, str] = {}
39
+
40
+
41
+ class _Page(ApiModel):
42
+ continuation_token: Optional[str] = None
43
+
44
+
45
+ class _ProductPage(_Page):
46
+ products: List[Product] = []
47
+
48
+
49
+ class _ResultPage(_Page):
50
+ results: List[Result] = []
51
+
52
+
53
+ _PageT = TypeVar("_PageT", bound=_Page)
54
+
55
+
56
+ class TestMonitorClient:
57
+ """Query Test Monitor using one profile-bound migration connection."""
58
+
59
+ __test__ = False
60
+
61
+ def __init__(
62
+ self,
63
+ connection: MigrationConnection,
64
+ session: Optional[requests.Session] = None,
65
+ ) -> None:
66
+ """Initialize a Test Monitor query client."""
67
+ self._base_url = f"{connection.base_url}/nitestmonitor/v2"
68
+ self._session = session or connection.create_session()
69
+
70
+ def query_products(self) -> Iterator[Product]:
71
+ """Yield every product."""
72
+ for page in self._query_pages("query-products", _ProductPage, {}):
73
+ yield from page.products
74
+
75
+ def query_results(
76
+ self,
77
+ filter_expr: Optional[str] = None,
78
+ substitutions: Optional[Sequence[str]] = None,
79
+ ) -> Iterator[Result]:
80
+ """Yield every result matching a parameterized filter."""
81
+ query: Dict[str, object] = {}
82
+ if filter_expr:
83
+ query["filter"] = filter_expr
84
+ query["substitutions"] = list(substitutions or [])
85
+ for page in self._query_pages("query-results", _ResultPage, query):
86
+ yield from page.results
87
+
88
+ def _query_pages(
89
+ self, endpoint: str, page_type: Type[_PageT], query: Dict[str, object]
90
+ ) -> Iterator[_PageT]:
91
+ """Yield every page of a continuation-token query."""
92
+ payload: Dict[str, object] = {**query, "take": PAGE_SIZE, "descending": False}
93
+ while True:
94
+ response = self._session.post(
95
+ f"{self._base_url}/{endpoint}", json=payload, timeout=REQUEST_TIMEOUT_SECONDS
96
+ )
97
+ response.raise_for_status()
98
+ page = page_type.model_validate(response.json())
99
+ yield page
100
+
101
+ token = page.continuation_token
102
+ if not token:
103
+ return
104
+ payload = {**payload, "continuationToken": token}
@@ -0,0 +1,158 @@
1
+ """Test Monitor discovery and workspace assignment policy."""
2
+
3
+ import logging
4
+ from dataclasses import dataclass, field
5
+ from typing import (
6
+ Collection,
7
+ Dict,
8
+ Iterable,
9
+ List,
10
+ Mapping,
11
+ Optional,
12
+ Protocol,
13
+ Sequence,
14
+ Tuple,
15
+ )
16
+
17
+ from slcli.migration.testmonitor.client import Product, Result
18
+ from slcli.migration.testmonitor.models import (
19
+ DiscoveredProduct,
20
+ DiscoveredResult,
21
+ TestMonitorDiscovery,
22
+ WorkspaceFailure,
23
+ )
24
+
25
+ DEFAULT_WORKSPACE = "Default"
26
+ _logger = logging.getLogger(__name__)
27
+ # Terminal values of the Test Monitor StatusType enum. The service accepts TIMEDOUT
28
+ # on write and stores TIMED_OUT, so both are recognized.
29
+ TERMINAL_RESULT_STATES = frozenset(
30
+ {"DONE", "PASSED", "FAILED", "SKIPPED", "TERMINATED", "ERRORED", "TIMEDOUT", "TIMED_OUT"}
31
+ )
32
+
33
+
34
+ class TestMonitorQuery(Protocol):
35
+ """Queries required by Test Monitor discovery."""
36
+
37
+ def query_products(self) -> Iterable[Product]:
38
+ """Return all Test Monitor products."""
39
+ ...
40
+
41
+ def query_results(
42
+ self,
43
+ filter_expr: Optional[str] = None,
44
+ substitutions: Optional[Sequence[str]] = None,
45
+ ) -> Iterable[Result]:
46
+ """Return Test Monitor results matching a parameterized filter."""
47
+ ...
48
+
49
+
50
+ WorkspacedResult = Tuple[str, Result]
51
+ """A result paired with the name of the workspace it was discovered in."""
52
+
53
+
54
+ @dataclass
55
+ class _ResultScan:
56
+ """Results gathered from every selected workspace that could be queried."""
57
+
58
+ terminal: List[WorkspacedResult] = field(default_factory=list)
59
+ newest_by_part_number: Dict[str, WorkspacedResult] = field(default_factory=dict)
60
+ failures: List[WorkspaceFailure] = field(default_factory=list)
61
+
62
+ def add_workspace(self, workspace: str, results: Iterable[Result]) -> None:
63
+ for result in results:
64
+ if result.status.status_type in TERMINAL_RESULT_STATES:
65
+ self.terminal.append((workspace, result))
66
+ if result.part_number:
67
+ current = self.newest_by_part_number.get(result.part_number)
68
+ if current is None or result.updated_at > current[1].updated_at:
69
+ self.newest_by_part_number[result.part_number] = (workspace, result)
70
+
71
+
72
+ def _scan_results(client: TestMonitorQuery, workspaces: Mapping[str, str]) -> _ResultScan:
73
+ scan = _ResultScan()
74
+ for workspace, workspace_id in workspaces.items():
75
+ try:
76
+ # Materialize per workspace so a mid-pagination failure contributes nothing.
77
+ results = list(client.query_results("workspace == @0", [workspace_id]))
78
+ except Exception as exc:
79
+ _logger.warning(
80
+ "Workspace %s discovery failed: %s: %s", workspace, type(exc).__name__, exc
81
+ )
82
+ scan.failures.append(
83
+ WorkspaceFailure(workspace=workspace, error_type=type(exc).__name__)
84
+ )
85
+ continue
86
+ scan.add_workspace(workspace, results)
87
+ return scan
88
+
89
+
90
+ def infer_product_workspace(
91
+ part_number: str,
92
+ newest_by_part_number: Mapping[str, WorkspacedResult],
93
+ migrate_products_with_no_results: bool,
94
+ ) -> Optional[str]:
95
+ """Infer the migrated workspace that owns a product, if any.
96
+
97
+ A product belongs to the workspace of its most recently updated result among
98
+ the migrated workspaces. A product with no results there belongs to Default
99
+ and is included only when ``migrate_products_with_no_results``.
100
+ """
101
+ newest = newest_by_part_number.get(part_number)
102
+ if newest is not None:
103
+ return newest[0]
104
+ return DEFAULT_WORKSPACE if migrate_products_with_no_results else None
105
+
106
+
107
+ def discover_test_monitor(
108
+ client: TestMonitorQuery,
109
+ all_workspaces: Mapping[str, str],
110
+ selected_workspaces: Optional[Collection[str]] = None,
111
+ ) -> TestMonitorDiscovery:
112
+ """Discover products and terminal results owned by the selected workspaces.
113
+
114
+ Only selected workspaces are queried, so product ownership is inferred from
115
+ their results alone. A failed workspace is reported and excluded from that
116
+ inference. Products with no results are included only when all workspaces are
117
+ discovered without failures, since a failed workspace could hide their results.
118
+
119
+ Args:
120
+ client: Test Monitor queries for the source server.
121
+ all_workspaces: Every accessible source workspace, by name to ID.
122
+ selected_workspaces: Workspace names to discover; all workspaces when None.
123
+ """
124
+ selected = set(all_workspaces if selected_workspaces is None else selected_workspaces)
125
+ unknown = selected.difference(all_workspaces)
126
+ if unknown:
127
+ raise ValueError(f"Unknown selected workspace: {', '.join(sorted(unknown))}")
128
+
129
+ scan = _scan_results(
130
+ client, {name: id_ for name, id_ in all_workspaces.items() if name in selected}
131
+ )
132
+ migrate_products_with_no_results = selected_workspaces is None and not scan.failures
133
+ products: List[DiscoveredProduct] = []
134
+ product_ids_by_part_number: Dict[str, str] = {}
135
+ for product in client.query_products():
136
+ product_ids_by_part_number[product.part_number] = product.id
137
+ workspace = infer_product_workspace(
138
+ product.part_number, scan.newest_by_part_number, migrate_products_with_no_results
139
+ )
140
+ if workspace is not None:
141
+ products.append(DiscoveredProduct(id=product.id, workspace=workspace))
142
+
143
+ results = [
144
+ DiscoveredResult(
145
+ id=result.id,
146
+ product_id=product_ids_by_part_number.get(result.part_number or ""),
147
+ workspace=workspace,
148
+ status=result.status.status_type,
149
+ updated_at=result.updated_at,
150
+ )
151
+ for workspace, result in scan.terminal
152
+ ]
153
+ return TestMonitorDiscovery(
154
+ workspaces=tuple(sorted(selected)),
155
+ products=tuple(sorted(products, key=lambda item: (item.workspace, item.id))),
156
+ results=tuple(sorted(results, key=lambda item: (item.workspace, item.id))),
157
+ failures=tuple(sorted(scan.failures, key=lambda item: item.workspace)),
158
+ )
@@ -0,0 +1,38 @@
1
+ """Persisted Prefect task for Test Monitor discovery."""
2
+
3
+ from typing import List, Optional
4
+
5
+ from prefect import task
6
+ from prefect.cache_policies import INPUTS
7
+
8
+ from slcli.migration.connection import resolve_migration_connection
9
+ from slcli.migration.testmonitor.client import TestMonitorClient
10
+ from slcli.migration.testmonitor.discovery import discover_test_monitor
11
+ from slcli.migration.testmonitor.models import TestMonitorDiscovery
12
+ from slcli.migration.workspace_client import WorkspaceClient
13
+
14
+
15
+ @task(
16
+ name="discover-test-monitor",
17
+ persist_result=True,
18
+ result_serializer="json",
19
+ cache_result_in_memory=False,
20
+ cache_policy=INPUTS,
21
+ )
22
+ def discover_test_monitor_task(
23
+ migration_id: str,
24
+ source_profile: str,
25
+ workspaces: Optional[List[str]],
26
+ ) -> TestMonitorDiscovery:
27
+ """Discover Test Monitor resources from a source profile.
28
+
29
+ Inputs are references, never credentials. ``migration_id`` is unused by the
30
+ body but scopes the cache key to one migration.
31
+ """
32
+ connection = resolve_migration_connection(source_profile)
33
+ session = connection.create_session()
34
+ all_workspaces = {
35
+ workspace.name: workspace.id
36
+ for workspace in WorkspaceClient(connection, session).query_workspaces()
37
+ }
38
+ return discover_test_monitor(TestMonitorClient(connection, session), all_workspaces, workspaces)
@@ -0,0 +1,47 @@
1
+ """Versioned compact models for Test Monitor discovery."""
2
+
3
+ from typing import Optional, Tuple
4
+
5
+ from pydantic import AwareDatetime, BaseModel, ConfigDict
6
+
7
+ from slcli.migration.schema import VersionedModel
8
+
9
+
10
+ class _Persisted(BaseModel):
11
+ model_config = ConfigDict(frozen=True)
12
+
13
+
14
+ class DiscoveredResult(_Persisted):
15
+ """Compact terminal result metadata needed by later migration stages."""
16
+
17
+ id: str
18
+ product_id: Optional[str]
19
+ workspace: str
20
+ status: str
21
+ updated_at: AwareDatetime
22
+
23
+
24
+ class DiscoveredProduct(_Persisted):
25
+ """Compact product metadata with its inferred source workspace."""
26
+
27
+ id: str
28
+ workspace: str
29
+
30
+
31
+ class WorkspaceFailure(_Persisted):
32
+ """A workspace-scoped discovery failure safe for summary output."""
33
+
34
+ workspace: str
35
+ error_type: str
36
+
37
+
38
+ class TestMonitorDiscovery(_Persisted, VersionedModel):
39
+ """Successful partial discovery plus isolated workspace failures."""
40
+
41
+ __test__ = False
42
+
43
+ workspaces: Tuple[str, ...] = ()
44
+ """Names of the workspaces that discovery queried."""
45
+ products: Tuple[DiscoveredProduct, ...] = ()
46
+ results: Tuple[DiscoveredResult, ...] = ()
47
+ failures: Tuple[WorkspaceFailure, ...] = ()
@@ -7,7 +7,6 @@ import requests
7
7
 
8
8
  from slcli.migration.api import REQUEST_TIMEOUT_SECONDS, ApiModel
9
9
  from slcli.migration.connection import MigrationConnection
10
- from slcli.ssl_trust import use_standard_ssl_context
11
10
 
12
11
  PAGE_SIZE = 100
13
12
 
@@ -34,19 +33,16 @@ class WorkspaceClient:
34
33
  """Initialize a workspace query client."""
35
34
  self._url = f"{connection.base_url}/niuser/v1/workspaces"
36
35
  self._session = session or connection.create_session()
37
- self._ssl_verify = connection.ssl_verify
38
36
 
39
37
  def query_workspaces(self) -> Iterator[Workspace]:
40
38
  """Yield every accessible workspace."""
41
39
  skip = 0
42
40
  while True:
43
- with use_standard_ssl_context(self._ssl_verify):
44
- response = self._session.get(
45
- self._url,
46
- params={"take": PAGE_SIZE, "skip": skip},
47
- timeout=REQUEST_TIMEOUT_SECONDS,
48
- verify=self._ssl_verify,
49
- )
41
+ response = self._session.get(
42
+ self._url,
43
+ params={"take": PAGE_SIZE, "skip": skip},
44
+ timeout=REQUEST_TIMEOUT_SECONDS,
45
+ )
50
46
  response.raise_for_status()
51
47
  page = _WorkspacePage.model_validate(response.json())
52
48
  yield from page.workspaces
slcli/paths.py ADDED
@@ -0,0 +1,31 @@
1
+ """Per-user application directories for slcli."""
2
+
3
+ import os
4
+ from pathlib import Path
5
+
6
+ from platformdirs import user_state_path
7
+
8
+ APP_NAME = "slcli"
9
+
10
+
11
+ def get_config_dir() -> Path:
12
+ """Return the slcli configuration directory, creating it if needed.
13
+
14
+ Configuration keeps its established XDG-style location on every platform so
15
+ existing profiles remain discoverable.
16
+ """
17
+ if "XDG_CONFIG_HOME" in os.environ:
18
+ config_dir = Path(os.environ["XDG_CONFIG_HOME"]) / APP_NAME
19
+ else:
20
+ config_dir = Path.home() / ".config" / APP_NAME
21
+ config_dir.mkdir(parents=True, exist_ok=True)
22
+ return config_dir
23
+
24
+
25
+ def get_state_dir() -> Path:
26
+ """Return the OS-standard per-user state directory for slcli.
27
+
28
+ Uses ``%LOCALAPPDATA%`` on Windows, ``~/Library/Application Support`` on macOS,
29
+ and ``$XDG_STATE_HOME`` (default ``~/.local/state``) on Linux.
30
+ """
31
+ return user_state_path(APP_NAME, appauthor=False)
slcli/profiles.py CHANGED
@@ -32,6 +32,8 @@ from typing import Any, Dict, Iterator, List, Optional
32
32
  import click
33
33
  from filelock import FileLock
34
34
 
35
+ from .paths import get_config_dir
36
+
35
37
  SERVICE_PROBE_CACHE_SETTING = "service-probe-cache"
36
38
 
37
39
 
@@ -122,14 +124,7 @@ class ProfileConfig:
122
124
  if "SLCLI_CONFIG" in os.environ:
123
125
  return Path(os.environ["SLCLI_CONFIG"])
124
126
 
125
- # Use XDG_CONFIG_HOME if set, otherwise use ~/.config
126
- if "XDG_CONFIG_HOME" in os.environ:
127
- config_dir = Path(os.environ["XDG_CONFIG_HOME"]) / "slcli"
128
- else:
129
- config_dir = Path.home() / ".config" / "slcli"
130
-
131
- config_dir.mkdir(parents=True, exist_ok=True)
132
- return config_dir / "config.json"
127
+ return get_config_dir() / "config.json"
133
128
 
134
129
  @classmethod
135
130
  def load(cls) -> "ProfileConfig":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: systemlink-cli
3
- Version: 2.5.3
3
+ Version: 2.5.4
4
4
  Summary: SystemLink Integrator CLI - cross-platform CLI for SystemLink workflows and templates.
5
5
  License-File: LICENSE
6
6
  Author: Fred Visser
@@ -24,6 +24,7 @@ Requires-Dist: keyring (>=25.6.0,<26.0.0)
24
24
  Requires-Dist: mcp (>=2,<3) ; extra == "mcp"
25
25
  Requires-Dist: msgpack (>=1.1,<2) ; extra == "managed-client"
26
26
  Requires-Dist: packaging (>=21.0)
27
+ Requires-Dist: platformdirs (>=4,<5)
27
28
  Requires-Dist: prefect (>=3.8.6,<4) ; extra == "migration"
28
29
  Requires-Dist: psutil (>=7,<8) ; extra == "migration"
29
30
  Requires-Dist: pydantic (>=2.9,<3) ; extra == "migration"
@@ -2,14 +2,14 @@ dff-editor/editor.js,sha256=VQJNqtkFSeXec_hidYdbsvhcKo8-dcdMoU5qvGVn3YQ,97488
2
2
  dff-editor/index.html,sha256=Bbicid_Fx66W7ypHgSGJrUtkAEFcLP3HkRoxiGKZjCs,11657
3
3
  slcli/__init__.py,sha256=ZRF050VsFgb4zeyyQzQINQ4eHFwEBBoUq-CPyziIB6g,66
4
4
  slcli/__main__.py,sha256=wUlBlvYS3Tn4ipw9_7zMr2d1houRpNnALG0TxHg6xZg,829
5
- slcli/_version.py,sha256=h0i4q_CPcaOKGcq4PrXFHUJJx6VLd_-e0f6wCfxgUuA,113
5
+ slcli/_version.py,sha256=gHVQqWAKm1SGblI0BHOLB3Z7SZjQS_R48ZpidZewDLI,113
6
6
  slcli/alarm_click.py,sha256=0z0SOO_LJQR9dYqLdOTfZgA4Ogl8d1fsJ7TrJHukDsU,32053
7
7
  slcli/asset_click.py,sha256=rBA52bBjn5Kmv0kHv4ft1vBMXFvMGmR292AbX3s_zvY,44544
8
8
  slcli/cli_formatters.py,sha256=ShrU2RbnQUEKhJ6ahWuv8c3zw7C-yg0o20i1opq9gZk,7275
9
9
  slcli/cli_utils.py,sha256=tXagGGAeEVvxlKpyHSzbNiosjhrxMmwgDUMJ4glAK1I,13087
10
10
  slcli/comment_click.py,sha256=klbOQfFYVQ-HDi1hoHWuZE3X8S_5iI2HWfPaAYyICOQ,21048
11
11
  slcli/completion_click.py,sha256=KYnGP-1LT-iQVg32BRQOmX5LQspVjZ7D--tpH0qh_MA,13952
12
- slcli/config.py,sha256=tdVP-1cvy6Qs2ThGXv4nPNa5AoqNu1SG6oOwgMJ6Yx0,2221
12
+ slcli/config.py,sha256=2UNPpJK_E5lDUbiyvRxbigTFQ-PZvDEKwuas2YYkiGU,1971
13
13
  slcli/config_click.py,sha256=3jQrgtyHXyz82yZk22V0WdmowXFlhRqMH10oeN0-sS8,45928
14
14
  slcli/credentials.py,sha256=vKTS7hNAt3t7HB4ggWOZKMLNISefbT2hpCXtyEAyMCg,19996
15
15
  slcli/dataframe_click.py,sha256=LiqpXGBkxrpL-5sFmNBrIEEUf1bgfKvZGh8p27aDnIc,44064
@@ -44,7 +44,7 @@ slcli/feed_click.py,sha256=IzE_VwQ8IXmEgqe04afd-wE91JcV7pT3mZ5eYIT4MF4,30437
44
44
  slcli/file_click.py,sha256=5dpUgUc9ZuxG4cWO3pFjnoTyN8wB8RkndE7c5t5_x50,45841
45
45
  slcli/function_click.py,sha256=yU6oy76VV3zSSLkyjht_2VPD2GsSczPrCSO5tLOZsyY,54592
46
46
  slcli/function_templates.py,sha256=GfmsBF0KrsIp2rBiO9ha5UAHv0O9g7yr7xcA4l8vbi8,3371
47
- slcli/main.py,sha256=L7ZVgDxE6J5VnQxlGhRZItGAjUIER2Y_0dSA1vHuo6w,29481
47
+ slcli/main.py,sha256=f08hzrawa6ialKgIxE8H0fY65FZmlCbb1EmLHbt3VEE,29594
48
48
  slcli/managed_client/__init__.py,sha256=OBOqV5QisENmueusHloKye9CWldM1QvLBOTDSDiETVQ,1564
49
49
  slcli/managed_client/crypto.py,sha256=WLtyXIciEPglCVvvAnWXKvbbOWnv2_9q79505p1PQkQ,16767
50
50
  slcli/managed_client/handlers.py,sha256=JvD2d8I0Wnm_9XwgJzgnXBM_g_3F_5YkJJ-3lqmGvP0,17770
@@ -59,18 +59,31 @@ slcli/mcp_click.py,sha256=AZ2WJ_odc2yEmitk24qrozNLq-hb9K6A-a0w12t7mL0,9246
59
59
  slcli/mcp_reachability.py,sha256=jn1RxtjLPCwABymZFotK-hmer80ZqcLKx9LD9x5g0dA,1908
60
60
  slcli/mcp_server.py,sha256=AqWYku0bzTC2RCv-oNQL2zqpIE6CsoPAsgRmVIkqFk0,32896
61
61
  slcli/mcp_skills.py,sha256=iCdujb-ttaRZyASmrZgkNP5JX4yh0hAFXS02doy6o8I,18437
62
+ slcli/migrate_click.py,sha256=vCFhTPNmHCaj_sx3Zre5vidCw6EB_7TQCrVr8RwKuvw,5194
62
63
  slcli/migration/__init__.py,sha256=fy6Du8e5u29dF-ThismOYvowW4KkqLgHgUxp9PQP8JM,64
63
64
  slcli/migration/api.py,sha256=4be7GHH-PzuLD1JlKH-3c-6VjpgrQMmN8zp7i-qAeVY,399
64
- slcli/migration/connection.py,sha256=K1rU2VdbMxxWVOCiLovSGcqtrN1kIGd9htF7gx0UP10,3242
65
+ slcli/migration/command.py,sha256=uKhHJAJwihYOto3i7wh8NTEuNvoR6133WcMV-cthGtI,5678
66
+ slcli/migration/connection.py,sha256=tj4pdrzC-MqR-TOzyVDcv2OZIme-hRnDXTIIWuxwrhY,3892
67
+ slcli/migration/flows/__init__.py,sha256=pHYgu2DTzMazd69UXmmhTfX2vmY3sPReLZaDWdOL4-4,46
68
+ slcli/migration/flows/discover.py,sha256=oO06m7YJfIvJKF7BId0pmlZmN6kRXTB5O7Wp4djAaeE,1226
69
+ slcli/migration/orchestration.py,sha256=2iq5fDz-htgw-srZ-rM5e8Psl-mDNqxOOd8SwZm3OOg,2062
65
70
  slcli/migration/prefect_server.py,sha256=PaenJuXZC6gTF77A1KRZqGRFOha4q2NEsLttwXofWP4,7544
66
- slcli/migration/workspace_client.py,sha256=vhojd-8oB-j2Dnn9yXIEhhgZmFZa6S94fgrLkfOS2vE,1676
71
+ slcli/migration/schema.py,sha256=jbq1xAILwcW-MAMV9rIm_bLv7KqmD5Dz4hgfTo_POmo,550
72
+ slcli/migration/state.py,sha256=7bOCNtGVCHOpCY2mWqxnRNDtDTfCK4kEqwHF-c7OB1c,4322
73
+ slcli/migration/testmonitor/__init__.py,sha256=BuPHwwjotgw_4CXU-CTcYBwMO0VVJlTkL-I1uKOejlQ,38
74
+ slcli/migration/testmonitor/client.py,sha256=i-v1y-GS3he_wAqU6DDFVEUIusplQBpCnHENeqmdhJI,3075
75
+ slcli/migration/testmonitor/discovery.py,sha256=AsNAI01svjzDh3KK1MA4pJZWdrNYC8J5poXEb8P2oAc,6050
76
+ slcli/migration/testmonitor/discovery_task.py,sha256=NUcpZ7QBS3iWJincwTTU7mEMzHxpwoC7nxKuW81q-8E,1353
77
+ slcli/migration/testmonitor/models.py,sha256=kR8STukD6IcSqlbQI-iDzA6YvODOVlIKc7mFKb5ZVUs,1187
78
+ slcli/migration/workspace_client.py,sha256=ur53BPIsdPw2QoXCfokMEVYA_XgGl5X8Eu7zHHRJNXE,1448
67
79
  slcli/notebook_click.py,sha256=lSPkjqz_F1xoE1h5OG_VaUuds7KLtOZKYbkt78hMxzw,71459
80
+ slcli/paths.py,sha256=6buJ3dvvYFmHyj01W2d-p_bHDkYTYjJEZGe0CvykTdU,941
68
81
  slcli/pkce.py,sha256=MMc4958hqZYDrx96zNG3-TGpZG2NXX5Og6Tl9IXYyBg,22355
69
82
  slcli/platform.py,sha256=cJ3BtDsq7QTMa2uHc09PBYwE0Iw3od95Fo2YwhmpYHg,37161
70
83
  slcli/policy_click.py,sha256=7Ns1HGa4yn-tAEfDxsmbIbG-koEB75tY2kRVdux3tLM,29096
71
84
  slcli/policy_utils.py,sha256=WMn3mCcznAm2Z3Q3beVQPDhldP3-jSjVCKzTPk7FLVQ,13765
72
85
  slcli/profile_credentials.py,sha256=2H4aoOymn917QFkyyH4cAgLVBQHSEYIBTIEsBkrmAhA,16993
73
- slcli/profiles.py,sha256=fqOKRoe0LzA0NUpYZwWZSgr_DXJ4K4QCBlg3Mwpl-bI,14509
86
+ slcli/profiles.py,sha256=tYnjvHfgpBtAkGL5u94IzTqdA8xMp7ORx9jcby0PigE,14245
74
87
  slcli/response_handlers.py,sha256=8nURxCwRgBMgED2AfM1GglcjUcceanBg4yQ-tPTUIek,12812
75
88
  slcli/rich_output.py,sha256=cl5B84-sZMvEO4pzuTtv6Vr4srW6LczbtEACBZ1eNFE,14929
76
89
  slcli/routine_click.py,sha256=kOWDmzEgvO8gIDlZw2CpYmGp-4vZQWre9v8i6RndgFM,25253
@@ -198,8 +211,8 @@ slcli/workflows_click.py,sha256=Ymb69WCzxhAQZ5bv0jTcXWlXy1yskXhIuv7FbgRBSWk,4065
198
211
  slcli/workitem_click.py,sha256=hmWijNzAvzvNBN0Y1wXoZZbUStRyrVIqg7J2xfJBFxw,88444
199
212
  slcli/workspace_click.py,sha256=T5ZfIHh_AxgGYQshJFxY2bJpCG5LkewRE3ny-pdeFDw,20981
200
213
  slcli/workspace_utils.py,sha256=7QOtotmv3ghJs6a0fDQVojKxrBKPeq_GtE4F1SmZKnM,6872
201
- systemlink_cli-2.5.3.dist-info/METADATA,sha256=OnN_9AmDZlN1ec7bNYWWGD-xCCwVZD0u69XzHsFFB9Y,1546
202
- systemlink_cli-2.5.3.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
203
- systemlink_cli-2.5.3.dist-info/entry_points.txt,sha256=V8IyRF-NYesTOTA_yB4-lVK1EsKZsSY5zOjzGbh5zdA,288
204
- systemlink_cli-2.5.3.dist-info/licenses/LICENSE,sha256=ioLAEBMHywwQkOr14pBIc7nenmWrc-bgcMrqsB_Uvq8,1077
205
- systemlink_cli-2.5.3.dist-info/RECORD,,
214
+ systemlink_cli-2.5.4.dist-info/METADATA,sha256=Ls97EF8hngy8kc02WlX12S-kaNd8-RRlx0SnE3yuiiY,1583
215
+ systemlink_cli-2.5.4.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
216
+ systemlink_cli-2.5.4.dist-info/entry_points.txt,sha256=V8IyRF-NYesTOTA_yB4-lVK1EsKZsSY5zOjzGbh5zdA,288
217
+ systemlink_cli-2.5.4.dist-info/licenses/LICENSE,sha256=ioLAEBMHywwQkOr14pBIc7nenmWrc-bgcMrqsB_Uvq8,1077
218
+ systemlink_cli-2.5.4.dist-info/RECORD,,