@hattoriai/poney 0.1.1 → 0.3.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/brief.md +4 -4
- package/dist/{chunk-BCOS4LFB.js → chunk-FN43OHT5.js} +693 -244
- package/dist/chunk-FN43OHT5.js.map +1 -0
- package/dist/{chunk-YLKV6LIU.js → chunk-KV5CB763.js} +5 -5
- package/dist/{chunk-YLKV6LIU.js.map → chunk-KV5CB763.js.map} +1 -1
- package/dist/{chunk-TPJZDQG6.js → chunk-PRXFQAW2.js} +3 -3
- package/dist/{chunk-TPJZDQG6.js.map → chunk-PRXFQAW2.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/hub-OLUM6VK4.js +4 -0
- package/dist/hub-OLUM6VK4.js.map +1 -0
- package/dist/mcp.js +14 -8
- package/dist/mcp.js.map +1 -1
- package/dist/ops.d.ts +27 -27
- package/dist/ops.js +1 -1
- package/dist/plugins/index.js +1 -1
- package/dist/run-AYEEUZVG.js +3 -0
- package/dist/run-AYEEUZVG.js.map +1 -0
- package/examples/tour.poney +498 -75
- package/examples/walkthrough.poney +5 -5
- package/package.json +7 -13
- package/studio/assets/{dist-_ey1iXf6.js → dist-CGLReTF9.js} +1 -1
- package/studio/assets/{elk.bundled-Bw5WzyyE.js → elk.bundled-DY947aeZ.js} +1 -1
- package/studio/assets/index-DxRueLYJ.js +944 -0
- package/studio/assets/index-ugML0yPo.css +1 -0
- package/studio/assets/src-DZ2JOWW7.js +88 -0
- package/studio/index.html +2 -2
- package/dist/chunk-BCOS4LFB.js.map +0 -1
- package/dist/hub-FERXNPJS.js +0 -4
- package/dist/hub-FERXNPJS.js.map +0 -1
- package/dist/run-25PP2HWH.js +0 -3
- package/dist/run-25PP2HWH.js.map +0 -1
- package/studio/assets/index-B-C2JUUu.css +0 -1
- package/studio/assets/index-DOjop_HJ.js +0 -889
- package/studio/assets/src-Br__iChL.js +0 -88
package/brief.md
CHANGED
|
@@ -20,7 +20,7 @@ You write the content as one JSON document (a `.poney` file). You never write co
|
|
|
20
20
|
## The document
|
|
21
21
|
|
|
22
22
|
```
|
|
23
|
-
poneyVersion "0.
|
|
23
|
+
poneyVersion "0.2.0"
|
|
24
24
|
project { id, name, description }
|
|
25
25
|
model what the walkthrough talks about — only that
|
|
26
26
|
entities parts of the system: { id, kind, name, summary, parent?, technology?, sourceRefs? }
|
|
@@ -34,7 +34,7 @@ Model **only what the story needs**. A walkthrough of a sign-in change needs the
|
|
|
34
34
|
|
|
35
35
|
### Entities and relationships
|
|
36
36
|
|
|
37
|
-
- `kind` of an entity: `person`, `web-app`, `service`, `gateway`, `database`, `cache`, `
|
|
37
|
+
- `kind` of an entity: `person`, `web-app`, `service`, `gateway`, `database`, `cache`, `message-broker`, `external`, `component`, `interface`, `library`, `system`. A `component` is a part of the code inside a running program (C4); give it a `technology` such as "Ruby class" or "Elixir module", so readers see what it is in this codebase.
|
|
38
38
|
- `kind` of a relationship: `uses`, `calls`, `reads`, `writes`, `reads-writes`, `publishes`, `subscribes`, `depends-on`, `implements`.
|
|
39
39
|
- `name`: what a person calls it ("Payment service"), not a class path. Under 32 characters.
|
|
40
40
|
- `summary`: one line on what it is for.
|
|
@@ -46,7 +46,7 @@ Model **only what the story needs**. A walkthrough of a sign-in change needs the
|
|
|
46
46
|
|
|
47
47
|
- **Interaction** (a sequence): `participants` in left-to-right order, then `steps`. A step is a message `{ type: "message", id, kind: call|return|async|self, from, to, label }` or a fragment `{ type: "fragment", id, kind: alt|opt|loop|par, label, branches: [{ guard, steps }] }`. Message labels under 48 characters, and under 40 when the message is marked (a "New" tag follows the label). A `call` label says what is asked ("Find user by email"); a `return` label says what comes back ("User row", "401 Unauthorized").
|
|
48
48
|
- **State machine**: `states` (exactly one `initial` — it is drawn as a start dot with no name, so make it its own state, e.g. `{ "id": "start", "kind": "initial", "name": "Start" }`, with a transition to the first real state; `final` for end states; `outcome: success|failure` where it helps) and `transitions` `{ id, from, to, event, guard?, actions?, triggeredBy? }`. Events under 32 characters; conditions go in `guard`.
|
|
49
|
-
- **
|
|
49
|
+
- **Activity** (a flowchart, `"kind": "activity"`): `nodes` `{ id, kind: initial|final|action|decision|merge|fork|join, label, performedBy?, outcome?: success|failure }` (exactly one `initial`; note `label`, not `name`) and `flows` `{ id, from, to, guard? }`, with `guard` on the branches of a decision.
|
|
50
50
|
|
|
51
51
|
Ids are lowercase: letters, digits, `-`, `_`, `.`. Keep them short and readable: `s-locked`, `t-lock`, `r-api-db`.
|
|
52
52
|
|
|
@@ -116,7 +116,7 @@ Three scene fields say what the reader must **see**, by meaning. You never choos
|
|
|
116
116
|
Use one or two per scene. An effect on everything is an effect on nothing.
|
|
117
117
|
- `badges`: `[{ target, text, tone? }]` — a short fact on a box or a line (a relationship, a message in a sequence, a transition): `"p95 840 ms"`, `"3 retries"`, `"120 k rows"`. Under 18 characters. Give only numbers you read in the code, the config or the tests; never invent one.
|
|
118
118
|
|
|
119
|
-
`tone` is optional: `lapis`, `malachite`, `ochre`, `umber`, `tyrian`, `slate`, `
|
|
119
|
+
`tone` is optional: `lapis`, `malachite`, `ochre`, `umber`, `tyrian`, `slate`, `accent`, `verdigris`, or `#rrggbb`. Leave it out unless a colour carries meaning the effect does not.
|
|
120
120
|
|
|
121
121
|
### Extensions
|
|
122
122
|
|