@johnz4021/illuminate 0.5.7 → 0.5.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/dist/cli.mjs +15 -5
- package/package.json +1 -1
- package/viewer/assets/{elk.bundled-2XwJMq69.js → elk.bundled-zPTBQaxZ.js} +2 -2
- package/viewer/assets/{elk.bundled-2XwJMq69.js.map → elk.bundled-zPTBQaxZ.js.map} +1 -1
- package/viewer/assets/{index-DbQqaVLC.css → index-CD2Dl_jB.css} +1 -1
- package/viewer/assets/{index-6o72063v.js → index-Q0V5V0eL.js} +21 -21
- package/viewer/assets/index-Q0V5V0eL.js.map +1 -0
- package/viewer/index.html +2 -2
- package/viewer/assets/index-6o72063v.js.map +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -2458,7 +2458,7 @@ var init_format = __esm({
|
|
|
2458
2458
|
proposed: Proposal.optional(),
|
|
2459
2459
|
/** Only on a map with `since`: this code was there at that commit and is gone now. Its `evidence` cites it as it was. */
|
|
2460
2460
|
removed: z.boolean().optional(),
|
|
2461
|
-
/**
|
|
2461
|
+
/** The way through this box is on (see `Branch`); none for what the ways share. */
|
|
2462
2462
|
branch: Branch.optional()
|
|
2463
2463
|
});
|
|
2464
2464
|
Edge = z.object({
|
|
@@ -2472,7 +2472,7 @@ var init_format = __esm({
|
|
|
2472
2472
|
proposed: Proposal.optional(),
|
|
2473
2473
|
/** Only on a map with `since`: this connection was there at that commit and is gone now. Its `evidence` cites it as it was. */
|
|
2474
2474
|
removed: z.boolean().optional(),
|
|
2475
|
-
/**
|
|
2475
|
+
/** The way through this arrow is on (see `Branch`), including an arrow that leads from it back to what the ways share. */
|
|
2476
2476
|
branch: Branch.optional()
|
|
2477
2477
|
});
|
|
2478
2478
|
Absence = z.object({
|
|
@@ -3614,6 +3614,8 @@ function makerPrompt(question, headStart2) {
|
|
|
3614
3614
|
"",
|
|
3615
3615
|
...MAP_RULES,
|
|
3616
3616
|
"",
|
|
3617
|
+
...BRANCH_RULES,
|
|
3618
|
+
"",
|
|
3617
3619
|
...TIMELINE_RULES,
|
|
3618
3620
|
"",
|
|
3619
3621
|
...JOURNEY_RULES,
|
|
@@ -3779,12 +3781,14 @@ ${missing}`] : [],
|
|
|
3779
3781
|
"",
|
|
3780
3782
|
...EVIDENCE_RULES,
|
|
3781
3783
|
"",
|
|
3784
|
+
...BRANCH_RULES,
|
|
3785
|
+
"",
|
|
3782
3786
|
...PROPOSAL_RULES,
|
|
3783
3787
|
"",
|
|
3784
3788
|
...SCREEN_RULES
|
|
3785
3789
|
].join("\n");
|
|
3786
3790
|
}
|
|
3787
|
-
var EVIDENCE_RULES, MAP_RULES, TIMELINE_RULES, JOURNEY_RULES, PROPOSAL_RULES, CHANGE_RULES, SCREEN_RULES, TOUR_RULES, NO_SYMBOL, ANSWER_STYLE;
|
|
3791
|
+
var EVIDENCE_RULES, MAP_RULES, BRANCH_RULES, TIMELINE_RULES, JOURNEY_RULES, PROPOSAL_RULES, CHANGE_RULES, SCREEN_RULES, TOUR_RULES, NO_SYMBOL, ANSWER_STYLE;
|
|
3788
3792
|
var init_prompts = __esm({
|
|
3789
3793
|
"packages/server/src/prompts.ts"() {
|
|
3790
3794
|
"use strict";
|
|
@@ -3815,6 +3819,11 @@ var init_prompts = __esm({
|
|
|
3815
3819
|
`- An \`absence\` is a break in the flow you were asked about: a step on that path should lead to the next one and doesn't (something is announced that nothing listens for, a job that nothing ever starts). Most maps have none, and a map without one is complete. Don't go looking for one, and don't use one for a design choice or guarantee ("X never calls Y", "nothing here edits files"): say that in a box's explanation or the walkthrough instead. Don't record small mismatches beside the question (a command the docs don't mention, an unused option).`,
|
|
3816
3820
|
"- When there is a break, record it: the `claim` in plain words, the two boxes it should connect (`between`), and the exact `search` that proves nothing is there (`pattern`, `regex`, optional `paths` globs covering every file where the missing piece could live), with `matches` set to the count that search returns (usually 0). Run that search yourself with Grep first."
|
|
3817
3821
|
];
|
|
3822
|
+
BRANCH_RULES = [
|
|
3823
|
+
"## Ways through (`branch`, on any kind of map)",
|
|
3824
|
+
'- When the answer has more than one way through and the difference matters (two ways in that meet later, an error or cancel path, the options of a change they asked to compare), give every box and arrow that is on only one of them a `"branch"`: a short name for that way in plain words ("Wallet sign-up", "Payment fails", "A: prompt rule"), the same name on every box and arrow of it. What the ways share carries no branch. Each way is drawn in its own colour, with a key.',
|
|
3825
|
+
"- Keep to the ways that matter, at most 5. A map with one way through has no branches."
|
|
3826
|
+
];
|
|
3818
3827
|
TIMELINE_RULES = [
|
|
3819
3828
|
"## When the answer is parties taking turns (a timeline)",
|
|
3820
3829
|
'- Set `"view": "timeline"` when the answer is two or more parties or places handing off to each other, back and forth, and the order between them is the point: a protocol or handshake, a login through an outside service, a payment and its webhook, a client and server over a socket, a swap across two chains. It is drawn with one lane per area and time running left to right, so make each area one party or place ("Browser", "Our server", "Google"; "Chain A", "Chain B"), and list the boxes in the order things happen.',
|
|
@@ -3830,7 +3839,7 @@ var init_prompts = __esm({
|
|
|
3830
3839
|
"- Each box and arrow still cites the code that makes it so: the component, the handler, the redirect.",
|
|
3831
3840
|
"- Show where each step happens: define the pages the journey goes through in `pages`, one for each state of a screen the person sees (see Screens), and give each screen box a wireframe of its page with its own part marked. Steps in the same state share one page. A box whose page can't be drawn usefully (nothing recognisable on it, or it isn't in this repo) gets no `screen`: no picture is better than a thin one.",
|
|
3832
3841
|
"- Where the journey stops short (a button that leads nowhere, a result with no screen, nothing ever telling the person what happened), that is a break: record it as an absence.",
|
|
3833
|
-
'- One main path, with branches: the main path is what most people do from start to finish, and its boxes and arrows carry no `branch
|
|
3842
|
+
'- One main path, with branches (see Ways through): the main path is what most people do from start to finish, and its boxes and arrows carry no `branch`; each way off it is a branch named in the person\'s words ("Saves for later", "Payment fails"). The main path is drawn on one straight line, left to right, and each branch below the step it leaves from. An arrow that leads from a branch back to the main path carries that branch too.',
|
|
3834
3843
|
"- A branch leaves from a `choice`, or from any step where things can go another way (an error, a cancel, a link elsewhere). Keep to the branches that matter, at most 5. A journey with only one way through has no branches.",
|
|
3835
3844
|
"- The walkthrough is told as the person's experience too: down the main path first, one stop per screen, then one stop for each branch."
|
|
3836
3845
|
];
|
|
@@ -3841,6 +3850,7 @@ var init_prompts = __esm({
|
|
|
3841
3850
|
'- `"kind": "change"` or `"remove"`: code that is there today and would be changed or deleted. Cite it like any other claim.',
|
|
3842
3851
|
"- `note`: one plain sentence saying what would change and why.",
|
|
3843
3852
|
"- Every new box must connect, through arrows, to a box that exists. Keep it small: only the boxes and arrows the change needs.",
|
|
3853
|
+
'- When they ask to compare ways of making a change, each option is a way through (see Ways through) named for it ("A: \u2026", "B: \u2026"), drawn as far as where its effect shows (what the person sees, or what the code does differently), so the options can be told apart at a glance.',
|
|
3844
3854
|
'- On a screen: a box with `proposed` may have a sketch with elements marked `"proposed": true` for what would be added to it, and a new screen is a new box whose sketch is all new.',
|
|
3845
3855
|
"- A program checks proposals against the code too. Proposing to add what the code already has, or to change or remove what it doesn't have, is sent back."
|
|
3846
3856
|
];
|
|
@@ -5037,7 +5047,7 @@ var VERSION, PACKAGE, DAY;
|
|
|
5037
5047
|
var init_updates = __esm({
|
|
5038
5048
|
"packages/server/src/updates.ts"() {
|
|
5039
5049
|
"use strict";
|
|
5040
|
-
VERSION = true ? "0.5.
|
|
5050
|
+
VERSION = true ? "0.5.8" : void 0;
|
|
5041
5051
|
PACKAGE = "@johnz4021/illuminate";
|
|
5042
5052
|
DAY = 24 * 60 * 60 * 1e3;
|
|
5043
5053
|
}
|