chiltepin 0.47.7 → 0.47.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chiltepin",
|
|
3
|
-
"version": "0.47.
|
|
3
|
+
"version": "0.47.8",
|
|
4
4
|
"description": "Documentation-as-code CLI: write Markdown with typed YAML blocks for API docs, architecture & system design (C4, ERDs, sequence diagrams), frontend & design systems, ADRs and decision records, planning, and slide presentations. Validate like code with `chiltepin check`, export to HTML, slides, or PDF. AI-native — one-command agent skill (npx skills add jdiejim/chiltepin -y) and a visual Studio.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"picocolors": "^1.1.1",
|
|
26
26
|
"react": "^18.3.1",
|
|
27
27
|
"yaml": "^2.6.1",
|
|
28
|
-
"chiltepin-
|
|
29
|
-
"chiltepin-
|
|
30
|
-
"chiltepin-
|
|
28
|
+
"chiltepin-core": "0.25.0",
|
|
29
|
+
"chiltepin-render": "0.34.0",
|
|
30
|
+
"chiltepin-studio": "0.16.4"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
33
|
"playwright": "^1.49.0"
|
package/templates/skill/SKILL.md
CHANGED
|
@@ -93,7 +93,8 @@ content. Rewrite the whole document only when the user requests a rewrite.
|
|
|
93
93
|
| What causes this? | `fishbone` · `matrix` | one effect, branching causes → fishbone |
|
|
94
94
|
| Why did we decide this? | `options` · `proscons` · `scqa` · `takeaways` · `callout` | the ADR shape → `reference/recipes.md`; the decision alone → callout |
|
|
95
95
|
| What does the API accept and return? | `endpoint` · `code` · `packet` · `table` | HTTP surface → endpoint; wire format → packet; error codes → table |
|
|
96
|
-
| How does the
|
|
96
|
+
| How does the AI workflow run end to end? | `flow` · `swimlane` · `block` · `cycle` · `sequence` | agents, models, tools, humans and memory as `flow` nodes with `kind: agent / llm / tool / human / memory` — a RAG pipeline, a router, a multi-agent hand-off, a generate-check-repair loop; several owners per step → swimlane; the deployment around it → block; an improve-and-re-evaluate loop → cycle; one turn's timing → sequence. Draw the workflow the request describes; `agentloop` is only the fixed single-agent frame |
|
|
97
|
+
| How does one agent's loop behave? | `agentloop` · `trace` · `prompt` · `context` | the loop → agentloop; one real run → trace; the contract → prompt; window contents → context |
|
|
97
98
|
| What did the review find, and are we ready? | `audit` · `checklist` · `risk` | defects found with evidence → audit; a standard applied once → checklist; what might go wrong → risk |
|
|
98
99
|
| Are we within budget, and how slow is the tail? | `perfbudget` · `percentiles` · `slo` · `benchmark` | targets with a pass line → perfbudget; p50…p99 per endpoint → percentiles; targets over time → slo |
|
|
99
100
|
| Where can this be attacked? | `threatmodel` · `dfd` · `audit` | STRIDE on a data flow with trust boundaries → threatmodel; the flow alone → dfd |
|
|
@@ -11,10 +11,12 @@ the window budget (`context`).
|
|
|
11
11
|
told? What fills the window? What did a real run look like?
|
|
12
12
|
They compose — the AI / agent recipe in `reference/recipes.md` stacks all
|
|
13
13
|
four.
|
|
14
|
-
**Not this family**:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
**Not this family**: an AI *workflow* — a RAG pipeline, a router, agents
|
|
15
|
+
handing off, a generate → check → repair loop → `flow` (flows.md) with
|
|
16
|
+
`kind: agent / llm / tool / human / memory`; each ask gets its own shape,
|
|
17
|
+
never the fixed agentloop frame. Several owners per step → `swimlane`; the
|
|
18
|
+
deployment around it → `block` (`kind: llm` / `agent`); an improve-and-
|
|
19
|
+
re-evaluate cycle → `cycle`; one turn's timing → `sequence`.
|
|
18
20
|
|
|
19
21
|
### AI & agents
|
|
20
22
|
|
|
@@ -31,13 +31,13 @@ per block; the density check warns past 40 spans. `sequence` for order, not dura
|
|
|
31
31
|
States on a grid joined by event arrows, plus a transition table. Answers: what
|
|
32
32
|
states can it be in, and what moves it? Give it one `kind: start` state and mark
|
|
33
33
|
`terminal` states. `state`, not `flow`, for one object's discrete modes.
|
|
34
|
-
#### `flow` — flowchart with decisions
|
|
35
|
-
Start, process, decision, and
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
#### `flow` — flowchart with decisions, incl. AI workflows
|
|
35
|
+
Start, process, decision, end, and AI nodes (`kind: agent / llm / tool /
|
|
36
|
+
human / memory`, each with its chip); `variant: dag` frames a pipeline.
|
|
37
|
+
Answers: what happens next, what if the check fails, which step is a model,
|
|
38
|
+
a tool, or a person? Main path on `col` 1, 2, 3, branches on `row: 2`; omit
|
|
39
|
+
`col`/`row` for auto-layout. A no / fail / error label renders red. `flow`,
|
|
40
|
+
not `sequence`, for branching; `flow`, not `agentloop`, for AI workflows.
|
|
41
41
|
#### `dfd` — data-flow diagram
|
|
42
42
|
External entities, numbered processes, and stores joined by labelled data
|
|
43
43
|
flows. Answers: where does the data come from, and where does it land?
|
|
@@ -48,7 +48,25 @@ window? · What does a real run look like?
|
|
|
48
48
|
7. `trace` — one real transcript, evidence the loop behaves as drawn.
|
|
49
49
|
8. `callout` — the safety boundary the agent cannot cross.
|
|
50
50
|
|
|
51
|
-
Rejected: `flow` (the loop is the primitive
|
|
51
|
+
Rejected: `flow` for the loop itself (the loop is the primitive, not a
|
|
52
|
+
branch chart) — but a multi-step AI *workflow* is the next recipe.
|
|
53
|
+
|
|
54
|
+
## AI workflow (RAG, routing, multi-agent, generate → check → repair)
|
|
55
|
+
|
|
56
|
+
Reader questions: What are the steps? · Which step is a model, a tool, a
|
|
57
|
+
person, or memory? · Where does it branch, retry, or stop?
|
|
58
|
+
|
|
59
|
+
1. `meta` — the workflow's name and the outcome it produces.
|
|
60
|
+
2. Prose — the trigger and the stop condition in two sentences.
|
|
61
|
+
3. `flow` — the workflow as the request describes it: `kind: llm` for model
|
|
62
|
+
calls, `agent` for autonomous steps, `tool` for retrieval / APIs / code,
|
|
63
|
+
`human` for review gates, `memory` for stores, `decision` for routers and
|
|
64
|
+
checks, `-x->` for the repair path. Shape it from the ask; never reuse a
|
|
65
|
+
generic loop.
|
|
66
|
+
4. `swimlane` — instead of `flow` when several agents or teams own steps.
|
|
67
|
+
5. `cycle` — the improve-and-re-evaluate loop, when there is one.
|
|
68
|
+
6. `context` or `envelope` — the budget: tokens per turn, or cost per run.
|
|
69
|
+
7. `callout` — what the workflow must never do on its own.
|
|
52
70
|
|
|
53
71
|
## Frontend architecture
|
|
54
72
|
|