mcp-souschef 3.0.0__py3-none-any.whl → 3.5.1__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.
@@ -1,46 +0,0 @@
1
- souschef/__init__.py,sha256=Wh2DPfy1eWvoA8u1fNr_bY5TPEJvHZMVJ76TtxpmPxM,1521
2
- souschef/assessment.py,sha256=YOv-EgZHmiBV9IiCxNOi4fYwGl8_0ntoU2kKMgERUTc,93256
3
- souschef/ci/__init__.py,sha256=GHaqDk4auB2kI7_fQtF2FRg5nP-iX6wJchj_uTlXcYg,411
4
- souschef/ci/common.py,sha256=kDqIC9cTUN398NgM29cn8HmMjckxvEQ5ENclOZRS8fw,4746
5
- souschef/ci/github_actions.py,sha256=EVnnOPTLCeUmTfR-acpLp-c_dxapMfrrDWaK4SSBkdM,7818
6
- souschef/ci/gitlab_ci.py,sha256=4FcK8edci3ixuiUtYb6EFaAfsqjz0OBmW-lyPLH3YzY,6708
7
- souschef/ci/jenkins_pipeline.py,sha256=XEuZrVKVmOlQOKucgGcd3vhAFh5qT05ILNnjKjkqTPU,7362
8
- souschef/cli.py,sha256=yB6xo8YqDEWwTgD0RHGHcWFfOrK6fIKM7CRxDcGYgQg,37291
9
- souschef/converters/__init__.py,sha256=kkPm758XiFDdUYvdVPAVjssFvf15LasJcob1EY1EMIs,681
10
- souschef/converters/cookbook_specific.py,sha256=ZvE9-bZtyXuf2E3HW4E9_GWzAqtm7e4YHj9qm1Xu_XI,3767
11
- souschef/converters/cookbook_specific.py.backup,sha256=9XycZz6oNNTEtLINo0hHNR3df-pbZIkLprhLniE2ENI,3468
12
- souschef/converters/habitat.py,sha256=4eVGAcX0576zLXW9yqYvuaRxOK2g6BOIJo_ws-PonHU,22516
13
- souschef/converters/playbook.py,sha256=Ll6gAmUNr30LYGRY3p2eT28knvoKl1LuMI-WxaZZ8PY,91909
14
- souschef/converters/resource.py,sha256=NYMcp1-obg_ad_XPuYDuUH_0j65agRbAeWzXPfbSi5c,13570
15
- souschef/converters/template.py,sha256=swX7LpWrKZgFtg6MaR7rltShBkPDbQAb65d1NF_nILo,5447
16
- souschef/core/__init__.py,sha256=80a0G6wQGfh-Z7U1gsFaeC97bM4sp_3YGil-lN02Pl0,1894
17
- souschef/core/constants.py,sha256=AyIpc9cJjQEDc1yOcoKc_2-cJB4PekSpPKEK2S9jDl8,5122
18
- souschef/core/errors.py,sha256=zj_LHDRxUvHmcs-nZjOWu4B_MhY5WVq2okyZOxyycCI,8605
19
- souschef/core/metrics.py,sha256=k56opuVmRorrBwErbxLgXu_GkfGZXA_rEfhcsHs1JHI,9850
20
- souschef/core/path_utils.py,sha256=2hG6joupZR_08MMpHHbv2KKOFu-8tMafuQMqV0_1Nqw,1790
21
- souschef/core/ruby_utils.py,sha256=vUeFZBdjbFFFJlwo4fIboR23rXmbcYL2Tztt4RYhps0,1043
22
- souschef/core/validation.py,sha256=DXfkm1p5prSAJ-Oruk5JekNiDFI49Dql1bGEzKymYXs,19158
23
- souschef/deployment.py,sha256=ZCrVK5Ik4TbVfoJ3dS1-6FNUzxfIE6kni5Fnj3rIbCk,61908
24
- souschef/filesystem/__init__.py,sha256=2H7Pdeedz0MfmgpRlmii_vx61qr0jtxFndT0APPm6Qs,142
25
- souschef/filesystem/operations.py,sha256=OMMozBfV_o70b47KioiZ2i6HViiUQPE5mVBeKcKFepo,1654
26
- souschef/parsers/__init__.py,sha256=gF-vPslzs9iLxsaDzFnWDPpYFDAIwyAifjUwzYurPLg,1104
27
- souschef/parsers/attributes.py,sha256=JmgFaYjlT0i2__hCk6hSqZRjq4xJaTdGsBDgHEu3ItY,18239
28
- souschef/parsers/habitat.py,sha256=CtVgLfmpo7SLp-ADyR-DXRYaRUur3bwJjlnpLyocMhc,10483
29
- souschef/parsers/inspec.py,sha256=zhlIDZmE6A9qws5gnrLxhGGBfHOebNTLWpZZI-XXTkU,34209
30
- souschef/parsers/metadata.py,sha256=laSxlsebsgTzRDM_B8eIXddeApbR4ATm-W4GAGucZpc,6324
31
- souschef/parsers/recipe.py,sha256=guhEttS_AyT2kckbde3_-kAyGoR4JyFMNZFAP5V1XIM,7090
32
- souschef/parsers/resource.py,sha256=EHxmojbQ7Hx5GsL5-x9mFBYk3FhGTpx-qw1uUVKQkRo,5348
33
- souschef/parsers/template.py,sha256=iOHMoQH7KkPzigTyyoxav8rb2ENYmfxgcvKGqvoYkgU,10532
34
- souschef/profiling.py,sha256=a6Pn57CZR3UPR1YIY8gfbuTPRuPkFrfIFBmctOcaZgY,17315
35
- souschef/server.py,sha256=JJyGSAHzbMxL2PMJVdlLlmNjXESjo6MUmjniNXGdSnc,111463
36
- souschef/ui/__init__.py,sha256=U3W6X4ww7CxQVuetcocObWn5iY6lUFiNX7WoDBJeD34,195
37
- souschef/ui/app.py,sha256=DlUeYP7eqw76JqIGGHCb13kP1qzq0Rj4X1pEN1_eW-Y,101409
38
- souschef/ui/health_check.py,sha256=mEzec8L6XPRekOBAXngqQz5dnzal-a4p3D70mkPriiA,903
39
- souschef/ui/pages/ai_settings.py,sha256=tIwgWBqxCEqFykmrLRPiVQjl-m-I1Mbq0RoB1YA5faM,17774
40
- souschef/ui/pages/cookbook_analysis.py,sha256=92LRrRMi_YbjOLN-zhNH4ZYnO0HK_OMA--CPSYn2I1E,123424
41
- souschef/ui/pages/validation_reports.py,sha256=R3xHTJb_y2b0tI8N0qPF1oS4f9ZVb539_82dj5nmmxA,7593
42
- mcp_souschef-3.0.0.dist-info/METADATA,sha256=B96FJM5QKIJCGLMaXqSrR5NLue-3Y9x8nnigYvcuYHw,54133
43
- mcp_souschef-3.0.0.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
44
- mcp_souschef-3.0.0.dist-info/entry_points.txt,sha256=NVSk61tLG4W0xEkWGOMXAVCIUyodyZCY_j3Z_0m6rkQ,80
45
- mcp_souschef-3.0.0.dist-info/licenses/LICENSE,sha256=t31dYSuvYYNw6trj-coWSsLK-Tg_Iyl8ObcolQcrUKM,1078
46
- mcp_souschef-3.0.0.dist-info/RECORD,,
@@ -1,109 +0,0 @@
1
- """Cookbook-specific resource conversions for common infrastructure cookbooks."""
2
-
3
- from typing import Any
4
-
5
- # Cookbook-specific include_recipe mappings
6
- # Maps cookbook names to their primary package installation parameters
7
- COOKBOOK_PACKAGE_MAPPINGS: dict[str, dict[str, Any]] = {
8
- "nodejs": {
9
- "module": "ansible.builtin.apt",
10
- "params": {"name": ["nodejs", "npm"], "state": "present", "update_cache": True}
11
- },
12
- "apache2": {
13
- "module": "ansible.builtin.apt",
14
- "params": {"name": "apache2", "state": "present", "update_cache": True}
15
- },
16
- "mysql": {
17
- "module": "ansible.builtin.apt",
18
- "params": {"name": "mysql-server", "state": "present", "update_cache": True}
19
- },
20
- "docker": {
21
- "module": "ansible.builtin.apt",
22
- "params": {
23
- "name": ["docker-ce", "docker-ce-cli", "containerd.io"],
24
- "state": "present",
25
- "update_cache": True
26
- }
27
- },
28
- }
29
-
30
-
31
- def get_cookbook_package_config(cookbook_name: str) -> dict[str, Any] | None:
32
- """
33
- Get package installation configuration for a specific cookbook.
34
-
35
- Args:
36
- cookbook_name: Name of the cookbook (e.g., 'nodejs', 'apache2').
37
-
38
- Returns:
39
- Dictionary with 'module' and 'params' keys, or None if not found.
40
- """
41
- return COOKBOOK_PACKAGE_MAPPINGS.get(cookbook_name)
42
-
43
-
44
- # Cookbook-specific resource type mappings
45
- # Maps resource types that are specific to certain cookbooks
46
- COOKBOOK_RESOURCE_MAPPINGS: dict[str, dict[str, Any]] = {
47
- "nodejs_npm": {
48
- "description": "Node.js npm package installation",
49
- "params_builder": "_build_nodejs_npm_params",
50
- },
51
- }
52
-
53
-
54
- def _build_nodejs_npm_params(
55
- resource_name: str, action: str, props: dict[str, Any]
56
- ) -> dict[str, Any]:
57
- """Build parameters for nodejs_npm resources."""
58
- from souschef.converters.resource import _normalize_template_value
59
-
60
- params = {"name": resource_name, "global": True}
61
- if "version" in props:
62
- params["version"] = _normalize_template_value(props["version"])
63
- if action == "install":
64
- params["state"] = "present"
65
- elif action == "remove":
66
- params["state"] = "absent"
67
- else:
68
- params["state"] = "present"
69
- return params
70
-
71
-
72
- def get_cookbook_resource_config(resource_type: str) -> dict[str, Any] | None:
73
- """
74
- Get configuration for cookbook-specific resource types.
75
-
76
- Args:
77
- resource_type: The resource type (e.g., 'nodejs_npm').
78
-
79
- Returns:
80
- Dictionary with resource configuration, or None if not found.
81
- """
82
- return COOKBOOK_RESOURCE_MAPPINGS.get(resource_type)
83
-
84
-
85
- def build_cookbook_resource_params(
86
- resource_type: str, resource_name: str, action: str, props: dict[str, Any]
87
- ) -> dict[str, Any] | None:
88
- """
89
- Build parameters for cookbook-specific resource types.
90
-
91
- Args:
92
- resource_type: The resource type.
93
- resource_name: The resource name.
94
- action: The Chef action.
95
- props: Parsed properties dictionary.
96
-
97
- Returns:
98
- Dictionary of Ansible module parameters, or None if not supported.
99
- """
100
- config = get_cookbook_resource_config(resource_type)
101
- if not config:
102
- return None
103
-
104
- builder_name = config.get("params_builder")
105
- if builder_name == "_build_nodejs_npm_params":
106
- return _build_nodejs_npm_params(resource_name, action, props)
107
-
108
- return None</content>
109
- <parameter name="filePath">/workspaces/souschef/souschef/converters/cookbook_specific.py