Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .agents/plugins/marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "orenlab-local",
"interface": {
"displayName": "OrenLab Local Plugins"
},
"plugins": [
{
"name": "codeclone",
"source": {
"source": "local",
"path": "./plugins/codeclone"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Developer Tools"
}
]
}
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ docs
codeclone.egg-info
.pre-commit-config.yaml
uv.lock
extensions
16 changes: 11 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 🐞 Bug report
description: Incorrect clone detection, crashes, or broken reports
description: Incorrect analysis results, crashes, broken reports, or contract regressions
title: "[Bug]: "
labels: [ "bug" ]
assignees: [ ]
Expand All @@ -16,7 +16,7 @@ body:
attributes:
label: CodeClone version
description: Output of `codeclone --version`
placeholder: "1.1.0"
placeholder: "2.0.0b4"
validations:
required: true

Expand All @@ -26,11 +26,17 @@ body:
label: Affected area
options:
- Function clone detection (Type-2)
- Block clone detection (Type-3-lite)
- Block clone detection
- Segment clone reporting
- Structural findings
- Quality metrics / health
- CFG construction
- AST normalization
- Canonical report / JSON
- HTML report
- CLI / baseline
- CLI / baseline / cache
- GitHub Action / CI
- MCP server
validations:
required: true

Expand Down Expand Up @@ -62,4 +68,4 @@ body:
id: notes
attributes:
label: Additional context
description: CFG structure, HTML screenshots, logs, etc.
description: Baseline/cache status, HTML screenshots, MCP payloads, logs, etc.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/cfg_semantics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ body:
id: version
attributes:
label: CodeClone version
placeholder: "1.1.0"
placeholder: "2.0.0b4"

- type: textarea
id: scenario
Expand Down
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: CodeClone Docs
url: https://orenlab.github.io/codeclone/
about: Read the contracts book, MCP guide, and interface docs before opening a generic usage question.
24 changes: 19 additions & 5 deletions .github/ISSUE_TEMPLATE/false_positive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,27 @@ body:
id: version
attributes:
label: CodeClone version
placeholder: "1.1.0"
placeholder: "2.0.0b4"
validations:
required: true

- type: dropdown
id: family
attributes:
label: Detection family
options:
- Function clone
- Block clone
- Segment clone (report-only)
- Structural finding
validations:
required: true

- type: textarea
id: code
attributes:
label: Code snippets detected as clones
description: Paste both snippets or a reduced example
label: Minimal reproduction
description: Paste both snippets, the reduced example, or the relevant finding evidence
render: python
validations:
required: true
Expand All @@ -38,9 +50,11 @@ body:
validations:
required: true

- type: checkbox
- type: checkboxes
id: cfg_related
attributes:
label: CFG-related?
label: Additional signals
options:
- label: Control flow structure differs meaningfully
- label: Side effects or runtime behavior differ meaningfully
- label: The issue appears only in tests / fixtures
28 changes: 26 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: ✨ Feature request
description: Propose an enhancement to CodeClone
title: "[Feature]: "
labels: ["enhancement"]
assignees: []
labels: [ "enhancement" ]
assignees: [ ]

body:
- type: markdown
Expand All @@ -18,9 +18,22 @@ body:
- Clone detection logic
- CFG semantics
- AST normalization
- Structural findings / suggestions
- Metrics / health model
- Canonical report / contracts
- HTML report / UX
- CLI / CI integration
- MCP server / agent workflow
- Performance
- Documentation
validations:
required: true

- type: textarea
id: user_impact
attributes:
label: Why is this worth adding?
description: What concrete workflow, quality, or UX problem would this solve?
validations:
required: true

Expand All @@ -44,3 +57,14 @@ body:
id: alternatives
attributes:
label: Alternatives considered

- type: checkboxes
id: contracts
attributes:
label: Contract-sensitive areas
description: Tick any surfaces you believe this may affect.
options:
- label: Baseline / cache compatibility
- label: Canonical report JSON schema
- label: CLI exit codes or script-facing output
- label: MCP tool or resource semantics
75 changes: 75 additions & 0 deletions .github/ISSUE_TEMPLATE/mcp_server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: MCP server
description: Report an MCP bug or propose an MCP workflow/tooling improvement
title: "[MCP]: "
labels: [ "mcp" ]
assignees: [ ]

body:
- type: markdown
attributes:
value: |
Use this template for issues about the **CodeClone MCP server**:
tools, resources, payload shape, routing, session semantics, root handling,
IDE/MCP client behavior, and agent-facing workflow quality.

- type: input
id: version
attributes:
label: CodeClone version
description: Output of `codeclone --version`
placeholder: "2.0.0b4"
validations:
required: true

- type: dropdown
id: category
attributes:
label: MCP category
options:
- Tool behavior
- Resource behavior
- Payload size / shape
- Session / latest-runs semantics
- Root / safety semantics
- Guidance / workflow routing
- Packaging / launcher / transport
validations:
required: true

- type: textarea
id: client
attributes:
label: MCP client or host
description: Codex, Claude Desktop, Cursor, VS Code, custom client, etc.
placeholder: "Codex desktop / stdio"

- type: textarea
id: problem
attributes:
label: What happened?
description: Describe the current MCP behavior and why it is wrong or awkward.
validations:
required: true

- type: textarea
id: expected
attributes:
label: What should happen instead?
description: Focus on the safest and most budget-aware expected behavior.
validations:
required: true

- type: textarea
id: reproduction
attributes:
label: Reproduction or request sequence
description: |
Include the relevant tool/resource calls when possible.
Small, exact examples are preferred over screenshots.
render: json

- type: textarea
id: notes
attributes:
label: Additional context
description: Payload excerpts, error text, screenshots, or workflow notes.
2 changes: 1 addition & 1 deletion .github/actions/codeclone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Explicit prerelease:

```yaml
with:
package-version: "2.0.0b3"
package-version: "2.0.0b4"
```

Local/self-repo validation:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeclone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: CodeClone

on:
pull_request:
types: [opened, synchronize, reopened]
paths: ["**/*.py"]
types: [ opened, synchronize, reopened ]
paths: [ "**/*.py" ]

permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ site/
/docs/SPEC-2.0.0.md
/.uv-cache/
/package-lock.json
extensions/vscode-codeclone/node_modules
Loading
Loading