op3 0.1.1__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.
op3-0.1.1/.env ADDED
@@ -0,0 +1,23 @@
1
+ # pfix Configuration
2
+ # Self-healing Python — auto-fixes runtime errors via LLM
3
+
4
+ # Required: OpenRouter API key (https://openrouter.ai/keys)
5
+ OPENROUTER_API_KEY=
6
+
7
+ # Model (default: openrouter/qwen/qwen3-coder-next)
8
+ LLM_MODEL=openrouter/qwen/qwen3-coder-next
9
+
10
+ # Behavior
11
+ PFIX_AUTO_APPLY=true # true = apply fixes without asking
12
+ PFIX_AUTO_INSTALL_DEPS=true # true = auto pip/uv install
13
+ PFIX_AUTO_RESTART=false # true = os.execv restart after fix
14
+ PFIX_MAX_RETRIES=3
15
+ PFIX_DRY_RUN=false
16
+ PFIX_ENABLED=true
17
+
18
+ # Git integration
19
+ PFIX_GIT_COMMIT=false # true = auto-commit fixes
20
+ PFIX_GIT_PREFIX=pfix: # commit message prefix
21
+
22
+ # Backup
23
+ PFIX_CREATE_BACKUPS=false # false = disable .pfix_backups/ directory
op3-0.1.1/.env.example ADDED
@@ -0,0 +1,23 @@
1
+ # pfix Configuration
2
+ # Self-healing Python — auto-fixes runtime errors via LLM
3
+
4
+ # Required: OpenRouter API key (https://openrouter.ai/keys)
5
+ OPENROUTER_API_KEY=
6
+
7
+ # Model (default: openrouter/qwen/qwen3-coder-next)
8
+ LLM_MODEL=openrouter/qwen/qwen3-coder-next
9
+
10
+ # Behavior
11
+ PFIX_AUTO_APPLY=true # true = apply fixes without asking
12
+ PFIX_AUTO_INSTALL_DEPS=true # true = auto pip/uv install
13
+ PFIX_AUTO_RESTART=false # true = os.execv restart after fix
14
+ PFIX_MAX_RETRIES=3
15
+ PFIX_DRY_RUN=false
16
+ PFIX_ENABLED=true
17
+
18
+ # Git integration
19
+ PFIX_GIT_COMMIT=false # true = auto-commit fixes
20
+ PFIX_GIT_PREFIX=pfix: # commit message prefix
21
+
22
+ # Backup
23
+ PFIX_CREATE_BACKUPS=false # false = disable .pfix_backups/ directory
op3-0.1.1/.gitignore ADDED
@@ -0,0 +1,289 @@
1
+ .env.vps.example
2
+ .env
3
+ frontend/.playwright-browsers
4
+ .playwright-browsers
5
+ backend/.env.example
6
+ dsl/.env.example
7
+ firmware/.env.example
8
+ site/.env.example
9
+ .idea
10
+ tests/ui/
11
+ frontend/tests/ui/visual-regression.spec.js-snapshots
12
+ visual-regression.spec.js-snapshots
13
+ screenshots/
14
+ fixPI/.env
15
+ fixPI/.venv/
16
+ /logs
17
+ logs/
18
+ .zip
19
+ Cargo.lock
20
+ backups/
21
+ frontend/playwright-report/
22
+ frontend/test-results/
23
+ venv
24
+ frontend/.lint-backup
25
+ node_modules
26
+ package-lock.json
27
+ # package-lock.json is committed for reproducible Docker builds (npm ci)
28
+ # Byte-compiled / optimized / DLL files
29
+ __pycache__/
30
+ *.py[codz]
31
+ *$py.class
32
+
33
+ # C extensions
34
+ *.so
35
+
36
+ # Distribution / packaging
37
+ .Python
38
+ build/
39
+ develop-eggs/
40
+ dist/
41
+ downloads/
42
+ eggs/
43
+ .eggs/
44
+ lib/
45
+ lib64/
46
+ parts/
47
+ sdist/
48
+ var/
49
+ wheels/
50
+ share/python-wheels/
51
+ *.egg-info/
52
+ .installed.cfg
53
+ *.egg
54
+ MANIFEST
55
+
56
+ # PyInstaller
57
+ # Usually these files are written by a python script from a template
58
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
59
+ *.manifest
60
+ *.spec
61
+
62
+ # Installer logs
63
+ pip-log.txt
64
+ pip-delete-this-directory.txt
65
+
66
+ # Unit test / coverage reports
67
+ htmlcov/
68
+ .tox/
69
+ .nox/
70
+ .coverage
71
+ .coverage.*
72
+ .cache
73
+ nosetests.xml
74
+ coverage.xml
75
+ *.cover
76
+ *.py.cover
77
+ .hypothesis/
78
+ .pytest_cache/
79
+ cover/
80
+
81
+ # Translations
82
+ *.mo
83
+ *.pot
84
+
85
+ # Django stuff:
86
+ *.log
87
+ local_settings.py
88
+ db.sqlite3
89
+ db.sqlite3-journal
90
+
91
+ # Flask stuff:
92
+ instance/
93
+ .webassets-cache
94
+
95
+ # Scrapy stuff:
96
+ .scrapy
97
+
98
+ # Sphinx documentation
99
+ docs/_build/
100
+
101
+ # PyBuilder
102
+ .pybuilder/
103
+ target/
104
+
105
+ # Jupyter Notebook
106
+ .ipynb_checkpoints
107
+
108
+ # IPython
109
+ profile_default/
110
+ ipython_config.py
111
+
112
+ # pyenv
113
+ # For a library or package, you might want to ignore these files since the code is
114
+ # intended to run in multiple environments; otherwise, check them in:
115
+ # .python-version
116
+
117
+ # pipenv
118
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
119
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
120
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
121
+ # install all needed dependencies.
122
+ #Pipfile.lock
123
+
124
+ # UV
125
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
126
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
127
+ # commonly ignored for libraries.
128
+ #uv.lock
129
+
130
+ # poetry
131
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
132
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
133
+ # commonly ignored for libraries.
134
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
135
+ #poetry.lock
136
+ #poetry.toml
137
+
138
+ # pdm
139
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
140
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
141
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
142
+ #pdm.lock
143
+ #pdm.toml
144
+ .pdm-python
145
+ .pdm-build/
146
+
147
+ # pixi
148
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
149
+ #pixi.lock
150
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
151
+ # in the .venv directory. It is recommended not to include this directory in version control.
152
+ .pixi
153
+
154
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
155
+ __pypackages__/
156
+
157
+ # Celery stuff
158
+ celerybeat-schedule
159
+ celerybeat.pid
160
+
161
+ # SageMath parsed files
162
+ *.sage.py
163
+
164
+ # Environments
165
+ !.env
166
+ .envrc
167
+ .venv
168
+ env/
169
+ venv/
170
+ ENV/
171
+ env.bak/
172
+ venv.bak/
173
+
174
+ # Spyder project settings
175
+ .spyderproject
176
+ .spyproject
177
+
178
+ # Rope project settings
179
+ .ropeproject
180
+
181
+ # mkdocs documentation (disabled — site/ is our docs project)
182
+ # /site
183
+
184
+ # mypy
185
+ .mypy_cache/
186
+ .dmypy.json
187
+ dmypy.json
188
+
189
+ # Pyre type checker
190
+ .pyre/
191
+
192
+ # pytype static type analyzer
193
+ .pytype/
194
+
195
+ # Cython debug symbols
196
+ cython_debug/
197
+
198
+ # PyCharm
199
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
200
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
201
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
202
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
203
+ #.idea/
204
+
205
+ # Abstra
206
+ # Abstra is an AI-powered process automation framework.
207
+ # Ignore directories containing user credentials, local state, and settings.
208
+ # Learn more at https://abstra.io/docs
209
+ .abstra/
210
+
211
+ # Visual Studio Code
212
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
213
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
214
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
215
+ # you could uncomment the following to ignore the entire vscode folder
216
+ # .vscode/
217
+
218
+ # Ruff stuff:
219
+ .ruff_cache/
220
+
221
+ # PyPI configuration file
222
+ .pypirc
223
+
224
+ # Cursor
225
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
226
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
227
+ # refer to https://docs.cursor.com/context/ignore-files
228
+ .cursorignore
229
+ .cursorindexingignore
230
+
231
+ # Marimo
232
+ marimo/_static/
233
+ marimo/_lsp/
234
+ __marimo__/
235
+
236
+ # Generated test artifacts and local data
237
+ # (avoid adding rapidly changing files created by test/e2e scripts)
238
+ frontend/tests/all-pages-documentation.md
239
+ frontend/tests/all-pages-list.json
240
+ frontend/tests/test-all-pages-curl.sh
241
+ frontend/tests/e2e-uniqueness-report.json
242
+ frontend/tmp/
243
+ syntax-report.json
244
+ _archive/syntax-report.json
245
+ _archive/TODO.old.md
246
+ _archive/analysis_result.md
247
+ tmp/
248
+
249
+ # K8s secrets (never commit actual keys)
250
+ **/secret.env
251
+ !**/secret.env.example
252
+
253
+ # Local databases
254
+ backend/*.db
255
+ *.db
256
+ backend/*.sqlite
257
+
258
+ # Pendrive / storage data (keep folder structure via .gitkeep, ignore actual data)
259
+ pendrive/logs/system/*.log
260
+ pendrive/logs/app/*.log
261
+ pendrive/stats/daily/stats-*.json
262
+ pendrive/stats/aggregated/stats-*.json
263
+ pendrive/templates/scenarios-*.json
264
+ pendrive/templates/xml-templates/
265
+ pendrive/templates/dsl/
266
+ pendrive/reports/pdf/*.pdf
267
+ pendrive/reports/xml/*.xml
268
+ pendrive/.device_info
269
+ pendrive/.sync_manifest
270
+ pendrive/README.txt
271
+ # Local stats/restart cache (~/.identification-kiosk/stats/)
272
+
273
+ # Toon project files (large binary)
274
+ project.toon
275
+ project.functions.toon
276
+
277
+ # Makefile backup (from refactoring)
278
+ Makefile.bak
279
+
280
+ # VPS-specific env overrides
281
+ .env.vps
282
+
283
+ # Docs site generated files
284
+ site/public/docs/
285
+ site/public/docs-manifest.json
286
+ site/public/artifacts/*.deb
287
+ site/public/artifacts/*.AppImage
288
+ site/public/artifacts/*.msi
289
+ site/public/artifacts/*.exe
op3-0.1.1/CHANGELOG.md ADDED
@@ -0,0 +1,28 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.1.1] - 2026-04-21
11
+
12
+ ### Docs
13
+ - Update README.md
14
+
15
+ ### Test
16
+ - Update tests/test_op3.py
17
+
18
+ ### Other
19
+ - Update .env
20
+ - Update .env.example
21
+ - Update VERSION
22
+
23
+ ## [0.0.1] - 2026-04-21
24
+
25
+ ### Other
26
+ - Update .gitignore
27
+ - Update project.sh
28
+
op3-0.1.1/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
op3-0.1.1/PKG-INFO ADDED
@@ -0,0 +1,34 @@
1
+ Metadata-Version: 2.4
2
+ Name: op3
3
+ Version: 0.1.1
4
+ Summary: op3 package
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ Requires-Python: >=3.10
8
+ Provides-Extra: dev
9
+ Requires-Dist: costs>=0.1.20; extra == 'dev'
10
+ Requires-Dist: goal>=2.1.0; extra == 'dev'
11
+ Requires-Dist: pfix>=0.1.60; extra == 'dev'
12
+ Requires-Dist: pytest>=7.0; extra == 'dev'
13
+ Description-Content-Type: text/markdown
14
+
15
+ # op3
16
+
17
+
18
+ ## AI Cost Tracking
19
+
20
+ ![PyPI](https://img.shields.io/badge/pypi-costs-blue) ![Version](https://img.shields.io/badge/version-0.1.1-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
21
+ ![AI Cost](https://img.shields.io/badge/AI%20Cost-$0.15-orange) ![Human Time](https://img.shields.io/badge/Human%20Time-2.0h-blue) ![Model](https://img.shields.io/badge/Model-openrouter%2Fqwen%2Fqwen3--coder--next-lightgrey)
22
+
23
+ - 🤖 **LLM usage:** $0.1500 (1 commits)
24
+ - 👤 **Human dev:** ~$200 (2.0h @ $100/h, 30min dedup)
25
+
26
+ Generated on 2026-04-21 using [openrouter/qwen/qwen3-coder-next](https://openrouter.ai/qwen/qwen3-coder-next)
27
+
28
+ ---
29
+
30
+
31
+
32
+ ## License
33
+
34
+ Licensed under Apache-2.0.
op3-0.1.1/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # op3
2
+
3
+
4
+ ## AI Cost Tracking
5
+
6
+ ![PyPI](https://img.shields.io/badge/pypi-costs-blue) ![Version](https://img.shields.io/badge/version-0.1.1-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
7
+ ![AI Cost](https://img.shields.io/badge/AI%20Cost-$0.15-orange) ![Human Time](https://img.shields.io/badge/Human%20Time-2.0h-blue) ![Model](https://img.shields.io/badge/Model-openrouter%2Fqwen%2Fqwen3--coder--next-lightgrey)
8
+
9
+ - 🤖 **LLM usage:** $0.1500 (1 commits)
10
+ - 👤 **Human dev:** ~$200 (2.0h @ $100/h, 30min dedup)
11
+
12
+ Generated on 2026-04-21 using [openrouter/qwen/qwen3-coder-next](https://openrouter.ai/qwen/qwen3-coder-next)
13
+
14
+ ---
15
+
16
+
17
+
18
+ ## License
19
+
20
+ Licensed under Apache-2.0.
op3-0.1.1/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.1
op3-0.1.1/goal.yaml ADDED
@@ -0,0 +1,512 @@
1
+ # goal.yaml - Goal configuration file
2
+ # Generated: 2026-04-21 16:55:29
3
+ # Documentation: https://github.com/wronai/goal#configuration
4
+ #
5
+ # This file configures Goal's behavior for:
6
+ # - Version management (semver/calver)
7
+ # - Commit message generation
8
+ # - Changelog updates
9
+ # - Build/test/publish strategies
10
+ # - Registry authentication
11
+ #
12
+ # Edit this file to customize Goal's behavior for your project.
13
+
14
+ version: '1.0'
15
+ project:
16
+ name: op3
17
+ type:
18
+ - python
19
+ description: ''
20
+ versioning:
21
+ strategy: semver
22
+ files:
23
+ - VERSION
24
+ - pyproject.toml:version
25
+ - src/op3/__init__.py:__version__
26
+ bump_rules:
27
+ patch: 10
28
+ minor: 50
29
+ major: 200
30
+ git:
31
+ commit:
32
+ strategy: conventional
33
+ scope: op3
34
+ abstraction_level: auto
35
+ abstraction_levels:
36
+ high: '{type}({domain}): {benefit}'
37
+ medium: '{type}({domain}): {action} {entities}'
38
+ low: '{type}({domain}): update {file_count} files (+{added}/-{deleted})'
39
+ domain_mapping:
40
+ goal/*.py: core
41
+ src/*.py: core
42
+ lib/*.py: core
43
+ app/*.py: app
44
+ api/*.py: api
45
+ docs/*: docs
46
+ tests/*: test
47
+ test/*: test
48
+ '*.md': docs
49
+ '*.rst': docs
50
+ pyproject.toml: build
51
+ setup.py: build
52
+ setup.cfg: build
53
+ package.json: build
54
+ Cargo.toml: build
55
+ goal.yaml: config
56
+ .github/*: ci
57
+ .gitlab-ci.yml: ci
58
+ Dockerfile: docker
59
+ docker-compose.yml: docker
60
+ benefit_keywords:
61
+ config: better configuration management
62
+ cli: improved CLI experience
63
+ api: enhanced API functionality
64
+ test: improved test coverage
65
+ docs: better documentation
66
+ auth: enhanced security
67
+ perf: improved performance
68
+ refactor: cleaner code architecture
69
+ fix: resolved issues
70
+ feat: new functionality
71
+ templates:
72
+ feat:
73
+ high: 'feat({domain}): {benefit}'
74
+ medium: 'feat({domain}): add {entities}'
75
+ low: 'feat({domain}): add {file_count} files (+{added}/-{deleted})'
76
+ fix:
77
+ high: 'fix({domain}): {benefit}'
78
+ medium: 'fix({domain}): resolve {entities}'
79
+ low: 'fix({domain}): update {file_count} files (+{added}/-{deleted})'
80
+ docs:
81
+ high: 'docs({domain}): {benefit}'
82
+ medium: 'docs({domain}): document {entities}'
83
+ low: 'docs({domain}): update {file_count} files'
84
+ refactor:
85
+ high: 'refactor({domain}): {benefit}'
86
+ medium: 'refactor({domain}): restructure {entities}'
87
+ low: 'refactor({domain}): update {file_count} files'
88
+ test:
89
+ high: 'test({domain}): {benefit}'
90
+ medium: 'test({domain}): add tests for {entities}'
91
+ low: 'test({domain}): update {file_count} files'
92
+ build:
93
+ high: 'build({domain}): {benefit}'
94
+ medium: 'build({domain}): configure {entities}'
95
+ low: 'build({domain}): update {file_count} files'
96
+ chore:
97
+ high: 'chore({domain}): {benefit}'
98
+ medium: 'chore({domain}): update {entities}'
99
+ low: 'chore({domain}): update {file_count} files'
100
+ style:
101
+ high: 'style({domain}): {benefit}'
102
+ medium: 'style({domain}): format {entities}'
103
+ low: 'style({domain}): update {file_count} files'
104
+ perf:
105
+ high: 'perf({domain}): {benefit}'
106
+ medium: 'perf({domain}): optimize {entities}'
107
+ low: 'perf({domain}): update {file_count} files'
108
+ classify_by:
109
+ - file_extensions
110
+ - directory_paths
111
+ - line_stats
112
+ - keywords_diff
113
+ - code_entities
114
+ value_patterns:
115
+ configuration:
116
+ signatures:
117
+ - config
118
+ - yaml
119
+ - toml
120
+ - settings
121
+ - options
122
+ impact: better configuration management
123
+ changelog_section: core
124
+ cli:
125
+ signatures:
126
+ - click.
127
+ - '@click'
128
+ - command
129
+ - option
130
+ - argparse
131
+ impact: improved CLI experience
132
+ changelog_section: core
133
+ api:
134
+ signatures:
135
+ - endpoint
136
+ - route
137
+ - request
138
+ - response
139
+ - handler
140
+ impact: enhanced API functionality
141
+ changelog_section: core
142
+ testing:
143
+ signatures:
144
+ - test_
145
+ - assert
146
+ - mock
147
+ - fixture
148
+ - pytest
149
+ impact: improved test coverage
150
+ changelog_section: test
151
+ documentation:
152
+ paths:
153
+ - docs/*
154
+ - '*.md'
155
+ - README*
156
+ impact: comprehensive documentation
157
+ changelog_section: docs
158
+ performance:
159
+ signatures:
160
+ - cache
161
+ - async
162
+ - parallel
163
+ - optimize
164
+ - speed
165
+ impact: performance improvements
166
+ changelog_section: core
167
+ security:
168
+ signatures:
169
+ - auth
170
+ - token
171
+ - permission
172
+ - encrypt
173
+ - secure
174
+ impact: security enhancements
175
+ changelog_section: core
176
+ formatting:
177
+ signatures:
178
+ - format
179
+ - render
180
+ - template
181
+ - markdown
182
+ - output
183
+ impact: improved output formatting
184
+ changelog_section: core
185
+ relations:
186
+ config → cli: configuration-driven CLI
187
+ config → core: configurable core logic
188
+ test → core: better test coverage
189
+ docs → core: improved documentation
190
+ changelog:
191
+ enabled: true
192
+ template: keep-a-changelog
193
+ output: CHANGELOG.md
194
+ sections:
195
+ - Added
196
+ - Changed
197
+ - Fixed
198
+ - Deprecated
199
+ - Removed
200
+ - Security
201
+ group_by_domain: true
202
+ domain_sections:
203
+ core:
204
+ - feat
205
+ - fix
206
+ - refactor
207
+ - perf
208
+ docs:
209
+ - docs
210
+ test:
211
+ - test
212
+ build:
213
+ - build
214
+ - chore
215
+ ci:
216
+ - ci
217
+ include_entities: true
218
+ max_entities_per_entry: 5
219
+ tag:
220
+ enabled: true
221
+ prefix: v
222
+ format: '{prefix}{version}'
223
+ strategies:
224
+ python:
225
+ test: pytest tests/ -v
226
+ build: python -m build
227
+ publish: twine upload dist/op3-{version}*
228
+ publish_enabled: true
229
+ dependencies:
230
+ file: requirements.txt
231
+ lock: pip freeze > requirements.txt
232
+ nodejs:
233
+ test: npm test
234
+ build: npm run build
235
+ publish: npm publish
236
+ publish_enabled: true
237
+ dependencies:
238
+ file: package-lock.json
239
+ lock: npm install
240
+ rust:
241
+ test: cargo test
242
+ build: cargo build --release
243
+ publish: cargo publish
244
+ publish_enabled: true
245
+ dependencies:
246
+ file: Cargo.lock
247
+ lock: cargo update
248
+ registries:
249
+ pypi:
250
+ url: https://pypi.org/simple/
251
+ token_env: PYPI_TOKEN
252
+ npm:
253
+ url: https://registry.npmjs.org/
254
+ token_env: NPM_TOKEN
255
+ hooks:
256
+ pre_commit: ''
257
+ post_commit: ''
258
+ pre_push: ''
259
+ post_push: ''
260
+ advanced:
261
+ auto_update_config: true
262
+ performance:
263
+ max_files: 50
264
+ timeout_test: 300
265
+ file_validation:
266
+ max_file_size_mb: 10
267
+ block_large_files: true
268
+ detect_api_tokens: true
269
+ auto_manage_gitignore: true
270
+ auto_add_dot_folders: true
271
+ auto_handle_large_files: true
272
+ known_dot_folders:
273
+ - .idea
274
+ - .vscode
275
+ - .DS_Store
276
+ - Thumbs.db
277
+ - .pytest_cache
278
+ - .coverage
279
+ - .mypy_cache
280
+ - .tox
281
+ - .nox
282
+ - .venv
283
+ - .env
284
+ - .python-version
285
+ - .ruff_cache
286
+ - .cursorignore
287
+ - .cursorindexingignore
288
+ - .code2llm_cache
289
+ - .llm
290
+ - managed_components
291
+ - .gui-agent.pid
292
+ - .gui-server.pid
293
+ - .gui-server.log
294
+ token_patterns:
295
+ - ghp_[a-zA-Z0-9]{36}
296
+ - gho_[a-zA-Z0-9]{36}
297
+ - ghu_[a-zA-Z0-9]{36}
298
+ - ghs_[a-zA-Z0-9]{36}
299
+ - ghr_[a-zA-Z0-9]{36}
300
+ - ghs_[a-zA-Z0-9]{36}
301
+ - AKIA[0-9A-Z]{16}
302
+ - sk-[a-zA-Z0-9]{48}
303
+ - xoxb-[0-9]{13}-[0-9]{13}-[a-zA-Z0-9]{24}
304
+ - xoxp-[0-9]{13}-[0-9]{13}-[0-9]{13}-[a-zA-Z0-9]{24}
305
+ - glpat-[a-zA-Z0-9_-]{20}
306
+ - pk_live_[a-zA-Z0-9]{24}
307
+ - pk_test_[a-zA-Z0-9]{24}
308
+ - sk_live_[a-zA-Z0-9]{24}
309
+ - sk_test_[a-zA-Z0-9]{24}
310
+ - '[a-zA-Z0-9_-]{20,}=[a-zA-Z0-9_-]{20,}'
311
+ - Bearer\s+[a-zA-Z0-9_-]{20,}
312
+ - Token\s+[a-zA-Z0-9_-]{20,}
313
+ - '-----BEGIN\s+(RSA\s+)?PRIVATE\s+KEY-----'
314
+ - '-----BEGIN\s+EC\s+PRIVATE\s+KEY-----'
315
+ - '-----BEGIN\s+OPENSSH\s+PRIVATE\s+KEY-----'
316
+ - '-----BEGIN\s+DSA\s+PRIVATE\s+KEY-----'
317
+ - ^[A-Z_]+=[a-zA-Z0-9_-]{20,}
318
+ recovery:
319
+ enabled: true
320
+ auto_offer: true
321
+ create_backup: true
322
+ clean_clone_fallback: true
323
+ strategies:
324
+ auth:
325
+ enabled: true
326
+ try_gh_cli: true
327
+ try_token_auth: true
328
+ large_files:
329
+ enabled: true
330
+ max_size_mb: 100
331
+ auto_lfs: false
332
+ default_action: remove
333
+ divergent_history:
334
+ enabled: true
335
+ default_action: rebase
336
+ auto_rebase: false
337
+ corrupted_objects:
338
+ enabled: true
339
+ run_fsck: true
340
+ run_gc: true
341
+ lfs:
342
+ enabled: true
343
+ auto_install: false
344
+ auto_pull: true
345
+ force_push:
346
+ enabled: true
347
+ require_confirmation: true
348
+ prefer_force_with_lease: true
349
+ quality:
350
+ commit_summary:
351
+ min_value_words: 3
352
+ max_generic_terms: 0
353
+ required_metrics: 2
354
+ relation_threshold: 0.7
355
+ generic_terms:
356
+ - update
357
+ - improve
358
+ - enhance
359
+ - fix
360
+ - change
361
+ - modify
362
+ - cleaner
363
+ - better
364
+ - refactor
365
+ - misc
366
+ enhanced_summary:
367
+ enabled: true
368
+ min_capabilities: 1
369
+ min_value_score: 50
370
+ include_metrics: true
371
+ include_relations: true
372
+ include_roles: true
373
+ gates:
374
+ max_complexity_percent: 200
375
+ max_duplicate_relations: 0
376
+ min_unique_files_ratio: 0.8
377
+ min_capabilities: 1
378
+ max_banned_words: 0
379
+ role_patterns:
380
+ _analyze_(python|js|generic)_diff: language-specific code analyzer
381
+ CodeChangeAnalyzer: AST-based change detector
382
+ analyze_file_diff: diff analysis engine
383
+ generate_functional_summary: business value summarizer
384
+ generate.*message: commit message generator
385
+ EnhancedSummaryGenerator: enterprise changelog generator
386
+ GoalConfig: configuration manager
387
+ '@click\.command': CLI command
388
+ '@click\.option': CLI option
389
+ format_.*result: output formatter
390
+ _calculate_complexity: complexity analyzer
391
+ value_patterns:
392
+ ast_analysis:
393
+ signatures:
394
+ - ast.parse
395
+ - ast.walk
396
+ - libcst
397
+ - tree-sitter
398
+ - AST
399
+ capability: deep code analysis engine
400
+ impact: intelligent change detection
401
+ dependency_graph:
402
+ signatures:
403
+ - networkx
404
+ - relations
405
+ - dependencies
406
+ - graph
407
+ capability: code relationship mapping
408
+ impact: architecture understanding
409
+ quality_metrics:
410
+ signatures:
411
+ - radon
412
+ - cyclomatic
413
+ - complexity
414
+ - coverage
415
+ capability: code quality metrics
416
+ impact: maintainability tracking
417
+ multi_language:
418
+ signatures:
419
+ - _analyze_python
420
+ - _analyze_js
421
+ - language
422
+ - parser
423
+ capability: multi-language support
424
+ impact: universal code analysis
425
+ commit_message:
426
+ min_length: 15
427
+ max_length: 72
428
+ max_entities: 5
429
+ require_type: true
430
+ require_scope: true
431
+ changelog:
432
+ min_entries_per_release: 1
433
+ max_file_lines: 10
434
+ include_commit_hash: true
435
+ code_parsers:
436
+ python:
437
+ extract:
438
+ - 'def '
439
+ - 'class '
440
+ - 'async def '
441
+ - '@click.'
442
+ - '@app.'
443
+ - '@router.'
444
+ ignore:
445
+ - 'import '
446
+ - 'from '
447
+ - '#'
448
+ - '"""'
449
+ - ''''''''
450
+ entity_pattern: (?:def|class|async def)\s+(\w+)
451
+ javascript:
452
+ extract:
453
+ - 'function '
454
+ - 'const '
455
+ - 'class '
456
+ - 'export '
457
+ - 'async '
458
+ ignore:
459
+ - 'import '
460
+ - //
461
+ - /*
462
+ - '*/'
463
+ entity_pattern: (?:function|class|const)\s+(\w+)
464
+ typescript:
465
+ extract:
466
+ - 'function '
467
+ - 'const '
468
+ - 'class '
469
+ - 'interface '
470
+ - 'type '
471
+ - 'export '
472
+ ignore:
473
+ - 'import '
474
+ - //
475
+ - /*
476
+ - '*/'
477
+ entity_pattern: (?:function|class|const|interface|type)\s+(\w+)
478
+ rust:
479
+ extract:
480
+ - 'fn '
481
+ - 'struct '
482
+ - 'enum '
483
+ - 'impl '
484
+ - 'pub '
485
+ - 'mod '
486
+ ignore:
487
+ - //
488
+ - /*
489
+ - '*/'
490
+ entity_pattern: (?:fn|struct|enum|impl|mod)\s+(\w+)
491
+ go:
492
+ extract:
493
+ - 'func '
494
+ - 'type '
495
+ - 'struct '
496
+ - 'interface '
497
+ ignore:
498
+ - //
499
+ - /*
500
+ - '*/'
501
+ entity_pattern: (?:func|type)\s+(\w+)
502
+ markdown:
503
+ extract:
504
+ - '# '
505
+ - '## '
506
+ - '### '
507
+ - '#### '
508
+ - '- **'
509
+ ignore:
510
+ - <!--
511
+ - -->
512
+ entity_pattern: ^#+\s+(.+)$
op3-0.1.1/project.sh ADDED
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+ clear
4
+
5
+ VENV="venv"
6
+ PIP="$VENV/bin/pip"
7
+
8
+ if [ ! -f "$PIP" ]; then
9
+ echo "Creating virtual environment..."
10
+ python3 -m venv "$VENV"
11
+ fi
12
+
13
+ $PIP install regix --upgrade --quiet
14
+ #$PIP install pyqual --upgrade --quiet
15
+ $PIP install prefact --upgrade --quiet
16
+ $PIP install vallm --upgrade --quiet
17
+ $PIP install redup --upgrade --quiet
18
+ $PIP install glon --upgrade --quiet
19
+ $PIP install goal --upgrade --quiet
20
+ $PIP install code2logic --upgrade --quiet
21
+ $PIP install code2llm --upgrade --quiet
22
+ #$VENV/bin/code2llm ./ -f toon,evolution,code2logic,project-yaml -o ./project --no-chunk
23
+ $VENV/bin/code2llm ./ -f all -o ./project --no-chunk
24
+ #$VENV/bin/code2llm report --format all # → all views
25
+
26
+ $PIP install code2docs --upgrade --quiet
27
+ $VENV/bin/code2docs ./ --readme-only
28
+ $VENV/bin/redup scan . --format toon --output ./project
29
+ #$VENV/bin/redup scan . --functions-only -f toon --output ./project
30
+ #$VENV/bin/vallm batch ./src --recursive --semantic --model qwen2.5-coder:7b
31
+ #$VENV/bin/vallm batch --parallel .
32
+ #$VENV/bin/vallm batch . --recursive --format toon --output ./project
33
+ #$VENV/bin/prefact -a -e "examples/**"
34
+ $PIP install sumd --upgrade --quiet
35
+ $VENV/bin/sumd .
36
+ $VENV/bin/sumr .
@@ -0,0 +1,50 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "op3"
7
+ version = "0.1.1"
8
+ description = "op3 package"
9
+ readme = "README.md"
10
+ license = "Apache-2.0"
11
+ requires-python = ">=3.10"
12
+
13
+ [project.optional-dependencies]
14
+ dev = ["pytest>=7.0",
15
+ "goal>=2.1.0",
16
+ "costs>=0.1.20",
17
+ "pfix>=0.1.60",
18
+ ]
19
+
20
+ [tool.hatch.build.targets.wheel]
21
+ packages = ["src/op3"]
22
+
23
+ [tool.pfix]
24
+ # Self-healing Python configuration
25
+ model = "openrouter/qwen/qwen3-coder-next"
26
+ auto_apply = true
27
+ auto_install_deps = true
28
+ auto_restart = false
29
+ max_retries = 3
30
+ create_backups = false
31
+ git_auto_commit = false
32
+
33
+ [tool.pfix.runtime_todo]
34
+ enabled = true
35
+ todo_file = "TODO.md"
36
+ min_severity = "low"
37
+ deduplicate = true
38
+
39
+ [tool.costs]
40
+ # AI Cost tracking configuration
41
+ badge = true
42
+ update_readme = true
43
+ readme_path = "README.md"
44
+ default_model = "openrouter/qwen/qwen3-coder-next"
45
+ analysis_mode = "byok"
46
+ full_history = true
47
+ max_commits = 500
48
+
49
+ # Cost thresholds for badge colors (USD)
50
+ badge_color_thresholds = { low = 1.0, medium = 5.0, high = 10.0, critical = 50.0 }
@@ -0,0 +1,3 @@
1
+ """op3 package."""
2
+
3
+ __version__ = "0.1.1"
@@ -0,0 +1,11 @@
1
+ """Sample test — auto-generated by goal."""
2
+
3
+
4
+ def test_placeholder():
5
+ """Placeholder test to verify the test setup works."""
6
+ assert True
7
+
8
+
9
+ def test_import():
10
+ """Verify the main package can be imported."""
11
+ import op3 # noqa: F401