@cubocicloide/stack-react-fastapi 13.0.8 → 13.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +179 -257
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/templates/base/AGENTS.md +42 -0
- package/templates/base/CLAUDE.md.hbs +25 -0
- package/templates/base/docs/docs/cheatsheet.md +28 -0
- package/templates/base/docs/docs/dude.md.hbs +1 -0
- package/templates/base/docs/mkdocs.yml.hbs +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubocicloide/stack-react-fastapi",
|
|
3
|
-
"version": "13.0
|
|
3
|
+
"version": "13.1.0",
|
|
4
4
|
"description": "React (Vite) + FastAPI stack plugin for the dude CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"openapi-typescript": "^7.13.0",
|
|
21
21
|
"pathe": "^1.1.2",
|
|
22
22
|
"yaml": "^2.6.0",
|
|
23
|
-
"@cubocicloide/dude": "0.
|
|
23
|
+
"@cubocicloide/dude": "0.16.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/node": "^
|
|
26
|
+
"@types/node": "^26.1.2",
|
|
27
27
|
"tsup": "^8.3.0",
|
|
28
28
|
"typescript": "^5.6.3",
|
|
29
29
|
"vitest": "^2.1.9"
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
Entry point for coding agents. This file is deliberately a **pointer**, not a
|
|
4
|
+
second copy of the project guidance — duplicated instructions drift.
|
|
5
|
+
|
|
6
|
+
## 1. Ask the project what it is
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
dude cheatsheet --format json
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
One call returns this project's live command catalog, every lint rule with its
|
|
13
|
+
code and title, the verify loop, and the answers it was scaffolded with. It is
|
|
14
|
+
generated from the project itself, so it is always current. Prefer it over any
|
|
15
|
+
hand-written command list.
|
|
16
|
+
|
|
17
|
+
`dude help --format json` returns just the command catalog, if that is all you
|
|
18
|
+
need.
|
|
19
|
+
|
|
20
|
+
## 2. Read the conventions before writing code
|
|
21
|
+
|
|
22
|
+
- **[CLAUDE.md](CLAUDE.md)** — the full project guidance: layout, stack
|
|
23
|
+
conventions, workflows, and what not to do. Written for Claude Code, but it is
|
|
24
|
+
plain Markdown and applies to any agent.
|
|
25
|
+
- **`.claude/rules/<GROUP>/<NNN>.md`** — one file per lint rule, explaining why
|
|
26
|
+
it exists and how to fix a violation. A reported code maps to its file by
|
|
27
|
+
splitting group from number: `<GROUP><NNN>` lives at
|
|
28
|
+
`.claude/rules/<GROUP>/<NNN>.md`. Run `dude cheatsheet` to see this project's
|
|
29
|
+
actual codes — the groups differ per stack.
|
|
30
|
+
|
|
31
|
+
## 3. Verify your own work
|
|
32
|
+
|
|
33
|
+
Do not report a change as done until these pass:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
dude lint # structural conventions — the project's actual contract
|
|
37
|
+
dude test # the test suites
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
`dude lint` is the point: this project's conventions are enforced mechanically,
|
|
41
|
+
so you can check your output instead of guessing. If a diagnostic is in your way,
|
|
42
|
+
read its rule file and fix the cause — do not work around the check.
|
|
@@ -5,6 +5,31 @@ Read it fully before suggesting changes. Keep it up to date as the project evolv
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## Start here: `dude cheatsheet`
|
|
9
|
+
|
|
10
|
+
Before reading further, run:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
dude cheatsheet --format json
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
One call returns **this project's** live command catalog, every lint rule with its
|
|
17
|
+
code and title, the verify loop, and the answers it was scaffolded with. It is
|
|
18
|
+
generated from the project itself, so it cannot drift from reality the way a
|
|
19
|
+
hand-written list can — prefer it over any command list in this file.
|
|
20
|
+
|
|
21
|
+
Then verify your own work before claiming it is done:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
dude lint # structural conventions; each code has prose in .claude/rules/
|
|
25
|
+
dude test # the project's test suites
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
When `dude lint` reports a code, read `.claude/rules/<GROUP>/<NNN>.md` for why the
|
|
29
|
+
rule exists and how to fix it properly — do not work around a diagnostic.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
8
33
|
## What this project is
|
|
9
34
|
|
|
10
35
|
**{{projectName}}** is a full-stack web application scaffolded by [`dude`](https://github.com/cubocicloide/dude)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Cheatsheet
|
|
2
|
+
|
|
3
|
+
!!! info "Auto-generated"
|
|
4
|
+
This page is generated from **this project** every time you run `dude docs`:
|
|
5
|
+
the commands it actually has, the conventions `dude lint` enforces, the verify
|
|
6
|
+
loop, and how it was scaffolded. So it always matches your init choices
|
|
7
|
+
(database, Celery, IaC…) and any project-local commands under
|
|
8
|
+
`.dude/commands/`.
|
|
9
|
+
|
|
10
|
+
You're seeing this placeholder because the docs haven't been served yet. Run:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
dude docs
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
and this page will be replaced with the real cheatsheet. You can also print it
|
|
17
|
+
yourself at any time:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
dude cheatsheet # this page, as Markdown
|
|
21
|
+
dude cheatsheet --format json # the same data for tooling and coding agents
|
|
22
|
+
dude cheatsheet --out NOTES.md # write it somewhere instead of stdout
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
!!! tip "Working with a coding agent?"
|
|
26
|
+
Point it at `dude cheatsheet --format json`. One call returns the command
|
|
27
|
+
catalog, every lint rule with its code, and the verify loop — so it knows what
|
|
28
|
+
it may run and what will be checked, without crawling this whole site.
|
|
@@ -310,6 +310,7 @@ copy-pasting.
|
|
|
310
310
|
| Command | Description |
|
|
311
311
|
|---------|-------------|
|
|
312
312
|
| `dude docs` | Serve this documentation in dev mode at <http://localhost:8001> |
|
|
313
|
+
| `dude cheatsheet` | One dense reference for this project — commands, lint rules, verify loop. `--format json` for coding agents |
|
|
313
314
|
| `dude docs --port 9000` | Use a custom port |
|
|
314
315
|
| `dude help --format md` | Print the full command reference as Markdown |
|
|
315
316
|
| `dude help --format json` | Print the same catalog as JSON (for tooling / LLMs) |
|