mirror of
https://github.com/github/spec-kit.git
synced 2026-07-03 20:36:23 +08:00
* feat(integrations): add omp support * Update updated_at timestamp * refactor(integrations): delegate omp build_exec_args to base, register in issue templates Inherit MarkdownIntegration.build_exec_args so omp picks up shared CLI contract changes (requires_cli gating, extra-args ordering, --model handling) automatically; only specialize the --mode json flag. Also add Oh My Pi / omp to the issue-template agent lists so test_issue_template_agent_lists_match_runtime_integrations passes. * fix(integrations): use --print + positional prompt for omp argv OMP's CLI parser treats `-p`/`--print` as a boolean (one-shot mode) and consumes the prompt as a positional message; the previous inherited `-p <prompt>` shape worked by accident only because `-p` ignores its next token. Build the argv explicitly with flags first and the prompt as a trailing positional, matching upstream args.ts.
32 lines
763 B
Python
32 lines
763 B
Python
"""Tests for OmpIntegration."""
|
|
|
|
from specify_cli.integrations import get_integration
|
|
|
|
from .test_integration_base_markdown import MarkdownIntegrationTests
|
|
|
|
|
|
class TestOmpIntegration(MarkdownIntegrationTests):
|
|
KEY = "omp"
|
|
FOLDER = ".omp/"
|
|
COMMANDS_SUBDIR = "commands"
|
|
REGISTRAR_DIR = ".omp/commands"
|
|
CONTEXT_FILE = "AGENTS.md"
|
|
|
|
def test_build_exec_args_uses_omp_json_mode(self):
|
|
i = get_integration(self.KEY)
|
|
|
|
args = i.build_exec_args(
|
|
"/speckit.specify Build auth",
|
|
model="gpt-5",
|
|
)
|
|
|
|
assert args == [
|
|
"omp",
|
|
"--print",
|
|
"--model",
|
|
"gpt-5",
|
|
"--mode",
|
|
"json",
|
|
"/speckit.specify Build auth",
|
|
]
|