systemlink-cli 2.4.5__tar.gz → 2.5.2__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.
Files changed (203) hide show
  1. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/PKG-INFO +5 -1
  2. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/pyproject.toml +11 -2
  3. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/_version.py +1 -1
  4. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/config_click.py +63 -19
  5. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/dataframe_click.py +2 -2
  6. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/example_provisioner.py +2 -2
  7. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/function_click.py +3 -3
  8. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/main.py +10 -3
  9. systemlink_cli-2.5.2/slcli/migration/__init__.py +1 -0
  10. systemlink_cli-2.5.2/slcli/migration/api.py +12 -0
  11. systemlink_cli-2.5.2/slcli/migration/connection.py +83 -0
  12. systemlink_cli-2.5.2/slcli/migration/prefect_server.py +209 -0
  13. systemlink_cli-2.5.2/slcli/migration/workspace_client.py +55 -0
  14. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/notebook_click.py +18 -10
  15. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/pkce.py +46 -7
  16. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/platform.py +63 -43
  17. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/profiles.py +4 -0
  18. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/utils.py +117 -42
  19. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/web_editor.py +2 -2
  20. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_click.py +11 -11
  21. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/LICENSE +0 -0
  22. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/dff-editor/editor.js +0 -0
  23. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/dff-editor/index.html +0 -0
  24. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/__init__.py +0 -0
  25. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/__main__.py +0 -0
  26. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/alarm_click.py +0 -0
  27. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/asset_click.py +0 -0
  28. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/cli_formatters.py +0 -0
  29. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/cli_utils.py +0 -0
  30. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/comment_click.py +0 -0
  31. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/completion_click.py +0 -0
  32. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/config.py +0 -0
  33. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/credentials.py +0 -0
  34. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/dff_click.py +0 -0
  35. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/dff_decorators.py +0 -0
  36. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/example_click.py +0 -0
  37. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/example_loader.py +0 -0
  38. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/README.md +0 -0
  39. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/_schema/schema-v1.0.json +0 -0
  40. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/demo-data-1/README.md +0 -0
  41. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/demo-data-1/config.yaml +0 -0
  42. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/demo-data-2/README.md +0 -0
  43. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/demo-data-2/config.yaml +0 -0
  44. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/demo-data-3/config.yaml +0 -0
  45. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/demo-data-3/leakage-current-results.json +0 -0
  46. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/demo-data-3/overvoltage-results.json +0 -0
  47. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/demo-data-3/product-xyz-compliance-report.json +0 -0
  48. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/demo-data-3/product-xyz-specification.csv +0 -0
  49. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/demo-data-3/thermal-response-results.json +0 -0
  50. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/exercise-5-1-parametric-insights/README.md +0 -0
  51. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/exercise-5-1-parametric-insights/config.yaml +0 -0
  52. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/exercise-7-1-test-plans/README.md +0 -0
  53. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/exercise-7-1-test-plans/config.yaml +0 -0
  54. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/spec-compliance-notebooks/README.md +0 -0
  55. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/spec-compliance-notebooks/config.yaml +0 -0
  56. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/spec-compliance-notebooks/notebooks/SpecAnalysis_ComplianceCalculation.ipynb +0 -0
  57. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/spec-compliance-notebooks/notebooks/SpecComplianceCalculation.ipynb +0 -0
  58. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/spec-compliance-notebooks/notebooks/SpecfileExtractionAndIngestion.ipynb +0 -0
  59. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/examples/spec-compliance-notebooks/spec_template.xlsx +0 -0
  60. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/feed_click.py +0 -0
  61. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/file_click.py +0 -0
  62. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/function_templates.py +0 -0
  63. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/managed_client/__init__.py +0 -0
  64. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/managed_client/crypto.py +0 -0
  65. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/managed_client/handlers.py +0 -0
  66. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/managed_client/minion.py +0 -0
  67. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/managed_client/models.py +0 -0
  68. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/managed_client/protocol.py +0 -0
  69. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/managed_client/rest.py +0 -0
  70. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/managed_client/state.py +0 -0
  71. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/managed_client/transport.py +0 -0
  72. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/managed_client_click.py +0 -0
  73. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/mcp_click.py +0 -0
  74. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/mcp_reachability.py +0 -0
  75. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/mcp_server.py +0 -0
  76. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/mcp_skills.py +0 -0
  77. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/policy_click.py +0 -0
  78. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/policy_utils.py +0 -0
  79. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/profile_credentials.py +0 -0
  80. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/response_handlers.py +0 -0
  81. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/rich_output.py +0 -0
  82. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/routine_click.py +0 -0
  83. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skill_click.py +0 -0
  84. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/SKILL.md +0 -0
  85. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/evals/COPILOT_BATCH_RUN_PROMPT.md +0 -0
  86. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/evals/README.md +0 -0
  87. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/evals/evals.json +0 -0
  88. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/evals/evals.schema.json +0 -0
  89. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/evals/files/spec-import/battery-specs.csv +0 -0
  90. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/evals/files/webapp-package/icon.svg +0 -0
  91. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/evals/files/webapp-package/nipkg.config.json +0 -0
  92. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/evals/files/webapp-package/webapp-content/index.html +0 -0
  93. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/evals/trigger_evals.json +0 -0
  94. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/analysis-recipes.md +0 -0
  95. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/commands.md +0 -0
  96. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/datasheet-workflow.md +0 -0
  97. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/domain-concepts.md +0 -0
  98. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/example-authoring.md +0 -0
  99. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/filtering.md +0 -0
  100. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/import-specs.min.json +0 -0
  101. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/job-debugging/overview.md +0 -0
  102. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/nipkg/overview.md +0 -0
  103. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/notebook/interfaces.md +0 -0
  104. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/notebook/notebook-patterns.md +0 -0
  105. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/notebook/overview.md +0 -0
  106. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/python-test/overview.md +0 -0
  107. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/routine-examples.md +0 -0
  108. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/troubleshooting.md +0 -0
  109. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/webapp/angular-ui-packages.md +0 -0
  110. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/webapp/deployment.md +0 -0
  111. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/webapp/layout-patterns.md +0 -0
  112. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/webapp/nimble-angular.md +0 -0
  113. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/webapp/overview.md +0 -0
  114. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/webapp/systemlink-services.md +0 -0
  115. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/references/webapp/troubleshooting.md +0 -0
  116. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/scripts/benchmark_iteration.py +0 -0
  117. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/scripts/compare_iteration.py +0 -0
  118. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/scripts/eval_manifest.py +0 -0
  119. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/scripts/grade_eval_response.py +0 -0
  120. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/scripts/grade_iteration.py +0 -0
  121. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/scripts/prepare_eval_prompts.py +0 -0
  122. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/scripts/prepare_eval_workspace.py +0 -0
  123. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/scripts/render_eval_review.py +0 -0
  124. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/skills/slcli/scripts/spec_import_helper.py +0 -0
  125. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/spec_click.py +0 -0
  126. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/ssl_trust.py +0 -0
  127. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/state_click.py +0 -0
  128. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/system_click.py +0 -0
  129. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/system_query_utils.py +0 -0
  130. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/systemlink-logo.svg +0 -0
  131. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/table_utils.py +0 -0
  132. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/tag_click.py +0 -0
  133. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/templates_click.py +0 -0
  134. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/testmonitor_click.py +0 -0
  135. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/universal_handlers.py +0 -0
  136. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/user_click.py +0 -0
  137. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/version_click.py +0 -0
  138. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_bootstrap.py +0 -0
  139. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/.gitignore +0 -0
  140. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/README.md +0 -0
  141. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/angular.json +0 -0
  142. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/package.json +0 -0
  143. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/scripts/filter-sbom.js +0 -0
  144. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/app-routing.module.ts +0 -0
  145. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/app.component.html +0 -0
  146. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/app.component.scss +0 -0
  147. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/app.component.ts +0 -0
  148. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/app.module.ts +0 -0
  149. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/core/layout/app-shell.component.html +0 -0
  150. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/core/layout/app-shell.component.scss +0 -0
  151. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/core/layout/app-shell.component.ts +0 -0
  152. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/core/state/app-view-state.service.ts +0 -0
  153. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/core/systemlink/systemlink-context.service.ts +0 -0
  154. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/core/systemlink/systemlink-locale.ts +0 -0
  155. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/core/systemlink/theme-sync.service.ts +0 -0
  156. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/core/systemlink/webapp-home-data.service.ts +0 -0
  157. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/assets/assets-page.component.html +0 -0
  158. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/assets/assets-page.component.scss +0 -0
  159. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/assets/assets-page.component.ts +0 -0
  160. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/datasets/datasets-page.component.html +0 -0
  161. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/datasets/datasets-page.component.scss +0 -0
  162. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/datasets/datasets-page.component.ts +0 -0
  163. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/home/home-page.component.html +0 -0
  164. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/home/home-page.component.scss +0 -0
  165. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/home/home-page.component.ts +0 -0
  166. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/master-detail/master-detail-page.component.html +0 -0
  167. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/master-detail/master-detail-page.component.scss +0 -0
  168. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/master-detail/master-detail-page.component.ts +0 -0
  169. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/operations/operations-page.component.html +0 -0
  170. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/operations/operations-page.component.scss +0 -0
  171. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/operations/operations-page.component.ts +0 -0
  172. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/settings/settings-page.component.html +0 -0
  173. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/settings/settings-page.component.scss +0 -0
  174. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/features/settings/settings-page.component.ts +0 -0
  175. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/shared/components/empty-state.component.html +0 -0
  176. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/shared/components/empty-state.component.scss +0 -0
  177. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/shared/components/empty-state.component.ts +0 -0
  178. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/shared/components/error-banner.component.html +0 -0
  179. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/shared/components/error-banner.component.scss +0 -0
  180. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/shared/components/error-banner.component.ts +0 -0
  181. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/shared/components/loading-state.component.html +0 -0
  182. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/shared/components/loading-state.component.scss +0 -0
  183. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/shared/components/loading-state.component.ts +0 -0
  184. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/app/shared/states/view-state.model.ts +0 -0
  185. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/assets/README.md +0 -0
  186. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/index.html +0 -0
  187. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/locale/messages.de.json +0 -0
  188. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/locale/messages.en.json +0 -0
  189. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/locale/messages.es.json +0 -0
  190. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/locale/messages.fr.json +0 -0
  191. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/locale/messages.ja.json +0 -0
  192. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/locale/messages.ko.json +0 -0
  193. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/locale/messages.zh.json +0 -0
  194. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/localize.d.ts +0 -0
  195. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/main.ts +0 -0
  196. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/src/styles.scss +0 -0
  197. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/tsconfig.app.json +0 -0
  198. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/webapp_templates/angular/blank/tsconfig.json +0 -0
  199. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/workflow_preview.py +0 -0
  200. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/workflows_click.py +0 -0
  201. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/workitem_click.py +0 -0
  202. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/workspace_click.py +0 -0
  203. {systemlink_cli-2.4.5 → systemlink_cli-2.5.2}/slcli/workspace_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: systemlink-cli
3
- Version: 2.4.5
3
+ Version: 2.5.2
4
4
  Summary: SystemLink Integrator CLI - cross-platform CLI for SystemLink workflows and templates.
5
5
  License-File: LICENSE
6
6
  Author: Fred Visser
@@ -12,6 +12,7 @@ Classifier: Programming Language :: Python :: 3.13
12
12
  Classifier: Programming Language :: Python :: 3.14
13
13
  Provides-Extra: managed-client
14
14
  Provides-Extra: mcp
15
+ Provides-Extra: migration
15
16
  Requires-Dist: anyio (>=4.14.2,<5) ; extra == "mcp"
16
17
  Requires-Dist: click (>=7.1.2)
17
18
  Requires-Dist: cryptography (>=49.0.0)
@@ -23,6 +24,9 @@ Requires-Dist: keyring (>=25.6.0,<26.0.0)
23
24
  Requires-Dist: mcp (>=2,<3) ; extra == "mcp"
24
25
  Requires-Dist: msgpack (>=1.1,<2) ; extra == "managed-client"
25
26
  Requires-Dist: packaging (>=21.0)
27
+ Requires-Dist: prefect (>=3.8.6,<4) ; extra == "migration"
28
+ Requires-Dist: psutil (>=7,<8) ; extra == "migration"
29
+ Requires-Dist: pydantic (>=2.9,<3) ; extra == "migration"
26
30
  Requires-Dist: pygments (>=2.20.0)
27
31
  Requires-Dist: pyyaml (>=6.0.3,<7.0.0)
28
32
  Requires-Dist: questionary (>=2.1.1,<3.0.0)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "systemlink-cli"
3
- version = "2.4.5"
3
+ version = "2.5.2"
4
4
  description = "SystemLink Integrator CLI - cross-platform CLI for SystemLink workflows and templates."
5
5
  authors = ["Fred Visser <fred.visser@emerson.com>"]
6
6
  packages = [{ include = "slcli" }]
@@ -40,6 +40,9 @@ rich = ">=15,<16"
40
40
  rich-click = ">=1.8,<2"
41
41
  cryptography = ">=49.0.0"
42
42
  pygments = ">=2.20.0"
43
+ prefect = { version = ">=3.8.6,<4", optional = true }
44
+ psutil = { version = ">=7,<8", optional = true }
45
+ pydantic = { version = ">=2.9,<3", optional = true }
43
46
  msgpack = { version = ">=1.1,<2", optional = true }
44
47
  mcp = { version = ">=2,<3", optional = true }
45
48
  anyio = { version = ">=4.14.2,<5", optional = true }
@@ -49,12 +52,13 @@ httpcore2 = { version = ">=2.10.0,<3", optional = true }
49
52
  [tool.poetry.extras]
50
53
  managed-client = ["msgpack"]
51
54
  mcp = ["mcp", "anyio", "httpx2", "httpcore2"]
55
+ migration = ["prefect", "psutil", "pydantic"]
52
56
 
53
57
 
54
58
  [tool.poetry.group.dev.dependencies]
55
59
  # Lint
56
60
  cyclonedx-bom = "^7.0.0"
57
- setuptools = ">=83,<84"
61
+ setuptools = ">=84,<85"
58
62
  black = ">=26.3.1"
59
63
  flake8 = ">=7.3.0"
60
64
  flake8-black = ">=0.4.0"
@@ -77,9 +81,12 @@ pytest-timeout = ">=2.1.0"
77
81
  pyinstaller = "^6.14.2"
78
82
  jsonschema = ">=4.0"
79
83
  msgpack = ">=1.1,<2"
84
+ prefect = ">=3.8.6,<4"
85
+ psutil = ">=7,<8"
80
86
 
81
87
  # Typed stubs for third-party libraries used by mypy in CI
82
88
  types-requests = "*"
89
+ types-psutil = "*"
83
90
  types-tabulate = "*"
84
91
 
85
92
  # Changelog and release management
@@ -104,6 +111,8 @@ filterwarnings = [
104
111
  ]
105
112
  markers = [
106
113
  "e2e: marks tests as end-to-end tests (not run by default)",
114
+ "e2e_migration: marks migration end-to-end tests",
115
+ "full_os_client_matrix: marks tests requiring full supported-OS client coverage",
107
116
  "slow: marks tests as slow running",
108
117
  "notebook: marks tests as notebook-related",
109
118
  "dff: marks tests as dynamic form fields related",
@@ -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.4.5"
4
+ __version__ = "2.5.2"
@@ -36,7 +36,7 @@ from .ssl_trust import (
36
36
  save_managed_certificate,
37
37
  )
38
38
  from .table_utils import output_formatted_list
39
- from .utils import ExitCodes, get_base_url_resolution
39
+ from .utils import ExitCodes, build_ssl_verify, get_base_url_resolution
40
40
 
41
41
  API_KEY_LENGTH = 42
42
42
  API_KEY_PATTERN = re.compile(rf"^[A-Za-z0-9_-]{{{API_KEY_LENGTH}}}$")
@@ -196,11 +196,17 @@ def _trust_certificate_if_requested(
196
196
  )
197
197
 
198
198
  try:
199
- save_managed_certificate(certificate)
199
+ trusted_path = save_managed_certificate(certificate)
200
+ # Retry against exactly the certificate the user just approved.
201
+ trusted_ssl_verify = str(trusted_path)
200
202
  if auth_scheme == "bearer":
201
- retry_status = check_web_server_auth(url, credential, auth_scheme=auth_scheme)
203
+ retry_status = check_web_server_auth(
204
+ url, credential, auth_scheme=auth_scheme, ssl_verify=trusted_ssl_verify
205
+ )
202
206
  else:
203
- retry_status = check_service_status(url, credential, auth_scheme=auth_scheme)
207
+ retry_status = check_service_status(
208
+ url, credential, auth_scheme=auth_scheme, ssl_verify=trusted_ssl_verify
209
+ )
204
210
  except (OSError, ValueError) as exc:
205
211
  _exit_with_validation_error(
206
212
  f"Could not save the trusted certificate: {exc}. Profile was not saved.",
@@ -220,7 +226,7 @@ def _trust_certificate_if_requested(
220
226
 
221
227
 
222
228
  def _add_profile_impl(
223
- profile: Optional[str],
229
+ profile_name: Optional[str],
224
230
  url: Optional[str],
225
231
  api_key: Optional[str],
226
232
  web_url: Optional[str],
@@ -233,6 +239,7 @@ def _add_profile_impl(
233
239
  scopes: tuple[str, ...] = (),
234
240
  callback_port: Optional[int] = None,
235
241
  credential_store: str = "os",
242
+ ssl_verify: bool = True,
236
243
  ) -> None:
237
244
  """Shared implementation for add-profile and login commands.
238
245
 
@@ -240,7 +247,7 @@ def _add_profile_impl(
240
247
  and login commands. Both commands invoke this function with the same parameters.
241
248
 
242
249
  Args:
243
- profile: Profile name (default: 'default')
250
+ profile_name: Profile name (default: 'default')
244
251
  url: SystemLink API URL
245
252
  api_key: SystemLink API key
246
253
  web_url: SystemLink Web UI base URL
@@ -253,12 +260,13 @@ def _add_profile_impl(
253
260
  scopes: OAuth scopes for the PKCE login
254
261
  callback_port: Optional loopback callback port; zero selects an ephemeral port
255
262
  credential_store: Store for profile API keys and PKCE credentials
263
+ ssl_verify: Whether to verify TLS certificates for this profile's hosts
256
264
  """
257
265
  # Get profile name
258
- if not profile:
259
- profile = click.prompt("Profile name", default="default")
260
- assert isinstance(profile, str)
261
- profile = _normalize_profile_name(profile)
266
+ if not profile_name:
267
+ profile_name = click.prompt("Profile name", default="default")
268
+ assert isinstance(profile_name, str)
269
+ profile_name = _normalize_profile_name(profile_name)
262
270
 
263
271
  # Get URL - either from flag or prompt
264
272
  if not url:
@@ -292,7 +300,12 @@ def _add_profile_impl(
292
300
  pkce_result: Any = None
293
301
  pkce_scopes = list(scopes) if scopes else ["openid", "profile", "email", "offline_access"]
294
302
  if auth_mode == "pkce":
295
- certificate_status = check_web_server_auth(web_url, "", auth_scheme="bearer")
303
+ certificate_status = check_web_server_auth(
304
+ web_url,
305
+ "",
306
+ auth_scheme="bearer",
307
+ ssl_verify=build_ssl_verify(web_url, enabled=ssl_verify),
308
+ )
296
309
  if certificate_status.get("certificate_error") and not certificate_status.get(
297
310
  "server_reachable"
298
311
  ):
@@ -315,10 +328,19 @@ def _add_profile_impl(
315
328
  click.echo("Opening the SystemLink Web UI for authentication...")
316
329
  try:
317
330
  if callback_port is None:
318
- pkce_result = perform_pkce_login(web_url, client_id, pkce_scopes)
331
+ pkce_result = perform_pkce_login(
332
+ web_url,
333
+ client_id,
334
+ pkce_scopes,
335
+ ssl_verify=build_ssl_verify(web_url, enabled=ssl_verify),
336
+ )
319
337
  else:
320
338
  pkce_result = perform_pkce_login(
321
- web_url, client_id, pkce_scopes, callback_port=callback_port
339
+ web_url,
340
+ client_id,
341
+ pkce_scopes,
342
+ callback_port=callback_port,
343
+ ssl_verify=build_ssl_verify(web_url, enabled=ssl_verify),
322
344
  )
323
345
  except PkceError as exc:
324
346
  _exit_with_validation_error(f"PKCE login failed: {exc}")
@@ -329,9 +351,16 @@ def _add_profile_impl(
329
351
  # Validate PKCE against the Web Server identity route; API-key login retains API probes.
330
352
  click.echo("Checking server connectivity and services...")
331
353
  if auth_mode == "pkce":
332
- status = check_web_server_auth(web_url, api_key, auth_scheme="bearer")
354
+ status = check_web_server_auth(
355
+ web_url,
356
+ api_key,
357
+ auth_scheme="bearer",
358
+ ssl_verify=build_ssl_verify(web_url, enabled=ssl_verify),
359
+ )
333
360
  else:
334
- status = check_service_status(url, api_key)
361
+ status = check_service_status(
362
+ url, api_key, ssl_verify=build_ssl_verify(url, enabled=ssl_verify)
363
+ )
335
364
 
336
365
  if status.get("certificate_error") and not status.get("server_reachable"):
337
366
  validation_url = web_url if auth_mode == "pkce" else url
@@ -345,7 +374,12 @@ def _add_profile_impl(
345
374
 
346
375
  platform = status["platform"]
347
376
  if auth_mode == "pkce":
348
- platform_status = check_service_status(web_url, api_key, auth_scheme="bearer")
377
+ platform_status = check_service_status(
378
+ web_url,
379
+ api_key,
380
+ auth_scheme="bearer",
381
+ ssl_verify=build_ssl_verify(web_url, enabled=ssl_verify),
382
+ )
349
383
  detected_platform = platform_status.get("platform")
350
384
  if detected_platform in (PLATFORM_SLE, PLATFORM_SLS):
351
385
  platform = detected_platform
@@ -422,7 +456,7 @@ def _add_profile_impl(
422
456
  # Create profile
423
457
  cfg = ProfileConfig.load()
424
458
  new_profile = Profile(
425
- name=profile,
459
+ name=profile_name,
426
460
  server=url,
427
461
  api_key=api_key or "",
428
462
  web_url=web_url,
@@ -432,6 +466,7 @@ def _add_profile_impl(
432
466
  auth_mode=auth_mode,
433
467
  pkce_client_id=client_id if auth_mode == "pkce" else None,
434
468
  pkce_scopes=pkce_scopes if auth_mode == "pkce" else None,
469
+ ssl_verify=ssl_verify,
435
470
  credential_store=credential_store,
436
471
  )
437
472
  if auth_mode == "pkce" and pkce_result is not None:
@@ -452,13 +487,15 @@ def _add_profile_impl(
452
487
  for warning in warnings:
453
488
  click.echo(f"⚠️ {warning}", err=True)
454
489
 
455
- click.echo(f"\n✓ Profile '{profile}' saved successfully.")
490
+ click.echo(f"\n✓ Profile '{profile_name}' saved successfully.")
456
491
  click.echo(f" Server: {url}")
457
492
  click.echo(f" Web URL: {web_url}")
458
493
  if workspace:
459
494
  click.echo(f" Default workspace: {workspace}")
460
495
  if readonly:
461
496
  click.echo(f" Readonly mode: enabled (mutation operations disabled)")
497
+ if not ssl_verify:
498
+ click.echo(" TLS verification: disabled for this profile's servers")
462
499
  if set_current:
463
500
  click.echo(f" Set as current profile: yes")
464
501
  click.echo(f"\nConfig file: {ProfileConfig.get_config_path()}")
@@ -1069,6 +1106,11 @@ def register_config_commands(cli: Any) -> None:
1069
1106
  "publish, and disable commands)"
1070
1107
  ),
1071
1108
  )
1109
+ @click.option(
1110
+ "--ssl-verify/--no-ssl-verify",
1111
+ default=True,
1112
+ help="Verify TLS certificates during login and for this profile's servers (default: yes)",
1113
+ )
1072
1114
  @click.option(
1073
1115
  "--trust-fingerprint",
1074
1116
  help="Trust a certificate after its SHA-256 fingerprint matches exactly",
@@ -1086,6 +1128,7 @@ def register_config_commands(cli: Any) -> None:
1086
1128
  workspace: Optional[str],
1087
1129
  set_current: bool,
1088
1130
  readonly: bool,
1131
+ ssl_verify: bool,
1089
1132
  trust_fingerprint: Optional[str],
1090
1133
  ) -> None:
1091
1134
  """Add or update a SystemLink profile.
@@ -1102,7 +1145,7 @@ def register_config_commands(cli: Any) -> None:
1102
1145
  slcli config add --profile test --workspace "Testing" --readonly
1103
1146
  """
1104
1147
  _add_profile_impl(
1105
- profile=profile,
1148
+ profile_name=profile,
1106
1149
  url=url,
1107
1150
  api_key=api_key,
1108
1151
  web_url=web_url,
@@ -1114,5 +1157,6 @@ def register_config_commands(cli: Any) -> None:
1114
1157
  workspace=workspace,
1115
1158
  set_current=set_current,
1116
1159
  readonly=readonly,
1160
+ ssl_verify=ssl_verify,
1117
1161
  trust_fingerprint=trust_fingerprint,
1118
1162
  )
@@ -18,7 +18,7 @@ from .utils import (
18
18
  format_success,
19
19
  get_base_url,
20
20
  get_headers,
21
- get_ssl_verify,
21
+ active_profile_ssl_verify,
22
22
  get_workspace_map,
23
23
  handle_api_error,
24
24
  load_json_file,
@@ -645,7 +645,7 @@ def _post_arrow_append(table_id: str, input_path: str, end_of_data: bool) -> req
645
645
  url,
646
646
  headers=get_headers("application/vnd.apache.arrow.stream"),
647
647
  data=arrow_file,
648
- verify=get_ssl_verify(),
648
+ verify=active_profile_ssl_verify(),
649
649
  )
650
650
  response.raise_for_status()
651
651
  return response
@@ -22,7 +22,7 @@ from .utils import (
22
22
  escape_filter_value,
23
23
  get_base_url,
24
24
  get_headers,
25
- get_ssl_verify,
25
+ active_profile_ssl_verify,
26
26
  make_api_request,
27
27
  sanitize_filename,
28
28
  )
@@ -1508,7 +1508,7 @@ class ExampleProvisioner:
1508
1508
  package_url,
1509
1509
  stream=True,
1510
1510
  timeout=int(source.get("timeout", props.get("timeout", 300))),
1511
- verify=get_ssl_verify(package_url),
1511
+ verify=active_profile_ssl_verify(package_url),
1512
1512
  )
1513
1513
  try:
1514
1514
  response.raise_for_status()
@@ -24,7 +24,7 @@ from .utils import (
24
24
  ExitCodes,
25
25
  get_base_url,
26
26
  get_headers,
27
- get_ssl_verify,
27
+ active_profile_ssl_verify,
28
28
  get_workspace_id_with_fallback,
29
29
  get_workspace_map,
30
30
  handle_api_error,
@@ -716,7 +716,7 @@ def register_function_commands(cli: Any) -> None:
716
716
  url,
717
717
  files=files, # type: ignore
718
718
  headers=get_headers(""),
719
- verify=get_ssl_verify(),
719
+ verify=active_profile_ssl_verify(),
720
720
  )
721
721
  resp.raise_for_status()
722
722
  else:
@@ -933,7 +933,7 @@ def register_function_commands(cli: Any) -> None:
933
933
  url,
934
934
  files=files,
935
935
  headers=get_headers(""),
936
- verify=get_ssl_verify(),
936
+ verify=active_profile_ssl_verify(),
937
937
  )
938
938
  resp.raise_for_status()
939
939
  click.echo("✓ Function definition updated successfully")
@@ -290,9 +290,9 @@ def _probe_tls_connection(api_url: str, ssl_verify: Union[bool, str]) -> List[Tu
290
290
 
291
291
  def _collect_info_debug_rows(api_url: str) -> List[Tuple[str, str]]:
292
292
  """Return structured connection diagnostics for info --debug."""
293
- from .utils import get_ssl_verify
293
+ from .utils import active_profile_ssl_verify
294
294
 
295
- ssl_verify = get_ssl_verify(api_url)
295
+ ssl_verify = active_profile_ssl_verify(api_url)
296
296
  rows = [
297
297
  ("SSL Verify", "enabled" if ssl_verify else "disabled"),
298
298
  ("CA Source", _get_ca_source_display()),
@@ -431,6 +431,11 @@ def ca_info() -> None:
431
431
  "publish, and disable commands)"
432
432
  ),
433
433
  )
434
+ @click.option(
435
+ "--ssl-verify/--no-ssl-verify",
436
+ default=True,
437
+ help="Verify TLS certificates during login and for this profile's servers (default: yes)",
438
+ )
434
439
  @click.option(
435
440
  "--trust-fingerprint",
436
441
  help="Trust a certificate after its SHA-256 fingerprint matches exactly",
@@ -448,6 +453,7 @@ def login(
448
453
  workspace: Optional[str],
449
454
  set_current: bool,
450
455
  readonly: bool,
456
+ ssl_verify: bool,
451
457
  trust_fingerprint: Optional[str],
452
458
  ) -> None:
453
459
  """Create or update a SystemLink profile with credentials.
@@ -467,7 +473,7 @@ def login(
467
473
 
468
474
  # Invoke the shared implementation
469
475
  _add_profile_impl(
470
- profile=profile,
476
+ profile_name=profile,
471
477
  url=url,
472
478
  api_key=api_key,
473
479
  web_url=web_url,
@@ -479,6 +485,7 @@ def login(
479
485
  workspace=workspace,
480
486
  set_current=set_current,
481
487
  readonly=readonly,
488
+ ssl_verify=ssl_verify,
482
489
  trust_fingerprint=trust_fingerprint,
483
490
  )
484
491
 
@@ -0,0 +1 @@
1
+ """Migration support loaded by the optional migrate command."""
@@ -0,0 +1,12 @@
1
+ """Shared conventions for typed SystemLink API models used by migration."""
2
+
3
+ from pydantic import BaseModel, ConfigDict
4
+ from pydantic.alias_generators import to_camel
5
+
6
+ REQUEST_TIMEOUT_SECONDS = 30
7
+
8
+
9
+ class ApiModel(BaseModel):
10
+ """Immutable view of a camelCase API payload that ignores unused fields."""
11
+
12
+ model_config = ConfigDict(alias_generator=to_camel, populate_by_name=True, frozen=True)
@@ -0,0 +1,83 @@
1
+ """Profile-explicit SystemLink connections for migration operations."""
2
+
3
+ from dataclasses import dataclass, field
4
+ from typing import Dict, Optional, Union
5
+
6
+ import click
7
+ import requests
8
+ from requests.adapters import HTTPAdapter
9
+ from urllib3.util.retry import Retry
10
+
11
+ from slcli.profiles import Profile, ProfileConfig
12
+ from slcli.utils import get_auth_headers, profile_ssl_verify, resolve_profile_auth
13
+
14
+ # Policy for read-only queries, including POST query endpoints, which are safe to replay.
15
+ # Destination writes will need a stricter policy that never replays ambiguous failures.
16
+ _QUERY_RETRY = Retry(
17
+ total=5,
18
+ backoff_factor=0.5,
19
+ status_forcelist=(429, 500, 502, 503, 504),
20
+ allowed_methods=frozenset({"GET", "POST"}),
21
+ respect_retry_after_header=True,
22
+ raise_on_status=False,
23
+ )
24
+
25
+
26
+ @dataclass(frozen=True)
27
+ class MigrationConnection:
28
+ """Endpoint, authentication, and TLS settings from one explicitly named profile."""
29
+
30
+ profile_name: str
31
+ base_url: str
32
+ headers: Dict[str, str] = field(repr=False)
33
+ ssl_verify: Union[bool, str] = True
34
+
35
+ def create_session(self) -> requests.Session:
36
+ """Return a query session bound to this connection's credentials and TLS."""
37
+ session = requests.Session()
38
+ session.headers.update(self.headers)
39
+ session.verify = self.ssl_verify
40
+ adapter = HTTPAdapter(max_retries=_QUERY_RETRY)
41
+ session.mount("https://", adapter)
42
+ session.mount("http://", adapter)
43
+ return session
44
+
45
+
46
+ def _require(value: Optional[str], profile: Profile, description: str) -> str:
47
+ if not value:
48
+ raise click.ClickException(f"Profile '{profile.name}' does not define {description}")
49
+ return value
50
+
51
+
52
+ def resolve_migration_connection(
53
+ profile_name: str, config: Optional[ProfileConfig] = None
54
+ ) -> MigrationConnection:
55
+ """Resolve one named profile as a unit.
56
+
57
+ The current profile, ``SLCLI_PROFILE``, and ``SLCLI_API_URL``/``_API_KEY``/
58
+ ``_WEB_URL`` environment overrides are deliberately ignored, including during
59
+ PKCE token refresh. TLS follows normal CLI policy for this profile:
60
+ ``SLCLI_SSL_VERIFY``, the profile's ``ssl-verify``, managed trust, CA bundles.
61
+
62
+ Args:
63
+ profile_name: Name of the profile to resolve.
64
+ config: Profile configuration; loaded from the user config when None.
65
+ """
66
+ profile = (config or ProfileConfig.load()).get_profile(profile_name)
67
+ if profile is None:
68
+ raise click.ClickException(f"Profile '{profile_name}' not found")
69
+
70
+ # PKCE bearer tokens are accepted by the Web Server route, not the API route.
71
+ if profile.auth_mode == "pkce":
72
+ base_url = _require(profile.web_url, profile, "a Web UI URL")
73
+ else:
74
+ base_url = _require(profile.server, profile, "a server URL")
75
+ base_url = base_url.rstrip("/")
76
+
77
+ # For PKCE, base_url is the Web URL, so refresh and requests share one TLS setting.
78
+ ssl_verify = profile_ssl_verify(base_url, profile)
79
+ auth = resolve_profile_auth(profile)
80
+ if auth is None:
81
+ raise click.ClickException(f"Profile '{profile.name}' does not define an API key")
82
+ headers = get_auth_headers(auth.value, auth.scheme)
83
+ return MigrationConnection(profile.name, base_url, headers, ssl_verify)