@johnz4021/illuminate 0.5.4 → 0.5.5

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 CHANGED
@@ -116,6 +116,10 @@ from the code, with the part the step is about marked. Nothing has to be running
116
116
 
117
117
  ![A user journey: the main path across the top, three coloured branches below it](docs/images/journey.png)
118
118
 
119
+ When the answer is parties taking turns (a login through Google, a payment and its webhook, a swap across two
120
+ chains), Claude draws a timeline instead: a lane for each party, and the steps left to right in the order they happen,
121
+ so you can see who does what when.
122
+
119
123
  ### 4. A change before it's made
120
124
 
121
125
  > How would we send the welcome email right away when a patient converts? Show me a plan.
package/dist/cli.mjs CHANGED
@@ -2507,8 +2507,12 @@ var init_format = __esm({
2507
2507
  question: z.string().min(1).max(QUESTION_MAX),
2508
2508
  /** The commit the map was made from, when known. */
2509
2509
  commit: z.string().nullable().optional(),
2510
- /** `journey`: drawn as a user flow (left to right, shapes by kind, no code on the boxes). The claims are checked the same. */
2511
- view: z.enum(["journey"]).optional(),
2510
+ /**
2511
+ * How the map is drawn; the claims are checked the same either way. `journey`: a user flow (left to right, shapes by
2512
+ * kind, no code on the boxes). `timeline`: parties taking turns, each area a lane across the map and time running
2513
+ * left to right. Neither: grouped by area.
2514
+ */
2515
+ view: z.enum(["journey", "timeline"]).optional(),
2512
2516
  /**
2513
2517
  * Set on a map of a change: the commit the code is compared with. The checker marks each box and arrow that is new
2514
2518
  * or different since then, and confirms the ones the map says were `removed`. Stored as a full hash once resolved,
@@ -3610,6 +3614,8 @@ function makerPrompt(question, headStart2) {
3610
3614
  "",
3611
3615
  ...MAP_RULES,
3612
3616
  "",
3617
+ ...TIMELINE_RULES,
3618
+ "",
3613
3619
  ...JOURNEY_RULES,
3614
3620
  "",
3615
3621
  ...EVIDENCE_RULES,
@@ -3778,7 +3784,7 @@ ${missing}`] : [],
3778
3784
  ...SCREEN_RULES
3779
3785
  ].join("\n");
3780
3786
  }
3781
- var EVIDENCE_RULES, MAP_RULES, JOURNEY_RULES, PROPOSAL_RULES, CHANGE_RULES, SCREEN_RULES, TOUR_RULES, NO_SYMBOL, ANSWER_STYLE;
3787
+ var EVIDENCE_RULES, MAP_RULES, TIMELINE_RULES, JOURNEY_RULES, PROPOSAL_RULES, CHANGE_RULES, SCREEN_RULES, TOUR_RULES, NO_SYMBOL, ANSWER_STYLE;
3782
3788
  var init_prompts = __esm({
3783
3789
  "packages/server/src/prompts.ts"() {
3784
3790
  "use strict";
@@ -3807,6 +3813,11 @@ var init_prompts = __esm({
3807
3813
  `- 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).`,
3808
3814
  "- 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."
3809
3815
  ];
3816
+ TIMELINE_RULES = [
3817
+ "## When the answer is parties taking turns (a timeline)",
3818
+ '- 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.',
3819
+ "- Not for a flow that passes through each place once (the usual map already reads in order), not for how things are organised or what depends on what, and not for what a person sees (that is a journey)."
3820
+ ];
3810
3821
  JOURNEY_RULES = [
3811
3822
  "## When the question is about what a person sees or does (a journey, a user flow)",
3812
3823
  '- Set `"view": "journey"` on the map: it is then drawn as a user flow, left to right, with no code on the boxes (the code is one click away).',
@@ -5024,7 +5035,7 @@ var VERSION, PACKAGE, DAY;
5024
5035
  var init_updates = __esm({
5025
5036
  "packages/server/src/updates.ts"() {
5026
5037
  "use strict";
5027
- VERSION = true ? "0.5.4" : void 0;
5038
+ VERSION = true ? "0.5.5" : void 0;
5028
5039
  PACKAGE = "@johnz4021/illuminate";
5029
5040
  DAY = 24 * 60 * 60 * 1e3;
5030
5041
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@johnz4021/illuminate",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Checked, interactive maps of how your code works, drawn by your own Claude Code session.",
5
5
  "license": "MIT",
6
6
  "type": "module",