From 8c9a5e6ff9abb27a68c48d365f947facedb76958 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 30 May 2026 19:12:08 +0900 Subject: [PATCH] feat(omo-codex): batch 51 (4 files) --- .../components/lsp/test/fixtures/broken.py | 1 + .../lsp/test/fixtures/post-tool-use.json | 15 ++++++ .../rules/.github/ISSUE_TEMPLATE/bug.yml | 49 +++++++++++++++++++ .../rules/.github/ISSUE_TEMPLATE/feature.yml | 27 ++++++++++ 4 files changed, 92 insertions(+) create mode 100644 packages/omo-codex/plugin/components/lsp/test/fixtures/broken.py create mode 100644 packages/omo-codex/plugin/components/lsp/test/fixtures/post-tool-use.json create mode 100644 packages/omo-codex/plugin/components/rules/.github/ISSUE_TEMPLATE/bug.yml create mode 100644 packages/omo-codex/plugin/components/rules/.github/ISSUE_TEMPLATE/feature.yml diff --git a/packages/omo-codex/plugin/components/lsp/test/fixtures/broken.py b/packages/omo-codex/plugin/components/lsp/test/fixtures/broken.py new file mode 100644 index 000000000..745b30daf --- /dev/null +++ b/packages/omo-codex/plugin/components/lsp/test/fixtures/broken.py @@ -0,0 +1 @@ +value: str = 1 diff --git a/packages/omo-codex/plugin/components/lsp/test/fixtures/post-tool-use.json b/packages/omo-codex/plugin/components/lsp/test/fixtures/post-tool-use.json new file mode 100644 index 000000000..26045e320 --- /dev/null +++ b/packages/omo-codex/plugin/components/lsp/test/fixtures/post-tool-use.json @@ -0,0 +1,15 @@ +{ + "session_id": "00000000-0000-0000-0000-000000000000", + "turn_id": "00000000-0000-0000-0000-000000000001", + "transcript_path": "/tmp/codex-lsp-transcript.jsonl", + "cwd": ".", + "hook_event_name": "PostToolUse", + "model": "gpt-5.5", + "permission_mode": "default", + "tool_name": "apply_patch", + "tool_input": { + "command": "*** Begin Patch\n*** Update File: test/fixtures/broken.py\n@@\n-value: str = 1\n+value: str = 1\n*** End Patch\n" + }, + "tool_response": "Success. Updated files.", + "tool_use_id": "toolu_000000000000000000000000" +} diff --git a/packages/omo-codex/plugin/components/rules/.github/ISSUE_TEMPLATE/bug.yml b/packages/omo-codex/plugin/components/rules/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 000000000..60b58ecb8 --- /dev/null +++ b/packages/omo-codex/plugin/components/rules/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,49 @@ +name: Bug Report +description: Report broken Codex rule injection or matching behavior +labels: [bug] +body: + - type: markdown + attributes: + value: | + Include the Codex hook payload, hook output, rule file, and plugin version needed to reproduce. + + - type: textarea + id: what + attributes: + label: What happened? + description: Include exact output/errors. + validations: + required: true + + - type: textarea + id: payload + attributes: + label: Hook payload + description: Paste the minimal SessionStart, UserPromptSubmit, or PostToolUse payload that reproduces the issue. + render: json + validations: + required: false + + - type: textarea + id: rule + attributes: + label: Rule file + description: Paste the relevant rule file or frontmatter. + render: markdown + validations: + required: false + + - type: textarea + id: expected + attributes: + label: Expected behavior + validations: + required: true + + - type: input + id: version + attributes: + label: codex-rules version + placeholder: 0.1.0 + validations: + required: false diff --git a/packages/omo-codex/plugin/components/rules/.github/ISSUE_TEMPLATE/feature.yml b/packages/omo-codex/plugin/components/rules/.github/ISSUE_TEMPLATE/feature.yml new file mode 100644 index 000000000..3c3fc3ab2 --- /dev/null +++ b/packages/omo-codex/plugin/components/rules/.github/ISSUE_TEMPLATE/feature.yml @@ -0,0 +1,27 @@ +name: Feature Request +description: Propose a Codex rule source, matcher, or hook improvement +labels: [enhancement] +body: + - type: textarea + id: problem + attributes: + label: Problem + description: What workflow is blocked or awkward today? + validations: + required: true + + - type: textarea + id: proposal + attributes: + label: Proposal + description: What should codex-rules do? + validations: + required: true + + - type: textarea + id: alternatives + attributes: + label: Alternatives considered + description: What else could solve this? + validations: + required: false