visualproof 0.8.2 → 0.10.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.
Files changed (54) hide show
  1. package/README.md +12 -9
  2. package/dist/assets/tips/tour-library.webp +0 -0
  3. package/dist/assets/tips/tour-source.webp +0 -0
  4. package/dist/assets/tips/tour.json +90 -90
  5. package/dist/extractor/Extract.lean +34 -11
  6. package/dist/mcp/visualproof-mcp.mjs +30 -5
  7. package/dist/server/agent.js +19 -7
  8. package/dist/server/agententry.js +13 -6
  9. package/dist/server/agentexport.js +2 -1
  10. package/dist/server/agentfollow.js +13 -3
  11. package/dist/server/agentlean.js +91 -1
  12. package/dist/server/agentnotes.js +6 -4
  13. package/dist/server/agentread.js +33 -1
  14. package/dist/server/app.js +7 -3
  15. package/dist/server/appagent.js +1 -1
  16. package/dist/server/appgraph.js +24 -0
  17. package/dist/server/appshare.js +119 -1
  18. package/dist/server/apptalk.js +26 -0
  19. package/dist/server/boardspots.js +1 -1
  20. package/dist/server/children.js +6 -2
  21. package/dist/server/claudetokens.js +113 -0
  22. package/dist/server/doctor.js +7 -0
  23. package/dist/server/goals.js +224 -0
  24. package/dist/server/hosted.js +480 -0
  25. package/dist/server/hover.js +281 -8
  26. package/dist/server/live.js +34 -2
  27. package/dist/server/main.js +30 -2
  28. package/dist/server/mcptools.js +15 -7
  29. package/dist/server/options.js +30 -2
  30. package/dist/server/presence.js +2 -2
  31. package/dist/server/prompt.js +25 -0
  32. package/dist/server/readonlygate.js +2 -1
  33. package/dist/server/reviewapi.js +5 -2
  34. package/dist/server/status.js +43 -5
  35. package/dist/server/tokens.js +7 -4
  36. package/dist/shared/build.js +9 -0
  37. package/dist/shared/collab.js +17 -2
  38. package/dist/shared/declfind.js +23 -3
  39. package/dist/shared/goals.js +309 -0
  40. package/dist/shared/hygiene.js +18 -0
  41. package/dist/shared/noteplace.js +45 -19
  42. package/dist/shared/scope.js +74 -45
  43. package/dist/shared/sharesnap.js +4 -2
  44. package/dist/web/bundle/app.js +2368 -591
  45. package/dist/web/index.html +2 -1
  46. package/dist/web/src/highlight.js +53 -3
  47. package/dist/web/style.css +151 -0
  48. package/docs/agent-api/README.md +1 -1
  49. package/docs/agent-api/mcp.md +4 -2
  50. package/docs/agent-api/notes.md +3 -2
  51. package/docs/agent-api/reading.md +38 -2
  52. package/docs/agent-api/talking.md +7 -0
  53. package/docs/agent-api/words.md +3 -2
  54. package/package.json +1 -1
@@ -105,8 +105,10 @@ export const SNAPSHOT_FORMS = {
105
105
  read: (o, clean) => ("visitors" in o && clean.visitors ? { visitors: clean.visitors } : {}),
106
106
  },
107
107
  panel: same("sel"),
108
- sources: same("source", "sourceCollapsed", "pinned"),
108
+ sources: same("source", "sourceCollapsed", "sourceMode", "pinned"),
109
109
  paper: same("paper"),
110
+ // the InfoView's caret, in the window it is in (the owner's decision of 2026-11-01)
111
+ caret: same("caret"),
110
112
  activity: same("activity"),
111
113
  lostFound: same("lostFound"),
112
114
  colouring: same("scheme"),
@@ -215,7 +217,7 @@ export function sortOut(v, has) {
215
217
  * tells of, the declarations of the selection (`picked`), the visitors, the pinned windows — and a
216
218
  * focus on what is no target now. */
217
219
  export function goneNames(v, picked, has) {
218
- const named = [v.sel, ...picked, ...(v.visitors ?? []).map((w) => w.decl), ...(v.pinned ?? []).map((w) => w.decl)];
220
+ const named = [v.sel, ...picked, ...(v.visitors ?? []).map((w) => w.decl), ...(v.pinned ?? []).flatMap((w) => ("decl" in w ? [w.decl] : []))];
219
221
  const decls = [...new Set(named.filter((n) => !!n && !has.decl(n)))];
220
222
  return { decls, ...(typeof v.focus === "string" && !has.target(v.focus) ? { focus: v.focus } : {}) };
221
223
  }