cliops 1.0.4__py3-none-any.whl → 3.2.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.
- {cliops-1.0.4.dist-info → cliops-3.2.1.dist-info}/METADATA +3 -3
- {cliops-1.0.4.dist-info → cliops-3.2.1.dist-info}/RECORD +7 -7
- core/optimizer.py +10 -3
- {cliops-1.0.4.dist-info → cliops-3.2.1.dist-info}/WHEEL +0 -0
- {cliops-1.0.4.dist-info → cliops-3.2.1.dist-info}/entry_points.txt +0 -0
- {cliops-1.0.4.dist-info → cliops-3.2.1.dist-info}/licenses/LICENSE +0 -0
- {cliops-1.0.4.dist-info → cliops-3.2.1.dist-info}/top_level.txt +0 -0
@@ -1,10 +1,10 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: cliops
|
3
|
-
Version:
|
3
|
+
Version: 3.2.1
|
4
4
|
Summary: Advanced CLI tool for structured, pattern-based prompt optimization and state management
|
5
5
|
Home-page: https://github.com/cliops/cliops
|
6
|
-
Author:
|
7
|
-
Author-email:
|
6
|
+
Author: cliops by mabd
|
7
|
+
Author-email: iammabd@substack.com
|
8
8
|
Project-URL: Bug Reports, https://github.com/cliops/cliops/issues
|
9
9
|
Project-URL: Source, https://github.com/cliops/cliops
|
10
10
|
Project-URL: Documentation, https://cliops.readthedocs.io
|
@@ -1,14 +1,14 @@
|
|
1
1
|
main.py,sha256=YwzFPWB6QDtjK7r9gKA9tixEgD_7_b7gXoj6Q2ETCqk,9255
|
2
2
|
presets.py,sha256=DKIfhwxtBZEC5fYHgXqhuBKou7KYQks_2M8cR3IeWao,3172
|
3
|
-
cliops-
|
3
|
+
cliops-3.2.1.dist-info/licenses/LICENSE,sha256=2J5KKebeJ2AdMaxuYA1fX0ZuDs9MmWp3cpjZX-JqrZs,1079
|
4
4
|
core/__init__.py,sha256=aWl7MZaubJNqrafNCM5VRYg4SZ7sdifrxTWrJC8d-_s,24
|
5
5
|
core/analyzer.py,sha256=mwMmrlV-Pk31mMfKs0NPqBqY3cpNwCq_DWwGaurjPzI,4328
|
6
6
|
core/config.py,sha256=aoYCLt-EFM7WiR3_QN049_cfz9_SODuqnErte07DTVM,1388
|
7
|
-
core/optimizer.py,sha256=
|
7
|
+
core/optimizer.py,sha256=h0zSmJLPHCZQsqdG5_qcpjzMqm8F2U4-Q2xbFJSFsjE,6456
|
8
8
|
core/patterns.py,sha256=BWiwb5fjQbWHLsJ68p0QbtSddFqzhYx3AeLkSY-WKbU,6464
|
9
9
|
core/state.py,sha256=BeosHqAwT3tcicaQs-gJabz2jrtwQp8t7J0ziGXv_QI,2668
|
10
|
-
cliops-
|
11
|
-
cliops-
|
12
|
-
cliops-
|
13
|
-
cliops-
|
14
|
-
cliops-
|
10
|
+
cliops-3.2.1.dist-info/METADATA,sha256=2MEwbChJylI84WX395oFHi6mah_IBB4lNrZzCt2N1Ug,4076
|
11
|
+
cliops-3.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
12
|
+
cliops-3.2.1.dist-info/entry_points.txt,sha256=F8ZncVlnk83ELj0TGXUYS-qYvmaP-owQyU20I7jRefg,37
|
13
|
+
cliops-3.2.1.dist-info/top_level.txt,sha256=dV-NRp_bb_IkCFfEXDbA1mHA5SshVNbUsxaF809itG8,18
|
14
|
+
cliops-3.2.1.dist-info/RECORD,,
|
core/optimizer.py
CHANGED
@@ -101,10 +101,17 @@ class PromptOptimizer:
|
|
101
101
|
for key in extracted_fields:
|
102
102
|
template_fields[key] = extracted_fields[key]
|
103
103
|
|
104
|
-
# Inject CLI state
|
104
|
+
# Inject CLI state with safe attribute access
|
105
|
+
class StateObject:
|
106
|
+
def __init__(self, state_dict):
|
107
|
+
for key, value in state_dict.items():
|
108
|
+
setattr(self, key, value)
|
109
|
+
|
110
|
+
def __getattr__(self, name):
|
111
|
+
return getattr(self, name, 'Not set')
|
112
|
+
|
105
113
|
cli_state_values = {key: self.cli_state.get(key) for key in self.cli_state.state.keys()}
|
106
|
-
|
107
|
-
template_fields['STATE'] = StateObject()
|
114
|
+
template_fields['STATE'] = StateObject(cli_state_values)
|
108
115
|
|
109
116
|
# Apply explicit CLI argument overrides
|
110
117
|
for key, value in overrides.items():
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|