Skip to content

Commit 8a7b9fb

Browse files
authored
Merge pull request #72 from study8677/codex/repo-direction-cleanup
[codex] align repository product contract
2 parents af32b7d + ad3e371 commit 8a7b9fb

27 files changed

Lines changed: 722 additions & 259 deletions

‎.claude-plugin/marketplace.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"name": "antigravity",
1414
"source": "./",
1515
"description": "Multi-agent knowledge hub: CLI-backed slash commands (ag-setup / ag-init / ag-refresh / ag-ask) for both Claude Code and Codex CLI, agent-repo-init skill, and optional MCP server.",
16-
"version": "0.2.2",
16+
"version": "0.2.1",
1717
"category": "developer-tools",
1818
"keywords": ["mcp", "knowledge-graph", "multi-agent", "scaffolding"]
1919
}

‎.claude-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "antigravity",
3-
"version": "0.2.2",
3+
"version": "0.2.1",
44
"description": "Multi-agent knowledge hub plugin. Bundles CLI-backed slash commands (ag-setup / ag-init / ag-refresh / ag-ask) plus the agent-repo-init skill. Works in both Claude Code and Codex CLI.",
55
"author": {
66
"name": "Antigravity Team",

‎.codex-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "antigravity",
3-
"version": "0.2.2",
3+
"version": "0.2.1",
44
"description": "Multi-agent knowledge hub plugin (Codex CLI). Bundles slash commands (/ag-setup, /ag-init, /ag-refresh, /ag-ask) plus the agent-repo-init skill. Backed by the ag-ask / ag-refresh CLI; MCP optional.",
55
"skills": "./skills/"
66
}

‎.dockerignore‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.git
2+
.gitignore
3+
.pytest_cache
4+
.mypy_cache
5+
.ruff_cache
6+
__pycache__
7+
*.py[cod]
8+
*.egg-info
9+
10+
.env
11+
.antigravity
12+
.context
13+
.venv
14+
venv
15+
env
16+
ENV
17+
.tmp-venv
18+
antigravity_workspace_template_venv
19+
engine/venv
20+
21+
build
22+
dist
23+
artifacts/tmp_*
24+
logs
25+
data
26+
27+
.idea
28+
.vscode
29+
*.swp
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Bug report
2+
description: Report a reproducible Antigravity bug.
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for reporting a bug. Include enough detail for maintainers to reproduce it.
10+
- type: textarea
11+
id: summary
12+
attributes:
13+
label: Summary
14+
description: What went wrong?
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: steps
19+
attributes:
20+
label: Steps to reproduce
21+
description: List the exact commands or plugin actions.
22+
placeholder: |
23+
1. Run ...
24+
2. See ...
25+
validations:
26+
required: true
27+
- type: textarea
28+
id: expected
29+
attributes:
30+
label: Expected behavior
31+
validations:
32+
required: true
33+
- type: textarea
34+
id: actual
35+
attributes:
36+
label: Actual behavior
37+
validations:
38+
required: true
39+
- type: input
40+
id: version
41+
attributes:
42+
label: Version or commit
43+
description: Engine, CLI, plugin version, or commit SHA.
44+
validations:
45+
required: true
46+
- type: dropdown
47+
id: surface
48+
attributes:
49+
label: Affected surface
50+
options:
51+
- ag-refresh
52+
- ag-ask
53+
- ag-mcp
54+
- ag CLI
55+
- Claude Code plugin
56+
- Codex CLI plugin
57+
- Documentation
58+
- Docker
59+
- Other
60+
validations:
61+
required: true
62+
- type: textarea
63+
id: environment
64+
attributes:
65+
label: Environment
66+
description: OS, Python version, host IDE/CLI, and LLM provider.
67+
validations:
68+
required: true
69+
- type: textarea
70+
id: logs
71+
attributes:
72+
label: Logs
73+
description: Paste relevant logs. Redact secrets before submitting.
74+
render: shell

‎.github/ISSUE_TEMPLATE/config.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Security report
4+
url: mailto:fanjingwen50@gmail.com
5+
about: Please report vulnerabilities privately instead of opening a public issue.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Feature request
2+
description: Propose an improvement to the Antigravity knowledge engine or its delivery channels.
3+
title: "[Feature]: "
4+
labels: ["enhancement"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Antigravity is a repository knowledge engine first. Explain how the request improves grounded codebase Q&A, refresh quality, install ergonomics, or supported delivery channels.
10+
- type: textarea
11+
id: problem
12+
attributes:
13+
label: Problem
14+
description: What user problem should this solve?
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: proposal
19+
attributes:
20+
label: Proposed solution
21+
description: Describe the behavior or interface you want.
22+
validations:
23+
required: true
24+
- type: dropdown
25+
id: area
26+
attributes:
27+
label: Area
28+
options:
29+
- Knowledge refresh
30+
- Routed Q&A
31+
- Evidence validation
32+
- CLI
33+
- MCP
34+
- Claude Code plugin
35+
- Codex CLI plugin
36+
- Documentation
37+
- Docker/deployment
38+
- Other
39+
validations:
40+
required: true
41+
- type: textarea
42+
id: alternatives
43+
attributes:
44+
label: Alternatives considered
45+
description: What workaround or design did you consider?
46+
- type: textarea
47+
id: context
48+
attributes:
49+
label: Additional context

‎.github/dependabot.yml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
8+
- package-ecosystem: pip
9+
directory: /engine
10+
schedule:
11+
interval: weekly
12+
13+
- package-ecosystem: pip
14+
directory: /cli
15+
schedule:
16+
interval: weekly

‎.github/workflows/repo-hygiene.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Repo Hygiene
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
contract-check:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v5
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v6
18+
with:
19+
python-version: "3.12"
20+
cache: pip
21+
22+
- name: Check repository contract
23+
run: python scripts/check_repo_contract.py

‎.github/workflows/test.yml‎

Lines changed: 61 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,75 +2,84 @@ name: Agent CI
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
engine-test:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.10", "3.11", "3.12"]
1216

1317
steps:
14-
- uses: actions/checkout@v3
15-
16-
- name: Set up Python 3.12
17-
uses: actions/setup-python@v4
18-
with:
19-
python-version: "3.12"
20-
21-
- name: Install engine dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install "./engine[dev]"
25-
26-
- name: Run engine tests
27-
run: |
28-
pytest engine/tests/
29-
30-
- name: Verify engine entrypoints
31-
run: |
32-
ag-ask --help
33-
ag-refresh --help
34-
ag-mcp --help
35-
python -m antigravity_engine --help
36-
python -m antigravity_engine.hub --help
18+
- uses: actions/checkout@v5
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v6
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
cache: pip
25+
26+
- name: Install engine dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install "./engine[dev]"
30+
31+
- name: Run engine tests
32+
run: pytest engine/tests/
33+
34+
- name: Verify engine entrypoints
35+
run: |
36+
ag-ask --help
37+
ag-refresh --help
38+
ag-mcp --help
39+
python -m antigravity_engine --help
40+
python -m antigravity_engine.hub --help
3741
3842
docker-check:
3943
runs-on: ubuntu-latest
4044

4145
steps:
42-
- uses: actions/checkout@v3
46+
- uses: actions/checkout@v5
4347

44-
- name: Validate docker-compose config
45-
run: docker compose config --quiet
48+
- name: Validate docker-compose config
49+
run: docker compose config --quiet
4650

47-
- name: Build main Dockerfile
48-
run: docker build -t ag-ci-test .
51+
- name: Build main Dockerfile
52+
run: docker build -t ag-ci-test .
4953

50-
- name: Build sandbox Dockerfile
51-
run: docker build -f Dockerfile.sandbox -t ag-sandbox-ci-test .
54+
- name: Build sandbox Dockerfile
55+
run: docker build -f Dockerfile.sandbox -t ag-sandbox-ci-test .
5256

5357
cli-check:
5458
runs-on: ubuntu-latest
59+
strategy:
60+
fail-fast: false
61+
matrix:
62+
python-version: ["3.10", "3.11", "3.12"]
5563

5664
steps:
57-
- uses: actions/checkout@v3
58-
59-
- name: Set up Python 3.12
60-
uses: actions/setup-python@v4
61-
with:
62-
python-version: "3.12"
63-
64-
- name: Install CLI and engine
65-
run: |
66-
python -m pip install --upgrade pip
67-
pip install "./engine[dev]" ./cli
68-
69-
- name: Run CLI tests
70-
run: pytest cli/tests/
71-
72-
- name: Verify CLI commands
73-
run: |
74-
ag --help
75-
ag ask --help
76-
ag refresh --help
65+
- uses: actions/checkout@v5
66+
67+
- name: Set up Python ${{ matrix.python-version }}
68+
uses: actions/setup-python@v6
69+
with:
70+
python-version: ${{ matrix.python-version }}
71+
cache: pip
72+
73+
- name: Install CLI and engine
74+
run: |
75+
python -m pip install --upgrade pip
76+
pip install "./engine[dev]" ./cli
77+
78+
- name: Run CLI tests
79+
run: pytest cli/tests/
80+
81+
- name: Verify CLI commands
82+
run: |
83+
ag --help
84+
ag ask --help
85+
ag refresh --help

0 commit comments

Comments
 (0)