@akanjs/cli 2.2.10 → 2.2.12
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/README.md +15 -0
- package/guidelines/moduleOverview/moduleOverview.instruction.md +5 -1
- package/incrementalBuilder.proc.js +532 -253
- package/index.js +1039 -339
- package/package.json +2 -2
- package/templates/__scalar/__model__/__model__.abstract.md +28 -0
- package/templates/module/__model__.abstract.md +28 -0
- package/templates/service/__model__.abstract.md +28 -0
- package/templates/workspaceRoot/.cursor/rules/akan.mdc.template +26 -0
- package/templates/workspaceRoot/AGENTS.md.template +88 -0
package/README.md
CHANGED
|
@@ -37,6 +37,21 @@ akan create-module <module-name>
|
|
|
37
37
|
akan create-scalar <scalar-name>
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
+
## Agent And MCP Commands
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
akan context --format markdown
|
|
44
|
+
akan context --format json --module <module-name>
|
|
45
|
+
akan doctor --format json
|
|
46
|
+
akan guideline list
|
|
47
|
+
akan guideline show framework
|
|
48
|
+
akan agent install cursor
|
|
49
|
+
akan mcp
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
These commands expose Akan workspace structure, module abstracts, diagnostics, and guideline instructions for
|
|
53
|
+
coding agents. The MCP server is read-only and is intended to provide context rather than edit files directly.
|
|
54
|
+
|
|
40
55
|
Package maintenance commands are also exposed through the same executable:
|
|
41
56
|
|
|
42
57
|
```bash
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
Use this before generating or reviewing a database module. It defines which file owns which responsibility and in what order a module should grow.
|
|
5
5
|
|
|
6
6
|
## Ownership
|
|
7
|
+
- `model.abstract.md` describes business intent, durable domain rules, workflows, and agent notes that are not obvious from code.
|
|
7
8
|
- `model.constant.ts` defines business data shape, model layers, enums, field options, resolved values, and small type helpers.
|
|
8
9
|
- `model.dictionary.ts` defines user-facing labels, descriptions, endpoint text, slice text, errors, and UI strings.
|
|
9
10
|
- `model.document.ts` defines persistence behavior: filters, document methods, model helpers, indexes, and schema hooks.
|
|
@@ -13,7 +14,8 @@ Use this before generating or reviewing a database module. It defines which file
|
|
|
13
14
|
- `Model.Template.tsx`, `Model.Unit.tsx`, `Model.View.tsx`, `Model.Util.tsx`, and `Model.Zone.tsx` render forms, list items, detail views, controls, and page sections.
|
|
14
15
|
|
|
15
16
|
## Current Akan Patterns
|
|
16
|
-
- For a new model, read and generate in this order: constant, dictionary, document, service, signal, store, UI.
|
|
17
|
+
- For a new model, read and generate in this order: abstract, constant, dictionary, document, service, signal, store, UI.
|
|
18
|
+
- Before changing an existing module, read `model.abstract.md` first when it exists.
|
|
17
19
|
- For a list page, inspect signal slice, store, Zone, then Unit.
|
|
18
20
|
- For detail or edit UI, inspect signal view/endpoint, store, Zone/View, then Template.
|
|
19
21
|
- For a user action, design service behavior first, then signal endpoint, store action, and Util or Template control.
|
|
@@ -23,6 +25,8 @@ Use this before generating or reviewing a database module. It defines which file
|
|
|
23
25
|
- Do not hide business rules inside React render functions.
|
|
24
26
|
- Do not copy model shapes by hand across files; rely on generated types and helpers.
|
|
25
27
|
- Keep scanner-friendly names exactly aligned with the module name and PascalCase component name.
|
|
28
|
+
- Update `model.abstract.md` when business invariants, workflows, or public behavior change.
|
|
29
|
+
- Do not update `model.abstract.md` for formatting-only, import-only, or style-only changes.
|
|
26
30
|
|
|
27
31
|
## Review Checklist
|
|
28
32
|
- The instruction points to current docs pages, not removed docs routes.
|