@johnz4021/illuminate 0.5.5 → 0.5.7

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 CHANGED
@@ -3735,7 +3735,7 @@ function quickAnswerPrompt(map, report, selection, question, excerpts, earlier,
3735
3735
  "## First decide how to handle it (`route`)",
3736
3736
  "- `answer`: the map and the excerpts fully answer it, without guessing about code you can't see. Then answer below.",
3737
3737
  "- `code`: it's about what this map shows (the same feature, or something its boxes lead to or come from), but answering needs code that isn't shown, or they ask for a change or fix, or a good answer would add boxes or arrows to this map. Say in `missing`, in one sentence, what you would need to look at, and leave the answer fields empty. Someone with the whole repo picks it up from there.",
3738
- "- `elsewhere`: it's about a different part of the app that this map doesn't touch, so adding it here would bolt an unrelated area onto this map. Put in `newQuestion` the question as a new map would ask it (their words, standing on its own), and if one of the other maps above already covers it, that map's id in `existingMap`. Leave the answer fields empty. They'll be asked whether to make a new map. Only use this when the question really is about something else; when in doubt, use `code`.",
3738
+ "- `elsewhere`: it's about a different part of the app that this map doesn't touch, so adding it here would bolt an unrelated area onto this map. Put in `newQuestion` their question in their own words, filling in only what it needs to make sense without this conversation (\"it\" becomes what it refers to). Don't add a route, function or detail they didn't ask about: the new map answers exactly what this says, so anything you add narrows it. If one of the other maps above already covers it, put that map's id in `existingMap`. Leave the answer fields empty. They'll be asked whether to make a new map. Only use this when the question really is about something else; when in doubt, use `code`.",
3739
3739
  "",
3740
3740
  "## How to answer (when `route` is `answer`)",
3741
3741
  ...ANSWER_STYLE,
@@ -3803,6 +3803,8 @@ var init_prompts = __esm({
3803
3803
  "- Aim for 6\u20138 boxes (`nodes`); 12 is a hard ceiling, reached only when the question asks about several things at once. A map is an answer, not an inventory: someone should be able to hold it in their head. Each box is one step a person would recognize and that the answer turns on.",
3804
3804
  "- Leave plumbing off the map unless the question is about it: a request arriving, a job being started, a result being saved, an update being sent to the screen. Fold each into the box it serves and say it in that box's `explain` or on the arrow.",
3805
3805
  "- When several steps in a row just hand on to the next (a route that calls a handler that calls a service), they are one box, cited at the step that matters.",
3806
+ '- A wrapper is not just handing on: a function that works out or fixes some of what it passes before calling another (who the owner is, a mode turned on or off, a value computed from the caller) is its own box, cited in the wrapper itself, never folded into its caller or the function it calls. Its `explain` says what it fills in and how ("Makes whoever signed the owner, and turns safe mode off, then creates the record"). People new to the code can\'t guess those values from the function it calls.',
3807
+ "- When what they ask about can happen more than one way (two ways to sign up, a request through the server and a direct call, two modes), draw each way to where they meet, unless they asked about one of them. Someone new to the code needs to know the others exist. Each way can be a box or two.",
3806
3808
  "- When the answer is a list of like things (five kinds of rule, four checks), that is one box naming the group, or at most the two or three that differ in a way the question cares about; put the rest in `explain`.",
3807
3809
  "- Before returning, go through the boxes one at a time: if the answer would be the same without it, drop or merge it.",
3808
3810
  '- Box `name`: plain English, at most 30 characters ("Patient marked enrolled", not "markConverted()").',
@@ -5035,7 +5037,7 @@ var VERSION, PACKAGE, DAY;
5035
5037
  var init_updates = __esm({
5036
5038
  "packages/server/src/updates.ts"() {
5037
5039
  "use strict";
5038
- VERSION = true ? "0.5.5" : void 0;
5040
+ VERSION = true ? "0.5.7" : void 0;
5039
5041
  PACKAGE = "@johnz4021/illuminate";
5040
5042
  DAY = 24 * 60 * 60 * 1e3;
5041
5043
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@johnz4021/illuminate",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
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",