oagi-core 0.12.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.
Files changed (124) hide show
  1. oagi_core-0.12.1/.github/ISSUE_TEMPLATE/bug-report.yml +86 -0
  2. oagi_core-0.12.1/.github/ISSUE_TEMPLATE/config.yml +6 -0
  3. oagi_core-0.12.1/.github/ISSUE_TEMPLATE/feature-request.yml +37 -0
  4. oagi_core-0.12.1/.github/ISSUE_TEMPLATE/question.yml +22 -0
  5. oagi_core-0.12.1/.github/workflows/ci.yml +45 -0
  6. oagi_core-0.12.1/.github/workflows/release.yml +59 -0
  7. oagi_core-0.12.1/.gitignore +212 -0
  8. oagi_core-0.12.1/.python-version +1 -0
  9. oagi_core-0.12.1/CONTRIBUTING.md +1 -0
  10. oagi_core-0.12.1/LICENSE +21 -0
  11. oagi_core-0.12.1/Makefile +62 -0
  12. oagi_core-0.12.1/PKG-INFO +325 -0
  13. oagi_core-0.12.1/README.md +281 -0
  14. oagi_core-0.12.1/examples/async_google_weather.py +23 -0
  15. oagi_core-0.12.1/examples/execute_task_auto.py +37 -0
  16. oagi_core-0.12.1/examples/execute_task_manual.py +98 -0
  17. oagi_core-0.12.1/examples/google_weather.py +15 -0
  18. oagi_core-0.12.1/examples/openai_agent_loop_example.py +118 -0
  19. oagi_core-0.12.1/examples/screenshot_with_config.py +70 -0
  20. oagi_core-0.12.1/examples/tasker_agent_example.py +73 -0
  21. oagi_core-0.12.1/metapackage/pyproject.toml +31 -0
  22. oagi_core-0.12.1/metapackage/uv.lock +1652 -0
  23. oagi_core-0.12.1/pyproject.toml +56 -0
  24. oagi_core-0.12.1/src/oagi/__init__.py +146 -0
  25. oagi_core-0.12.1/src/oagi/actor/__init__.py +21 -0
  26. oagi_core-0.12.1/src/oagi/actor/async_.py +118 -0
  27. oagi_core-0.12.1/src/oagi/actor/async_short.py +77 -0
  28. oagi_core-0.12.1/src/oagi/actor/base.py +222 -0
  29. oagi_core-0.12.1/src/oagi/actor/short.py +77 -0
  30. oagi_core-0.12.1/src/oagi/actor/sync.py +116 -0
  31. oagi_core-0.12.1/src/oagi/agent/__init__.py +33 -0
  32. oagi_core-0.12.1/src/oagi/agent/default.py +142 -0
  33. oagi_core-0.12.1/src/oagi/agent/factories.py +162 -0
  34. oagi_core-0.12.1/src/oagi/agent/observer/__init__.py +38 -0
  35. oagi_core-0.12.1/src/oagi/agent/observer/agent_observer.py +99 -0
  36. oagi_core-0.12.1/src/oagi/agent/observer/events.py +28 -0
  37. oagi_core-0.12.1/src/oagi/agent/observer/exporters.py +342 -0
  38. oagi_core-0.12.1/src/oagi/agent/observer/protocol.py +12 -0
  39. oagi_core-0.12.1/src/oagi/agent/observer/report_template.html +474 -0
  40. oagi_core-0.12.1/src/oagi/agent/protocol.py +55 -0
  41. oagi_core-0.12.1/src/oagi/agent/registry.py +155 -0
  42. oagi_core-0.12.1/src/oagi/agent/tasker/__init__.py +33 -0
  43. oagi_core-0.12.1/src/oagi/agent/tasker/memory.py +160 -0
  44. oagi_core-0.12.1/src/oagi/agent/tasker/models.py +77 -0
  45. oagi_core-0.12.1/src/oagi/agent/tasker/planner.py +421 -0
  46. oagi_core-0.12.1/src/oagi/agent/tasker/taskee_agent.py +546 -0
  47. oagi_core-0.12.1/src/oagi/agent/tasker/tasker_agent.py +339 -0
  48. oagi_core-0.12.1/src/oagi/cli/__init__.py +11 -0
  49. oagi_core-0.12.1/src/oagi/cli/agent.py +328 -0
  50. oagi_core-0.12.1/src/oagi/cli/display.py +57 -0
  51. oagi_core-0.12.1/src/oagi/cli/main.py +77 -0
  52. oagi_core-0.12.1/src/oagi/cli/server.py +94 -0
  53. oagi_core-0.12.1/src/oagi/cli/tracking.py +55 -0
  54. oagi_core-0.12.1/src/oagi/cli/utils.py +90 -0
  55. oagi_core-0.12.1/src/oagi/client/__init__.py +12 -0
  56. oagi_core-0.12.1/src/oagi/client/async_.py +261 -0
  57. oagi_core-0.12.1/src/oagi/client/base.py +403 -0
  58. oagi_core-0.12.1/src/oagi/client/sync.py +259 -0
  59. oagi_core-0.12.1/src/oagi/constants.py +48 -0
  60. oagi_core-0.12.1/src/oagi/exceptions.py +118 -0
  61. oagi_core-0.12.1/src/oagi/handler/__init__.py +55 -0
  62. oagi_core-0.12.1/src/oagi/handler/_macos.py +192 -0
  63. oagi_core-0.12.1/src/oagi/handler/_windows.py +101 -0
  64. oagi_core-0.12.1/src/oagi/handler/async_pyautogui_action_handler.py +52 -0
  65. oagi_core-0.12.1/src/oagi/handler/async_screenshot_maker.py +47 -0
  66. oagi_core-0.12.1/src/oagi/handler/capslock_manager.py +55 -0
  67. oagi_core-0.12.1/src/oagi/handler/pil_image.py +102 -0
  68. oagi_core-0.12.1/src/oagi/handler/pyautogui_action_handler.py +264 -0
  69. oagi_core-0.12.1/src/oagi/handler/screenshot_maker.py +41 -0
  70. oagi_core-0.12.1/src/oagi/handler/utils.py +21 -0
  71. oagi_core-0.12.1/src/oagi/logging.py +55 -0
  72. oagi_core-0.12.1/src/oagi/server/__init__.py +13 -0
  73. oagi_core-0.12.1/src/oagi/server/agent_wrappers.py +98 -0
  74. oagi_core-0.12.1/src/oagi/server/config.py +49 -0
  75. oagi_core-0.12.1/src/oagi/server/main.py +157 -0
  76. oagi_core-0.12.1/src/oagi/server/models.py +100 -0
  77. oagi_core-0.12.1/src/oagi/server/session_store.py +118 -0
  78. oagi_core-0.12.1/src/oagi/server/socketio_server.py +407 -0
  79. oagi_core-0.12.1/src/oagi/task/__init__.py +35 -0
  80. oagi_core-0.12.1/src/oagi/types/__init__.py +62 -0
  81. oagi_core-0.12.1/src/oagi/types/action_handler.py +30 -0
  82. oagi_core-0.12.1/src/oagi/types/async_action_handler.py +30 -0
  83. oagi_core-0.12.1/src/oagi/types/async_image_provider.py +38 -0
  84. oagi_core-0.12.1/src/oagi/types/image.py +17 -0
  85. oagi_core-0.12.1/src/oagi/types/image_provider.py +35 -0
  86. oagi_core-0.12.1/src/oagi/types/models/__init__.py +39 -0
  87. oagi_core-0.12.1/src/oagi/types/models/action.py +87 -0
  88. oagi_core-0.12.1/src/oagi/types/models/client.py +52 -0
  89. oagi_core-0.12.1/src/oagi/types/models/image_config.py +47 -0
  90. oagi_core-0.12.1/src/oagi/types/models/step.py +17 -0
  91. oagi_core-0.12.1/src/oagi/types/step_observer.py +95 -0
  92. oagi_core-0.12.1/src/oagi/types/url.py +28 -0
  93. oagi_core-0.12.1/src/oagi/utils/__init__.py +12 -0
  94. oagi_core-0.12.1/src/oagi/utils/output_parser.py +166 -0
  95. oagi_core-0.12.1/src/oagi/utils/prompt_builder.py +44 -0
  96. oagi_core-0.12.1/tests/__init__.py +9 -0
  97. oagi_core-0.12.1/tests/conftest.py +256 -0
  98. oagi_core-0.12.1/tests/test_action_parsing.py +101 -0
  99. oagi_core-0.12.1/tests/test_actor.py +503 -0
  100. oagi_core-0.12.1/tests/test_agent/test_agent_wrappers.py +137 -0
  101. oagi_core-0.12.1/tests/test_agent/test_default_agent.py +144 -0
  102. oagi_core-0.12.1/tests/test_agent_registry.py +224 -0
  103. oagi_core-0.12.1/tests/test_async_actor.py +190 -0
  104. oagi_core-0.12.1/tests/test_async_client.py +293 -0
  105. oagi_core-0.12.1/tests/test_async_handlers.py +222 -0
  106. oagi_core-0.12.1/tests/test_cli.py +136 -0
  107. oagi_core-0.12.1/tests/test_logging.py +276 -0
  108. oagi_core-0.12.1/tests/test_mac_double_click.py +105 -0
  109. oagi_core-0.12.1/tests/test_observer.py +381 -0
  110. oagi_core-0.12.1/tests/test_pil_image.py +236 -0
  111. oagi_core-0.12.1/tests/test_planner.py +237 -0
  112. oagi_core-0.12.1/tests/test_planner_memory.py +129 -0
  113. oagi_core-0.12.1/tests/test_pyautogui_action_handler.py +456 -0
  114. oagi_core-0.12.1/tests/test_screenshot_maker.py +175 -0
  115. oagi_core-0.12.1/tests/test_server/__init__.py +1 -0
  116. oagi_core-0.12.1/tests/test_server/test_config.py +20 -0
  117. oagi_core-0.12.1/tests/test_server/test_session_store.py +129 -0
  118. oagi_core-0.12.1/tests/test_server/test_socketio_integration.py +93 -0
  119. oagi_core-0.12.1/tests/test_sync_client.py +268 -0
  120. oagi_core-0.12.1/tests/test_taskee_agent.py +408 -0
  121. oagi_core-0.12.1/tests/test_tasker_agent.py +207 -0
  122. oagi_core-0.12.1/tests/utils/__init__.py +7 -0
  123. oagi_core-0.12.1/tests/utils/test_output_parser.py +256 -0
  124. oagi_core-0.12.1/uv.lock +1731 -0
@@ -0,0 +1,86 @@
1
+ name: Bug report
2
+ description: Report a problem installing or using the OpenAGI (oagi) Python SDK.
3
+ title: "[Bug]: "
4
+ labels: ["bug"]
5
+ body:
6
+ - type: checkboxes
7
+ id: checks
8
+ attributes:
9
+ label: Pre-checks
10
+ options:
11
+ - label: I have searched existing issues.
12
+ required: true
13
+ - label: I am using Python 3.10 or newer (per docs).
14
+ required: true
15
+ - label: I included the full error output/logs.
16
+ required: false
17
+ - type: input
18
+ id: version
19
+ attributes:
20
+ label: oagi package version
21
+ description: Output of `pip show oagi`.
22
+ placeholder: e.g. 0.11.0
23
+ validations:
24
+ required: true
25
+ - type: dropdown
26
+ id: python
27
+ attributes:
28
+ label: Python version (docs require 3.10+)
29
+ options:
30
+ - 3.10
31
+ - 3.11
32
+ - 3.12
33
+ - 3.13
34
+ - Other (>=3.10)
35
+ validations:
36
+ required: true
37
+ - type: dropdown
38
+ id: os
39
+ attributes:
40
+ label: Operating system
41
+ options:
42
+ - Windows
43
+ - macOS
44
+ - Linux
45
+ validations:
46
+ required: true
47
+ - type: dropdown
48
+ id: installer
49
+ attributes:
50
+ label: How did you install? (docs recommend `pip install oagi`)
51
+ options:
52
+ - pip
53
+ - uv
54
+ - other
55
+ validations:
56
+ required: true
57
+ - type: textarea
58
+ id: steps
59
+ attributes:
60
+ label: Steps to reproduce
61
+ description: Include exact commands and any virtual env/tooling used.
62
+ placeholder: |
63
+ 1. ...
64
+ 2. ...
65
+ validations:
66
+ required: true
67
+ - type: textarea
68
+ id: expected
69
+ attributes:
70
+ label: Expected behavior
71
+ validations:
72
+ required: true
73
+ - type: textarea
74
+ id: actual
75
+ attributes:
76
+ label: Actual behavior and logs
77
+ description: Paste full traceback/build logs if applicable.
78
+ render: shell
79
+ validations:
80
+ required: true
81
+ - type: textarea
82
+ id: extra
83
+ attributes:
84
+ label: Additional context
85
+ description: Environment details, proxies, system architecture, etc.
86
+
@@ -0,0 +1,6 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Documentation & API reference
4
+ url: https://developer.agiopen.org/docs/index
5
+ about: Review the OpenAGI docs before filing an issue.
6
+
@@ -0,0 +1,37 @@
1
+ name: Feature request
2
+ description: Suggest an improvement or new capability for the OAGI Python SDK.
3
+ title: "[Feature]: "
4
+ labels: ["enhancement"]
5
+ body:
6
+ - type: textarea
7
+ id: summary
8
+ attributes:
9
+ label: Summary
10
+ description: Short description of the feature.
11
+ validations:
12
+ required: true
13
+ - type: textarea
14
+ id: problem
15
+ attributes:
16
+ label: Problem to solve
17
+ description: What problem or workflow does this address?
18
+ validations:
19
+ required: true
20
+ - type: textarea
21
+ id: proposal
22
+ attributes:
23
+ label: Proposed solution
24
+ description: Describe the desired behavior or API shape.
25
+ validations:
26
+ required: true
27
+ - type: textarea
28
+ id: alternatives
29
+ attributes:
30
+ label: Alternatives considered
31
+ description: Other approaches you tried or considered.
32
+ - type: textarea
33
+ id: extra
34
+ attributes:
35
+ label: Additional context
36
+ description: Screenshots, links, or related issues.
37
+
@@ -0,0 +1,22 @@
1
+ name: Question
2
+ description: Ask a question about using the OAGI Python SDK.
3
+ title: "[Question]: "
4
+ labels: ["question"]
5
+ body:
6
+ - type: textarea
7
+ id: question
8
+ attributes:
9
+ label: What do you need help with?
10
+ validations:
11
+ required: true
12
+ - type: input
13
+ id: version
14
+ attributes:
15
+ label: Relevant package/version info
16
+ description: e.g. oagi version, Python version.
17
+ - type: textarea
18
+ id: context
19
+ attributes:
20
+ label: Context
21
+ description: What you tried, expected results, and any logs.
22
+
@@ -0,0 +1,45 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ branches: ["main"]
7
+
8
+ jobs:
9
+ lint:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+
14
+ - name: Install uv
15
+ uses: astral-sh/setup-uv@v3
16
+
17
+ - name: Install dependencies
18
+ run: make install
19
+
20
+ - name: Run lint
21
+ run: make lint
22
+
23
+ build:
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ - uses: astral-sh/setup-uv@v3
28
+ - run: make install
29
+ - run: make build-all
30
+
31
+ test:
32
+ runs-on: ubuntu-latest
33
+ steps:
34
+ - uses: actions/checkout@v4
35
+ - uses: astral-sh/setup-uv@v3
36
+
37
+ - name: Install system dependencies
38
+ run: |
39
+ sudo apt-get update
40
+ sudo apt-get install -y xvfb
41
+
42
+ - run: make install
43
+
44
+ - name: Run tests with virtual display
45
+ run: xvfb-run -a make test-verbose
@@ -0,0 +1,59 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ id-token: write # For trusted publishing
13
+ contents: write # For GitHub release
14
+
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+
18
+ - name: Install uv
19
+ uses: astral-sh/setup-uv@v3
20
+ with:
21
+ enable-cache: true
22
+
23
+ - name: Set up Python
24
+ run: uv python install 3.12
25
+
26
+ - name: Build both packages
27
+ run: make build-all
28
+
29
+ - name: Publish oagi-core to PyPI
30
+ uses: pypa/gh-action-pypi-publish@release/v1
31
+ with:
32
+ password: ${{ secrets.PYPI_API_TOKEN }}
33
+ packages-dir: dist/
34
+ # Another option: Use Trusted Publishing (recommended, no token needed)
35
+ # Configure at: https://pypi.org/manage/project/oagi-core/settings/publishing/
36
+
37
+ - name: Publish oagi metapackage to PyPI
38
+ uses: pypa/gh-action-pypi-publish@release/v1
39
+ with:
40
+ password: ${{ secrets.PYPI_API_TOKEN }}
41
+ packages-dir: metapackage/dist/
42
+ # Another option: Use Trusted Publishing (recommended, no token needed)
43
+ # Configure at: https://pypi.org/manage/project/oagi/settings/publishing/
44
+
45
+ - name: Get commit message
46
+ id: commit_message
47
+ run: |
48
+ # Get the commit message for the tagged commit
49
+ echo "message<<EOF" >> $GITHUB_OUTPUT
50
+ git log -1 --pretty=%B >> $GITHUB_OUTPUT
51
+ echo "EOF" >> $GITHUB_OUTPUT
52
+
53
+ - name: Create GitHub Release
54
+ uses: softprops/action-gh-release@v1
55
+ with:
56
+ body: ${{ steps.commit_message.outputs.message }}
57
+ files: |
58
+ dist/*
59
+ metapackage/dist/*
@@ -0,0 +1,212 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+ .DS_Store
6
+
7
+ # C extensions
8
+ *.so
9
+
10
+ # Distribution / packaging
11
+ .Python
12
+ build/
13
+ develop-eggs/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ wheels/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py.cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ #Pipfile.lock
97
+
98
+ # UV
99
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ #uv.lock
103
+
104
+ # poetry
105
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
107
+ # commonly ignored for libraries.
108
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109
+ #poetry.lock
110
+ #poetry.toml
111
+
112
+ # pdm
113
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
115
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
116
+ #pdm.lock
117
+ #pdm.toml
118
+ .pdm-python
119
+ .pdm-build/
120
+
121
+ # pixi
122
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
123
+ #pixi.lock
124
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
125
+ # in the .venv directory. It is recommended not to include this directory in version control.
126
+ .pixi
127
+
128
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
129
+ __pypackages__/
130
+
131
+ # Celery stuff
132
+ celerybeat-schedule
133
+ celerybeat.pid
134
+
135
+ # SageMath parsed files
136
+ *.sage.py
137
+
138
+ # Environments
139
+ .env
140
+ .envrc
141
+ .venv
142
+ env/
143
+ venv/
144
+ ENV/
145
+ env.bak/
146
+ venv.bak/
147
+
148
+ # Spyder project settings
149
+ .spyderproject
150
+ .spyproject
151
+
152
+ # Rope project settings
153
+ .ropeproject
154
+
155
+ # mkdocs documentation
156
+ /site
157
+
158
+ # mypy
159
+ .mypy_cache/
160
+ .dmypy.json
161
+ dmypy.json
162
+
163
+ # Pyre type checker
164
+ .pyre/
165
+
166
+ # pytype static type analyzer
167
+ .pytype/
168
+
169
+ # Cython debug symbols
170
+ cython_debug/
171
+
172
+ # PyCharm
173
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
174
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
175
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
176
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
177
+ .idea/
178
+
179
+ # Abstra
180
+ # Abstra is an AI-powered process automation framework.
181
+ # Ignore directories containing user credentials, local state, and settings.
182
+ # Learn more at https://abstra.io/docs
183
+ .abstra/
184
+
185
+ # Visual Studio Code
186
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
187
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
188
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
189
+ # you could uncomment the following to ignore the entire vscode folder
190
+ # .vscode/
191
+
192
+ # Ruff stuff:
193
+ .ruff_cache/
194
+
195
+ # PyPI configuration file
196
+ .pypirc
197
+
198
+ # Cursor
199
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
200
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
201
+ # refer to https://docs.cursor.com/context/ignore-files
202
+ .cursorignore
203
+ .cursorindexingignore
204
+
205
+ # Marimo
206
+ marimo/_static/
207
+ marimo/_lsp/
208
+ __marimo__/
209
+
210
+ # Metapackage synced files (copied from root)
211
+ metapackage/README.md
212
+ metapackage/LICENSE
@@ -0,0 +1 @@
1
+ 3.10.18
@@ -0,0 +1 @@
1
+ ## Development
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 OpenAGI Foundation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,62 @@
1
+ .PHONY: .uv
2
+ .uv:
3
+ @uv -V || echo 'Please install uv: https://docs.astral.sh/uv/getting-started/installation/'
4
+
5
+ .PHONY: install-dev
6
+ install-dev: .uv
7
+ uv sync --all-groups --all-extras
8
+
9
+ .PHONY: install
10
+ install: install-dev
11
+
12
+ .PHONY: format
13
+ format: .uv
14
+ uv run ruff check --fix
15
+ uv run ruff format
16
+
17
+ .PHONY: lint
18
+ lint: .uv
19
+ uv run ruff check
20
+ uv run ruff format --check
21
+
22
+ .PHONY: build
23
+ build: .uv
24
+ uv build
25
+
26
+ .PHONY: sync-metapackage-files
27
+ sync-metapackage-files:
28
+ @echo "Syncing README.md and LICENSE to metapackage..."
29
+ @cp README.md metapackage/README.md
30
+ @cp LICENSE metapackage/LICENSE
31
+
32
+ .PHONY: build-metapackage
33
+ build-metapackage: .uv sync-metapackage-files
34
+ cd metapackage && uv build
35
+
36
+ .PHONY: build-all
37
+ build-all: build build-metapackage
38
+
39
+ .PHONY: test
40
+ test: .uv install-dev
41
+ uv run pytest
42
+
43
+ .PHONY: test-verbose
44
+ test-verbose: .uv install-dev
45
+ uv run pytest -v
46
+
47
+ .PHONY: version
48
+ version:
49
+ @if [ -n "$(filter-out $@,$(MAKECMDGOALS))" ]; then \
50
+ VERSION=$(filter-out $@,$(MAKECMDGOALS)); \
51
+ else \
52
+ echo "Usage: make version <version>"; \
53
+ exit 1; \
54
+ fi; \
55
+ echo "Updating version to $$VERSION..."; \
56
+ uv version $$VERSION; \
57
+ (cd metapackage && uv version $$VERSION); \
58
+ sed -i '' 's/oagi-core\[desktop,server\]==.*/oagi-core[desktop,server]=='$$VERSION'",/' metapackage/pyproject.toml; \
59
+ make build-all
60
+
61
+ %:
62
+ @: