chiltepin 0.47.7 → 0.47.9

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.7",
3
+ "version": "0.47.9",
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-render": "0.33.3",
29
- "chiltepin-studio": "0.16.3",
30
- "chiltepin-core": "0.24.0"
28
+ "chiltepin-render": "0.34.1",
29
+ "chiltepin-studio": "0.16.5",
30
+ "chiltepin-core": "0.25.0"
31
31
  },
32
32
  "optionalDependencies": {
33
33
  "playwright": "^1.49.0"
@@ -92,8 +92,10 @@ content. Rewrite the whole document only when the user requests a rewrite.
92
92
  | What is this made of? | `anatomy` · `composition` · `erd` · `layers` | labeled parts of a string → anatomy; proportions → composition |
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
+ | Is it a table, or a table with a job? | `table` · `statustable` · `matrix` · `heatmap` · `benchmark` · `scorecard` · `glossary` · `changelog` · `inventory` · `audit` · `checklist` · `journey` | `table` only when every cell is a plain fact. A status per row → statustable; two axes with a mark or permission → matrix; a value grid read by intensity → heatmap; measured numbers compared → benchmark; scores you gave → scorecard; term — definition → glossary; releases → changelog; components with a maturity → inventory; findings with evidence → audit; a standard applied → checklist; touchpoints per stage → journey; API params → endpoint |
95
96
  | What does the API accept and return? | `endpoint` · `code` · `packet` · `table` | HTTP surface → endpoint; wire format → packet; error codes → table |
96
- | How does the agent behave? | `agentloop` · `trace` · `prompt` · `context` | the loop → agentloop; one real runtrace; the contractprompt; window contentscontext |
97
+ | 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 |
98
+ | 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
99
  | 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
100
  | 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
101
  | Where can this be attacked? | `threatmodel` · `dfd` · `audit` | STRIDE on a data flow with trust boundaries → threatmodel; the flow alone → dfd |
@@ -139,6 +141,9 @@ existing fence only to silence the `W_ALIAS_TYPE` warning.
139
141
  `code` block (`kind: compare` for before / after); terms are a
140
142
  `glossary`; questions a reader will ask are a `faq`; a runbook is
141
143
  `steps`; side-by-side snippets or nested diagrams are a `gallery`.
144
+ Before writing `table`, read the "table with a job" row: a grid whose
145
+ rows carry a status, score, definition, release, or finding has its own
146
+ block, and that block draws the status chips and derived values for you.
142
147
  - Diagram data (node names, messages, labels, values) is never trimmed to
143
148
  fit. Split a dense diagram into two; `chiltepin check` warns at the caps.
144
149
  - Every arrow says what crosses it, as a verb phrase, never "uses". A `c4`
@@ -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**: the architecture around the agent (services, queues,
15
- vector stores)`block` (architecture.md; `kind: llm` / `agent` gets the
16
- violet card); one turn's message timing between services `sequence`
17
- (flows.md).
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 end nodes with labelled edges; `variant: dag`
36
- frames it as a pipeline. Answers: what happens next, and what if the check
37
- fails? Flows run across, not down: the main path on `col` 1, 2, 3, branches
38
- on `row: 2`. Omit `col`/`row` for auto-layout (`dir: TB` works only there).
39
- A label that starts with no / fail / error / reject renders red. `groups`
40
- draw dashed zones over cell ranges. `flow`, not `sequence`, for branching.
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?
@@ -9,13 +9,18 @@ Structure & emphasis for headline numbers, targets, and code as evidence
9
9
  (`stats`, `slo`, `code`).
10
10
  **Answers**: What are the exact values? How big, fast, or reliable is it,
11
11
  as measured?
12
- **Not this family**:
12
+ **Not this family** — a table with a job has its own block:
13
13
 
14
14
  - cells are permission levels → `matrix` (business.md)
15
15
  - a value grid read by intensity → `heatmap` (charts-overviews.md)
16
16
  - the numbers move over time → `chart` (charts-overviews.md)
17
17
  - scores you invented rather than measured → `scorecard` or `harvey`
18
18
  (business.md)
19
+ - a status per row → `statustable` (planning.md); components with a
20
+ maturity → `inventory` (design-system.md)
21
+ - term — definition → `glossary`; releases → `changelog`; findings with
22
+ evidence → `audit`; a standard applied → `checklist` (quality.md)
23
+ - touchpoints per stage → `journey`; API params / responses → `endpoint`
19
24
 
20
25
  ### Tables & metrics
21
26
 
@@ -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 here, not a branch chart).
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