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.
- package/README.md +16 -7
- package/dist/assets/tips/phone-fingers.light.mp4 +0 -0
- package/dist/assets/tips/phone-fingers.light.webp +0 -0
- package/dist/assets/tips/tour-agent.webp +0 -0
- package/dist/assets/tips/tour-arrange.webp +0 -0
- package/dist/assets/tips/tour-artwork.webp +0 -0
- package/dist/assets/tips/tour-checks.webp +0 -0
- package/dist/assets/tips/tour-keys.webp +0 -0
- package/dist/assets/tips/tour-library.webp +0 -0
- package/dist/assets/tips/tour-project.webp +0 -0
- package/dist/assets/tips/tour-review.webp +0 -0
- package/dist/assets/tips/tour-share.webp +0 -0
- package/dist/assets/tips/tour-source.webp +0 -0
- package/dist/assets/tips/tour-target.webp +0 -0
- package/dist/assets/tips/tour-view.webp +0 -0
- package/dist/assets/tips/tour.json +132 -117
- package/dist/assets/tips/tour.webp +0 -0
- package/dist/mcp/visualproof-mcp.mjs +20 -9
- package/dist/server/access.js +31 -1
- package/dist/server/accesspage.js +130 -0
- package/dist/server/agent.js +143 -50
- package/dist/server/askfollow.js +1 -1
- package/dist/server/buildwatch.js +133 -0
- package/dist/server/deploy.js +995 -0
- package/dist/server/doctor.js +15 -3
- package/dist/server/film.js +1 -1
- package/dist/server/historyapi.js +100 -50
- package/dist/server/historythread.js +206 -0
- package/dist/server/hover.js +8 -0
- package/dist/server/invites.js +113 -20
- package/dist/server/live.js +308 -60
- package/dist/server/main.js +450 -77
- package/dist/server/mcptools.js +33 -20
- package/dist/server/presence.js +3 -3
- package/dist/server/prompt.js +8 -3
- package/dist/server/readonlygate.js +4 -4
- package/dist/server/review.js +27 -7
- package/dist/server/reviewapi.js +51 -17
- package/dist/server/status.js +119 -46
- package/dist/server/talk.js +231 -115
- package/dist/server/tokens.js +10 -2
- package/dist/server/usage.js +51 -0
- package/dist/shared/board.js +2 -1
- package/dist/shared/build.js +35 -1
- package/dist/shared/collab.js +8 -0
- package/dist/shared/deploy.js +35 -0
- package/dist/shared/keys.js +66 -37
- package/dist/shared/layout.js +297 -70
- package/dist/shared/libm.js +366 -0
- package/dist/shared/lostfound.js +1 -0
- package/dist/shared/mentions.js +83 -0
- package/dist/shared/palette.js +1 -1
- package/dist/shared/query.js +13 -4
- package/dist/shared/review.js +91 -21
- package/dist/shared/reviewqueue.js +6 -1
- package/dist/shared/separate.js +556 -32
- package/dist/web/bundle/app.js +5022 -2736
- package/dist/web/bundle/edges.js +2 -1
- package/dist/web/bundle/layout.js +1026 -80
- package/dist/web/index.html +45 -9
- package/dist/web/src/canvas.js +47 -34
- package/dist/web/src/overview.js +4 -1
- package/dist/web/src/reviewqueue.js +52 -19
- package/dist/web/src/scene.js +13 -12
- package/dist/web/src/status.js +28 -0
- package/dist/web/src/theme.js +108 -0
- package/dist/web/src/trust.js +271 -0
- package/dist/web/style.css +283 -105
- package/docs/agent-api/README.md +13 -11
- package/docs/agent-api/advice.md +8 -2
- package/docs/agent-api/export.md +1 -1
- package/docs/agent-api/following.md +11 -12
- package/docs/agent-api/history.md +6 -2
- package/docs/agent-api/mcp.md +15 -15
- package/docs/agent-api/notes.md +1 -1
- package/docs/agent-api/reading.md +2 -2
- package/docs/agent-api/requests.md +16 -18
- package/docs/agent-api/talking.md +60 -55
- package/docs/agent-api/tcb.md +21 -21
- package/docs/agent-api/views.md +3 -4
- package/docs/agent-api/words.md +8 -8
- package/package.json +2 -1
package/docs/agent-api/views.md
CHANGED
|
@@ -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` (
|
|
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
|
-
|
|
107
|
-
|
|
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
|
|
package/docs/agent-api/words.md
CHANGED
|
@@ -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
|
|
48
|
-
comment; else `approved` if one approves; else `stale` if it has opinions,
|
|
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
|
|
53
|
-
the structures under them, the main theorem), marked per target as targets are; the
|
|
54
|
-
is one. A non-key member is **supported by** a key
|
|
55
|
-
references through non-key members; the **key
|
|
56
|
-
|
|
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.
|
|
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": {
|