Restructure repository into output workspace
This commit is contained in:
21
AGENTS.md
21
AGENTS.md
@@ -3,32 +3,33 @@
|
||||
## Non-negotiable rules
|
||||
|
||||
- Host commands are limited to `git`, `docker`, and `curl`. Everything else runs inside the provided wrapper scripts.
|
||||
- Use `./run/dev.sh` for all development automation (scaffolding, linting, status updates).
|
||||
- Use `./run/packager.sh` for packaging tasks that require the Cloudron CLI.
|
||||
- Use `./output/run/dev.sh` for all development automation (scaffolding, linting, status updates).
|
||||
- Use `./output/run/packager.sh` for packaging tasks that require the Cloudron CLI.
|
||||
- Containers mount the repo at `/workspace`; do not write outside it.
|
||||
- Keep collaboration artifacts under `collab/` and agent-owned generated outputs under `output/`; treat these as the only top-level workspaces for coordination versus deliverables.
|
||||
|
||||
## Images
|
||||
|
||||
- `knel/cloudron-devtools` – built automatically by `./run/dev.sh`; contains Python tooling.
|
||||
- `knel/cloudron-packager` – built automatically by `./run/packager.sh`; contains the Cloudron CLI.
|
||||
- `knel/cloudron-devtools` – built automatically by `./output/run/dev.sh`; contains Python tooling.
|
||||
- `knel/cloudron-packager` – built automatically by `./output/run/packager.sh`; contains the Cloudron CLI.
|
||||
|
||||
## Common workflows
|
||||
|
||||
```bash
|
||||
# Generate/refresh a scaffold
|
||||
./run/dev.sh python scripts/new_app.py --slug apache-apisix
|
||||
./output/run/dev.sh python output/scripts/new_app.py --slug apache-apisix
|
||||
|
||||
# Regenerate the full catalog (overwrites existing scaffolds)
|
||||
./run/dev.sh python scripts/new_app.py --force
|
||||
./output/run/dev.sh python output/scripts/new_app.py --force
|
||||
|
||||
# Lint an app (fails on TODO placeholders)
|
||||
./run/dev.sh python scripts/lint_repo.py --slug apache-apisix --strict
|
||||
./output/run/dev.sh python output/scripts/lint_repo.py --slug apache-apisix --strict
|
||||
|
||||
# Refresh docs/APP_STATUS.md without changing the timestamp
|
||||
./run/dev.sh python scripts/generate_status.py --preserve-timestamp
|
||||
# Refresh output/docs/APP_STATUS.md without changing the timestamp
|
||||
./output/run/dev.sh python output/scripts/generate_status.py --preserve-timestamp
|
||||
|
||||
# Open the Cloudron packaging shell (add BUILD=1 to rebuild the image first)
|
||||
./run/packager.sh
|
||||
./output/run/packager.sh
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
Reference in New Issue
Block a user