sysmlv2copilot 0.2.4__tar.gz → 0.2.5__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.
- {sysmlv2copilot-0.2.4/sysmlv2copilot.egg-info → sysmlv2copilot-0.2.5}/PKG-INFO +1 -1
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/pyproject.toml +1 -1
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/sysmlv2copilot/__init__.py +1 -1
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/sysmlv2copilot/cli.py +22 -19
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5/sysmlv2copilot.egg-info}/PKG-INFO +1 -1
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/CHANGELOG.md +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/LICENSE +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/MANIFEST.in +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/PYPI_README.md +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/README.md +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/examples/README.md +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/examples/client_sdk_basic.py +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/examples/repair_basic.py +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/examples/sdk_smoke_test.py +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/setup.cfg +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/sysmlv2copilot/__main__.py +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/sysmlv2copilot/client.py +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/sysmlv2copilot/convenience.py +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/sysmlv2copilot/exceptions.py +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/sysmlv2copilot/input_utils.py +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/sysmlv2copilot/types.py +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/sysmlv2copilot.egg-info/SOURCES.txt +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/sysmlv2copilot.egg-info/dependency_links.txt +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/sysmlv2copilot.egg-info/entry_points.txt +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/sysmlv2copilot.egg-info/requires.txt +0 -0
- {sysmlv2copilot-0.2.4 → sysmlv2copilot-0.2.5}/sysmlv2copilot.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sysmlv2copilot
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Internal Python client SDK and CLI for the SysML refinement API used by the Visual Design and Engineering Lab at Carnegie Mellon University
|
|
5
5
|
Author: Chance LaVoie
|
|
6
6
|
License-Expression: MIT
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "sysmlv2copilot"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.5"
|
|
8
8
|
description = "Internal Python client SDK and CLI for the SysML refinement API used by the Visual Design and Engineering Lab at Carnegie Mellon University"
|
|
9
9
|
readme = "PYPI_README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -32,6 +32,27 @@ def _add_operation_arguments(
|
|
|
32
32
|
parser.add_argument("--temperature", type=float)
|
|
33
33
|
|
|
34
34
|
|
|
35
|
+
def _normalize_legacy_argv(argv: list[str] | None) -> list[str] | None:
|
|
36
|
+
if argv is None:
|
|
37
|
+
return None
|
|
38
|
+
normalized: list[str] = []
|
|
39
|
+
index = 0
|
|
40
|
+
while index < len(argv):
|
|
41
|
+
current = argv[index]
|
|
42
|
+
following = argv[index + 1] if index + 1 < len(argv) else None
|
|
43
|
+
if current == "responses" and following == "create":
|
|
44
|
+
normalized.append("generate")
|
|
45
|
+
index += 2
|
|
46
|
+
continue
|
|
47
|
+
if current == "repairs" and following == "create":
|
|
48
|
+
normalized.append("repair")
|
|
49
|
+
index += 2
|
|
50
|
+
continue
|
|
51
|
+
normalized.append(current)
|
|
52
|
+
index += 1
|
|
53
|
+
return normalized
|
|
54
|
+
|
|
55
|
+
|
|
35
56
|
def build_parser() -> argparse.ArgumentParser:
|
|
36
57
|
parser = argparse.ArgumentParser(
|
|
37
58
|
prog="sysmlv2copilot",
|
|
@@ -65,24 +86,6 @@ def build_parser() -> argparse.ArgumentParser:
|
|
|
65
86
|
)
|
|
66
87
|
repair_parser.set_defaults(operation="repair")
|
|
67
88
|
|
|
68
|
-
responses_parser = subparsers.add_parser("responses", help=argparse.SUPPRESS)
|
|
69
|
-
responses_subparsers = responses_parser.add_subparsers(dest="responses_command", required=True)
|
|
70
|
-
create_parser = responses_subparsers.add_parser("create", help=argparse.SUPPRESS)
|
|
71
|
-
_add_operation_arguments(
|
|
72
|
-
create_parser,
|
|
73
|
-
inline_help="Inline natural-language input text.",
|
|
74
|
-
)
|
|
75
|
-
create_parser.set_defaults(operation="generate")
|
|
76
|
-
|
|
77
|
-
repairs_parser = subparsers.add_parser("repairs", help=argparse.SUPPRESS)
|
|
78
|
-
repairs_subparsers = repairs_parser.add_subparsers(dest="repairs_command", required=True)
|
|
79
|
-
repair_create_parser = repairs_subparsers.add_parser("create", help=argparse.SUPPRESS)
|
|
80
|
-
_add_operation_arguments(
|
|
81
|
-
repair_create_parser,
|
|
82
|
-
inline_help="Inline SysML input text.",
|
|
83
|
-
)
|
|
84
|
-
repair_create_parser.set_defaults(operation="repair")
|
|
85
|
-
|
|
86
89
|
requests_parser = subparsers.add_parser("requests", help="Fetch a stored request.")
|
|
87
90
|
requests_subparsers = requests_parser.add_subparsers(dest="requests_command", required=True)
|
|
88
91
|
retrieve_parser = requests_subparsers.add_parser("retrieve", help="Retrieve a request by id.")
|
|
@@ -106,7 +109,7 @@ def _print_json(data: Any) -> None:
|
|
|
106
109
|
|
|
107
110
|
def main(argv: list[str] | None = None) -> int:
|
|
108
111
|
parser = build_parser()
|
|
109
|
-
args = parser.parse_args(argv)
|
|
112
|
+
args = parser.parse_args(_normalize_legacy_argv(argv))
|
|
110
113
|
try:
|
|
111
114
|
with SysMLCopilot(api_key=args.api_key, base_url=args.base_url) as client:
|
|
112
115
|
if getattr(args, "operation", None) == "generate":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sysmlv2copilot
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Internal Python client SDK and CLI for the SysML refinement API used by the Visual Design and Engineering Lab at Carnegie Mellon University
|
|
5
5
|
Author: Chance LaVoie
|
|
6
6
|
License-Expression: MIT
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|