visualproof 0.4.4 → 0.6.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 (82) hide show
  1. package/README.md +16 -7
  2. package/dist/assets/tips/phone-fingers.light.mp4 +0 -0
  3. package/dist/assets/tips/phone-fingers.light.webp +0 -0
  4. package/dist/assets/tips/tour-agent.webp +0 -0
  5. package/dist/assets/tips/tour-arrange.webp +0 -0
  6. package/dist/assets/tips/tour-artwork.webp +0 -0
  7. package/dist/assets/tips/tour-checks.webp +0 -0
  8. package/dist/assets/tips/tour-keys.webp +0 -0
  9. package/dist/assets/tips/tour-library.webp +0 -0
  10. package/dist/assets/tips/tour-project.webp +0 -0
  11. package/dist/assets/tips/tour-review.webp +0 -0
  12. package/dist/assets/tips/tour-share.webp +0 -0
  13. package/dist/assets/tips/tour-source.webp +0 -0
  14. package/dist/assets/tips/tour-target.webp +0 -0
  15. package/dist/assets/tips/tour-view.webp +0 -0
  16. package/dist/assets/tips/tour.json +132 -117
  17. package/dist/assets/tips/tour.webp +0 -0
  18. package/dist/mcp/visualproof-mcp.mjs +20 -9
  19. package/dist/server/access.js +31 -1
  20. package/dist/server/accesspage.js +130 -0
  21. package/dist/server/agent.js +143 -50
  22. package/dist/server/askfollow.js +1 -1
  23. package/dist/server/buildwatch.js +133 -0
  24. package/dist/server/deploy.js +995 -0
  25. package/dist/server/doctor.js +15 -3
  26. package/dist/server/film.js +1 -1
  27. package/dist/server/historyapi.js +100 -50
  28. package/dist/server/historythread.js +206 -0
  29. package/dist/server/hover.js +8 -0
  30. package/dist/server/invites.js +113 -20
  31. package/dist/server/live.js +308 -60
  32. package/dist/server/main.js +450 -77
  33. package/dist/server/mcptools.js +33 -20
  34. package/dist/server/presence.js +3 -3
  35. package/dist/server/prompt.js +8 -3
  36. package/dist/server/readonlygate.js +4 -4
  37. package/dist/server/review.js +27 -7
  38. package/dist/server/reviewapi.js +51 -17
  39. package/dist/server/status.js +119 -46
  40. package/dist/server/talk.js +231 -115
  41. package/dist/server/tokens.js +10 -2
  42. package/dist/server/usage.js +51 -0
  43. package/dist/shared/board.js +2 -1
  44. package/dist/shared/build.js +35 -1
  45. package/dist/shared/collab.js +8 -0
  46. package/dist/shared/deploy.js +35 -0
  47. package/dist/shared/keys.js +66 -37
  48. package/dist/shared/layout.js +297 -70
  49. package/dist/shared/libm.js +366 -0
  50. package/dist/shared/lostfound.js +1 -0
  51. package/dist/shared/mentions.js +83 -0
  52. package/dist/shared/palette.js +1 -1
  53. package/dist/shared/query.js +13 -4
  54. package/dist/shared/review.js +91 -21
  55. package/dist/shared/reviewqueue.js +6 -1
  56. package/dist/shared/separate.js +556 -32
  57. package/dist/web/bundle/app.js +5022 -2736
  58. package/dist/web/bundle/edges.js +2 -1
  59. package/dist/web/bundle/layout.js +1026 -80
  60. package/dist/web/index.html +45 -9
  61. package/dist/web/src/canvas.js +47 -34
  62. package/dist/web/src/overview.js +4 -1
  63. package/dist/web/src/reviewqueue.js +52 -19
  64. package/dist/web/src/scene.js +13 -12
  65. package/dist/web/src/status.js +28 -0
  66. package/dist/web/src/theme.js +108 -0
  67. package/dist/web/src/trust.js +271 -0
  68. package/dist/web/style.css +283 -105
  69. package/docs/agent-api/README.md +13 -11
  70. package/docs/agent-api/advice.md +8 -2
  71. package/docs/agent-api/export.md +1 -1
  72. package/docs/agent-api/following.md +11 -12
  73. package/docs/agent-api/history.md +6 -2
  74. package/docs/agent-api/mcp.md +15 -15
  75. package/docs/agent-api/notes.md +1 -1
  76. package/docs/agent-api/reading.md +2 -2
  77. package/docs/agent-api/requests.md +16 -18
  78. package/docs/agent-api/talking.md +60 -55
  79. package/docs/agent-api/tcb.md +21 -21
  80. package/docs/agent-api/views.md +3 -4
  81. package/docs/agent-api/words.md +8 -8
  82. package/package.json +2 -1
@@ -77,7 +77,7 @@ companion shows who is in the Time Machine ([following](following.md)).
77
77
  ## `GET /api/agent/place?name=|cluster=&mode=&near=&limit=` (any level)
78
78
 
79
79
  `place`, `pins` and `undo` are about the **Project view** (other views: `views/view`,
80
- `views/arrange`). MCP: `pins` (actions `place`, `pin`, `undo`).
80
+ `views/arrange`). MCP: `pins` (`place`, `pin`, `undo`).
81
81
 
82
82
  Where a declaration or cluster is (`mode`: `namespace`, default, or `module`), and what else is in
83
83
  its parent. Coordinates are in the **parent cluster's frame**, origin at its centre.
@@ -103,9 +103,8 @@ overlap). `limit` 0–2000, default 100; `more`: the rest.
103
103
  ```
104
104
 
105
105
  To avoid overlaps, ask with `near=` your spot and move until the first sibling's `gap` is positive:
106
- on the page a pin pushes aside what is not pinned (a declaration, or a cluster with its contents),
107
- and the later of two overlapping pins pushes the earlier, so an overlap moves things you did not
108
- mean to, others' pins included.
106
+ a pin pushes aside what is not pinned (a declaration, a cluster with its contents), and the later of
107
+ two overlapping pins the earlier, so an overlap moves what you did not mean to, others' pins too.
109
108
 
110
109
  ## `POST /api/agent/pins` (needs full)
111
110
 
@@ -44,13 +44,13 @@ The terms the other topics use.
44
44
  - **Review order**: bottom-up (what a declaration uses before it; mutual users together), then
45
45
  what more targets rest on, then name. A review judges a declaration assuming what it uses means
46
46
  what it says.
47
- - **Status** (people's): `commented` if some reviewer's latest opinion on the present version is a
48
- comment; else `approved` if one approves; else `stale` if it has opinions, none on the present
49
- version; else `none`.
47
+ - **Status** (people's): `commented` if some reviewer's latest opinion (none if withdrawn) on the
48
+ present version is a comment; else `approved` if one approves; else `stale` if it has opinions,
49
+ none on the present version; else `none`.
50
50
  - **Target**: a theorem whose TCB is reviewed; marked by people, or agents at level full
51
51
  (`markedByAgent`).
52
- - **Key declaration**: a review member that matters for reading the target (central definitions,
53
- the structures under them, the main theorem), marked per target as targets are; the target always
54
- is one. A non-key member is **supported by** a key declaration reaching it by statement and body
55
- references through non-key members; the **key graph** links key declarations reached so. People
56
- review key declarations first.
52
+ - **Key declaration**: a TCB member, trusted or not, that matters for reading the target (central
53
+ definitions, the structures under them, the main theorem), marked per target as targets are; the
54
+ target always is one; a trusted one needs no review. A non-key member is **supported by** a key
55
+ declaration reaching it by statement and body references through non-key members; the **key
56
+ graph** links key declarations reached so. People read key declarations first.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "visualproof",
3
- "version": "0.4.4",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "description": "See a Lean codebase's declaration graph and the TCB of its theorems.",
6
6
  "license": "Apache-2.0",
@@ -26,6 +26,7 @@
26
26
  "test": "node --test --import ./test/setup.ts \"test/*.test.ts\"",
27
27
  "test:toolchains": "node scripts/test-toolchains.mjs",
28
28
  "test:updates": "node scripts/test-updates.mjs",
29
+ "test:e2e": "node scripts/e2e/smoke.mjs",
29
30
  "golden:update": "VP_GOLDEN_UPDATE=1 node --test --import ./test/setup.ts test/compat.test.ts"
30
31
  },
31
32
  "engines": {