@cubocicloide/stack-frappe 2.0.5 → 2.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 +89 -165
- 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-frappe",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Frappe Framework + Frappe Helpdesk ticketing stack plugin for the dude CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"pathe": "^1.1.2",
|
|
21
|
-
"@cubocicloide/dude": "0.
|
|
21
|
+
"@cubocicloide/dude": "0.16.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/node": "^
|
|
24
|
+
"@types/node": "^26.1.2",
|
|
25
25
|
"tsup": "^8.3.0",
|
|
26
26
|
"typescript": "^5.6.3",
|
|
27
27
|
"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.
|
|
@@ -4,6 +4,31 @@ Frappe Framework ticketing project scaffolded by `dude` (stack: `frappe`).
|
|
|
4
4
|
{{#if withHelpdesk}}Frappe Helpdesk provides the ticketing UI; the custom app
|
|
5
5
|
`apps/ticketing/` extends it.{{/if}}
|
|
6
6
|
|
|
7
|
+
## Start here: `dude cheatsheet`
|
|
8
|
+
|
|
9
|
+
Before reading further, run:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
dude cheatsheet --format json
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
One call returns **this project's** live command catalog, every lint rule with its
|
|
16
|
+
code and title, the verify loop, and the answers it was scaffolded with. It is
|
|
17
|
+
generated from the project itself, so it cannot drift from reality the way a
|
|
18
|
+
hand-written list can — prefer it over any command list in this file.
|
|
19
|
+
|
|
20
|
+
Then verify your own work before claiming it is done:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
dude lint # structural conventions; each code has prose in .claude/rules/
|
|
24
|
+
dude test # the project's test suites
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
When `dude lint` reports a code, read `.claude/rules/<GROUP>/<NNN>.md` for why the
|
|
28
|
+
rule exists and how to fix it properly — do not work around a diagnostic.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
7
32
|
## Architecture
|
|
8
33
|
|
|
9
34
|
- **Local runtime** — Docker Compose: `mariadb`, `redis-cache`, `redis-queue`
|
|
@@ -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.
|
|
@@ -200,6 +200,7 @@ command list is in `dude help` (and the [Command reference](api.md)).
|
|
|
200
200
|
| Command | Description |
|
|
201
201
|
|---------|-------------|
|
|
202
202
|
| `dude docs` | Serve this documentation in dev mode at <http://localhost:8001> |
|
|
203
|
+
| `dude cheatsheet` | One dense reference for this project — commands, lint rules, verify loop. `--format json` for coding agents |
|
|
203
204
|
| `dude docs --port 9000` | Use a custom port |
|
|
204
205
|
| `dude help --format md` | Print the full command reference as Markdown |
|
|
205
206
|
| `dude help --format json` | Print the same catalog as JSON (for tooling / LLMs) |
|