lv24-opencode-consilium 1.10.0__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.
@@ -0,0 +1,5 @@
1
+ """Python launcher for the Consilium Node.js CLI."""
2
+
3
+ __version__ = "1.10.0"
4
+
5
+ __all__ = ["__version__"]
@@ -0,0 +1,6 @@
1
+ """Allow running the launcher with ``python -m lv24_opencode_consilium``."""
2
+
3
+ from .cli import main
4
+
5
+ if __name__ == "__main__":
6
+ raise SystemExit(main())
@@ -0,0 +1,52 @@
1
+ """Command-line entry point that delegates to the npm Consilium CLI."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import os
6
+ import shutil
7
+ import subprocess
8
+ import sys
9
+ from typing import Optional, Sequence
10
+
11
+ from . import __version__
12
+
13
+ NPM_PACKAGE = "lv24-opencode-consilium"
14
+ NPM_VERSION_ENV = "CONSILIUM_NPM_VERSION"
15
+
16
+ _NPX_MISSING_MESSAGE = """\
17
+ consilium: npx was not found on PATH.
18
+
19
+ This package is a Python launcher for the Node.js Consilium CLI; it does not
20
+ bundle Node.js. Install Node.js 18 or newer (npm and npx are included) from
21
+ https://nodejs.org/ and make sure the OpenCode CLI is installed and available:
22
+ https://opencode.ai/docs/
23
+ """
24
+
25
+
26
+ def npm_spec() -> str:
27
+ """Return the npm package spec, honoring CONSILIUM_NPM_VERSION."""
28
+ version = os.environ.get(NPM_VERSION_ENV, "").strip() or __version__
29
+ return "{0}@{1}".format(NPM_PACKAGE, version)
30
+
31
+
32
+ def main(argv: Optional[Sequence[str]] = None) -> int:
33
+ """Run the npm CLI through npx and return its exit code."""
34
+ args = list(sys.argv[1:] if argv is None else argv)
35
+
36
+ npx = shutil.which("npx")
37
+ if npx is None:
38
+ sys.stderr.write(_NPX_MISSING_MESSAGE)
39
+ return 127
40
+
41
+ command = [npx, "--yes", npm_spec(), *args]
42
+
43
+ try:
44
+ completed = subprocess.run(command, check=False)
45
+ return completed.returncode
46
+ except KeyboardInterrupt:
47
+ return 130
48
+ except OSError as exc:
49
+ sys.stderr.write(
50
+ "consilium: failed to start {0}: {1}\n".format(npx, exc)
51
+ )
52
+ return 127
@@ -0,0 +1,99 @@
1
+ Metadata-Version: 2.4
2
+ Name: lv24-opencode-consilium
3
+ Version: 1.10.0
4
+ Summary: Python launcher for the lv24-opencode-consilium (Consilium) Node.js CLI
5
+ Author: LevapVeeskela
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/LevapVeeskela/lv24-opencode-consilium
8
+ Project-URL: Repository, https://github.com/LevapVeeskela/lv24-opencode-consilium
9
+ Project-URL: Issues, https://github.com/LevapVeeskela/lv24-opencode-consilium/issues
10
+ Project-URL: Documentation, https://github.com/LevapVeeskela/lv24-opencode-consilium/tree/master/docs
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Operating System :: OS Independent
13
+ Requires-Python: >=3.9
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Dynamic: license-file
17
+
18
+ # lv24-opencode-consilium (Python launcher)
19
+
20
+ A thin Python launcher for **Consilium**, the multi-agent review and audit CLI
21
+ for the [OpenCode](https://opencode.ai/) ecosystem. Consilium itself is a
22
+ Node.js command-line tool published on npm as
23
+ [`lv24-opencode-consilium`](https://www.npmjs.com/package/lv24-opencode-consilium).
24
+ This package does not reimplement Consilium and does not bundle Node.js: the
25
+ `consilium` command delegates to the npm package through `npx`.
26
+
27
+ The npm package remains the canonical distribution. The PyPI package only
28
+ contains this launcher.
29
+
30
+ ## Prerequisites
31
+
32
+ - **Node.js 18 or newer**, including npm and npx
33
+ ([nodejs.org](https://nodejs.org/)).
34
+ - The **OpenCode CLI** installed and available on `PATH`
35
+ ([OpenCode docs](https://opencode.ai/docs/)).
36
+ - Network access on first run, or an npm cache that already contains the
37
+ requested package, because `npx` may download it.
38
+ - Python 3.9 or newer.
39
+
40
+ ## Installation
41
+
42
+ ```bash
43
+ pip install lv24-opencode-consilium
44
+ ```
45
+
46
+ This installs two equivalent console scripts:
47
+
48
+ - `consilium`
49
+ - `lv24-opencode-consilium`
50
+
51
+ ## Usage
52
+
53
+ ```bash
54
+ consilium --help
55
+ consilium "review this repository"
56
+ consilium review --model opencode/gpt-5
57
+ ```
58
+
59
+ All arguments are forwarded unchanged to the npm CLI. The child process
60
+ inherits the terminal, environment, and exit code. You can also run:
61
+
62
+ ```bash
63
+ python -m lv24_opencode_consilium --help
64
+ ```
65
+
66
+ If `npx` cannot be found, the launcher exits with code `127` and prints an
67
+ installation hint. An interrupted run exits with code `130`.
68
+
69
+ ## Version pinning
70
+
71
+ By default the launcher runs the npm package version matching its own version
72
+ (currently `1.10.0`). Override it with `CONSILIUM_NPM_VERSION` to use any npm
73
+ version or tag:
74
+
75
+ ```bash
76
+ CONSILIUM_NPM_VERSION=latest consilium --help
77
+ CONSILIUM_NPM_VERSION=1.9.0 consilium --help
78
+ ```
79
+
80
+ PowerShell:
81
+
82
+ ```powershell
83
+ $env:CONSILIUM_NPM_VERSION = "latest"; consilium --help
84
+ ```
85
+
86
+ ## Links
87
+
88
+ - Main repository and documentation:
89
+ <https://github.com/LevapVeeskela/lv24-opencode-consilium>
90
+ - Documentation:
91
+ <https://github.com/LevapVeeskela/lv24-opencode-consilium/tree/master/docs>
92
+ - Issues:
93
+ <https://github.com/LevapVeeskela/lv24-opencode-consilium/issues>
94
+ - npm package:
95
+ <https://www.npmjs.com/package/lv24-opencode-consilium>
96
+
97
+ ## License
98
+
99
+ MIT
@@ -0,0 +1,9 @@
1
+ lv24_opencode_consilium/__init__.py,sha256=7tebKOOkWbG13XJvj4yaUbTxOrIm7szRP7APxuvn1YQ,104
2
+ lv24_opencode_consilium/__main__.py,sha256=N13HcnyGVa1GsdhrNreY5riRJTt9ArT4Lv66DZYMdtc,157
3
+ lv24_opencode_consilium/cli.py,sha256=NJb2iZOxt-UQXgQDzIrxIZoCiXmBXv3w1Vq56DXy3wU,1505
4
+ lv24_opencode_consilium-1.10.0.dist-info/licenses/LICENSE,sha256=Qe4b1LuZC6zGRWvcftFMvUVhAMLZY_S7NLaUiDggr04,1070
5
+ lv24_opencode_consilium-1.10.0.dist-info/METADATA,sha256=EtT4M1Pyj821_Bd9ONQGbse34jLMJUQ9CqTDRd3hdCo,3036
6
+ lv24_opencode_consilium-1.10.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
7
+ lv24_opencode_consilium-1.10.0.dist-info/entry_points.txt,sha256=Ow6KJkIYwShciV5eEDBe6hEZLk5ERLo6FoaMNqYKAhg,122
8
+ lv24_opencode_consilium-1.10.0.dist-info/top_level.txt,sha256=6OXm2cU13RElMk-72Xm0Wm2uHh6lIF4W5N3f37p3d0s,24
9
+ lv24_opencode_consilium-1.10.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ consilium = lv24_opencode_consilium.cli:main
3
+ lv24-opencode-consilium = lv24_opencode_consilium.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 LevapVeeskela
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 @@
1
+ lv24_opencode_consilium