mng-opencode 0.1.2__tar.gz → 0.1.3__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.
- {mng_opencode-0.1.2 → mng_opencode-0.1.3}/.gitignore +5 -2
- mng_opencode-0.1.3/PKG-INFO +43 -0
- mng_opencode-0.1.3/README.md +35 -0
- mng_opencode-0.1.3/conftest.py +15 -0
- mng_opencode-0.1.3/pyproject.toml +71 -0
- mng_opencode-0.1.2/PKG-INFO +0 -6
- mng_opencode-0.1.2/pyproject.toml +0 -27
- {mng_opencode-0.1.2 → mng_opencode-0.1.3}/imbue/mng_opencode/__init__.py +0 -0
- {mng_opencode-0.1.2 → mng_opencode-0.1.3}/imbue/mng_opencode/plugin.py +0 -0
- {mng_opencode-0.1.2 → mng_opencode-0.1.3}/imbue/mng_opencode/plugin_test.py +0 -0
- {mng_opencode-0.1.2 → mng_opencode-0.1.3}/imbue/mng_opencode/test_ratchets.py +0 -0
|
@@ -257,8 +257,8 @@ scripts/notify_user.local.sh
|
|
|
257
257
|
test-results/**
|
|
258
258
|
current.tar.gz
|
|
259
259
|
|
|
260
|
-
#
|
|
261
|
-
.
|
|
260
|
+
# Minds deploy-time build artifacts
|
|
261
|
+
.minds/
|
|
262
262
|
|
|
263
263
|
# Autofix working artifacts
|
|
264
264
|
.autofix/
|
|
@@ -268,3 +268,6 @@ current.tar.gz
|
|
|
268
268
|
|
|
269
269
|
# for git worktrees from other repos
|
|
270
270
|
.external_worktrees/
|
|
271
|
+
|
|
272
|
+
# ignore coverage files generated within subprojects
|
|
273
|
+
cov.xml
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mng-opencode
|
|
3
|
+
Version: 0.1.3
|
|
4
|
+
Summary: OpenCode agent type plugin for mng
|
|
5
|
+
Requires-Python: >=3.11
|
|
6
|
+
Requires-Dist: mng==0.1.7
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
|
|
9
|
+
# mng-opencode
|
|
10
|
+
|
|
11
|
+
Plugin that registers the `opencode` agent type for mng.
|
|
12
|
+
|
|
13
|
+
[OpenCode](https://github.com/sst/opencode) is an open-source terminal-based AI coding assistant. This plugin lets you run it as an mng agent.
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
mng create my-agent opencode
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Pass arguments to the opencode command with `--`:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
mng create my-agent opencode -- --help
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Configuration
|
|
28
|
+
|
|
29
|
+
Define a custom variant in your mng config (`mng config edit`):
|
|
30
|
+
|
|
31
|
+
```toml
|
|
32
|
+
[agent_types.my_opencode]
|
|
33
|
+
parent_type = "opencode"
|
|
34
|
+
cli_args = "--some-flag"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Then create agents with your custom type:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
mng create my-agent my_opencode
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
See the [mng agent types documentation](https://github.com/imbue-ai/mng/blob/main/libs/mng/docs/concepts/agent_types.md) for more details.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# mng-opencode
|
|
2
|
+
|
|
3
|
+
Plugin that registers the `opencode` agent type for mng.
|
|
4
|
+
|
|
5
|
+
[OpenCode](https://github.com/sst/opencode) is an open-source terminal-based AI coding assistant. This plugin lets you run it as an mng agent.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
mng create my-agent opencode
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Pass arguments to the opencode command with `--`:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
mng create my-agent opencode -- --help
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Configuration
|
|
20
|
+
|
|
21
|
+
Define a custom variant in your mng config (`mng config edit`):
|
|
22
|
+
|
|
23
|
+
```toml
|
|
24
|
+
[agent_types.my_opencode]
|
|
25
|
+
parent_type = "opencode"
|
|
26
|
+
cli_args = "--some-flag"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Then create agents with your custom type:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
mng create my-agent my_opencode
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
See the [mng agent types documentation](https://github.com/imbue-ai/mng/blob/main/libs/mng/docs/concepts/agent_types.md) for more details.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Project-level conftest for mng-opencode.
|
|
2
|
+
|
|
3
|
+
When running tests from libs/mng_opencode/, this conftest provides the common pytest hooks
|
|
4
|
+
that would otherwise come from the monorepo root conftest.py (which is not discovered
|
|
5
|
+
when pytest runs from a subdirectory).
|
|
6
|
+
|
|
7
|
+
When running from the monorepo root, the root conftest.py registers the hooks first,
|
|
8
|
+
and this file's register_conftest_hooks() call is a no-op (guarded by a module-level flag).
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from imbue.imbue_common.conftest_hooks import register_conftest_hooks
|
|
12
|
+
from imbue.mng.utils.logging import suppress_warnings
|
|
13
|
+
|
|
14
|
+
suppress_warnings()
|
|
15
|
+
register_conftest_hooks(globals())
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "mng-opencode"
|
|
3
|
+
version = "0.1.3"
|
|
4
|
+
description = "OpenCode agent type plugin for mng"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.11"
|
|
7
|
+
dependencies = [
|
|
8
|
+
"mng==0.1.7",
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
[project.entry-points.mng]
|
|
12
|
+
opencode = "imbue.mng_opencode.plugin"
|
|
13
|
+
|
|
14
|
+
[build-system]
|
|
15
|
+
requires = ["hatchling"]
|
|
16
|
+
build-backend = "hatchling.build"
|
|
17
|
+
|
|
18
|
+
[tool.hatch.build.targets.wheel]
|
|
19
|
+
packages = ["imbue"]
|
|
20
|
+
|
|
21
|
+
[tool.uv.sources]
|
|
22
|
+
mng = { workspace = true }
|
|
23
|
+
|
|
24
|
+
# Shared pytest settings (markers, filterwarnings, coverage report config)
|
|
25
|
+
# are centralized in:
|
|
26
|
+
# libs/imbue_common/imbue/imbue_common/conftest_hooks.py
|
|
27
|
+
# The settings below remain here because they are read from pyproject.toml
|
|
28
|
+
# before any hooks run: addopts, coverage.run, inline-snapshot, timeout_func_only.
|
|
29
|
+
[tool.pytest.ini_options]
|
|
30
|
+
timeout_func_only = true
|
|
31
|
+
junit_family = "xunit1"
|
|
32
|
+
testpaths = ["."]
|
|
33
|
+
addopts = [
|
|
34
|
+
"-n 4",
|
|
35
|
+
"--dist=worksteal",
|
|
36
|
+
"--cov=imbue.mng_opencode",
|
|
37
|
+
"--cov-report=term-missing",
|
|
38
|
+
"--cov-report=html",
|
|
39
|
+
"--cov-report=xml",
|
|
40
|
+
"--cov-fail-under=80",
|
|
41
|
+
"--durations=20",
|
|
42
|
+
"--timeout=10",
|
|
43
|
+
"--timeout-method=signal",
|
|
44
|
+
"--max-worker-restart=0",
|
|
45
|
+
"-m not acceptance and not release",
|
|
46
|
+
"--slow-tests-to-file",
|
|
47
|
+
"--coverage-to-file",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
[tool.coverage.run]
|
|
51
|
+
parallel = true
|
|
52
|
+
concurrency = ["multiprocessing", "thread"]
|
|
53
|
+
omit = [
|
|
54
|
+
"*_test.py",
|
|
55
|
+
"test_*.py",
|
|
56
|
+
"*/tests/*",
|
|
57
|
+
"*/conftest.py",
|
|
58
|
+
"*/utils/testing.py",
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
[tool.inline-snapshot]
|
|
62
|
+
default-flags=["report"]
|
|
63
|
+
default-flags-tui=["report"]
|
|
64
|
+
default-flags-ide=["report"]
|
|
65
|
+
format-command="uv run ruff format --force-exclude --config pyproject.toml --stdin-filename {filename}"
|
|
66
|
+
|
|
67
|
+
[tool.pyright]
|
|
68
|
+
venvPath = "../.."
|
|
69
|
+
venv = ".venv"
|
|
70
|
+
pythonVersion = "3.11"
|
|
71
|
+
strict = ["**/*.py"]
|
mng_opencode-0.1.2/PKG-INFO
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
[project]
|
|
2
|
-
name = "mng-opencode"
|
|
3
|
-
version = "0.1.2"
|
|
4
|
-
description = "OpenCode agent type plugin for mng"
|
|
5
|
-
requires-python = ">=3.11"
|
|
6
|
-
dependencies = [
|
|
7
|
-
"mng==0.1.6",
|
|
8
|
-
]
|
|
9
|
-
|
|
10
|
-
[project.entry-points.mng]
|
|
11
|
-
opencode = "imbue.mng_opencode.plugin"
|
|
12
|
-
|
|
13
|
-
[build-system]
|
|
14
|
-
requires = ["hatchling"]
|
|
15
|
-
build-backend = "hatchling.build"
|
|
16
|
-
|
|
17
|
-
[tool.hatch.build.targets.wheel]
|
|
18
|
-
packages = ["imbue"]
|
|
19
|
-
|
|
20
|
-
[tool.uv.sources]
|
|
21
|
-
mng = { workspace = true }
|
|
22
|
-
|
|
23
|
-
[tool.pyright]
|
|
24
|
-
venvPath = "../.."
|
|
25
|
-
venv = ".venv"
|
|
26
|
-
pythonVersion = "3.11"
|
|
27
|
-
strict = ["**/*.py"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|