visualproof 0.6.0 → 0.7.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 +2 -2
- package/dist/extractor/Extract.lean +13 -3
- package/dist/server/agent.js +102 -2879
- package/dist/server/agentactivity.js +72 -0
- package/dist/server/agentadvice.js +115 -0
- package/dist/server/agentdocs.js +1 -1
- package/dist/server/agententry.js +180 -0
- package/dist/server/agentexport.js +469 -0
- package/dist/server/agentfollow.js +384 -0
- package/dist/server/agentgraph.js +128 -0
- package/dist/server/agentlean.js +144 -0
- package/dist/server/agentlibrary.js +1 -1
- package/dist/server/agentplaces.js +242 -0
- package/dist/server/agentread.js +569 -0
- package/dist/server/agenttalk.js +282 -0
- package/dist/server/agenttcb.js +378 -0
- package/dist/server/agentviews.js +2 -2
- package/dist/server/app.js +377 -0
- package/dist/server/appaccess.js +127 -0
- package/dist/server/appagent.js +110 -0
- package/dist/server/appgraph.js +176 -0
- package/dist/server/appshare.js +179 -0
- package/dist/server/appsite.js +120 -0
- package/dist/server/apptalk.js +178 -0
- package/dist/server/artcmd.js +1 -1
- package/dist/server/events.js +1 -1
- package/dist/server/history.js +51 -3
- package/dist/server/historyapi.js +34 -2
- package/dist/server/hover.js +11 -7
- package/dist/server/identity.js +1 -1
- package/dist/server/libraryroute.js +3 -3
- package/dist/server/live.js +61 -2
- package/dist/server/main.js +17 -1746
- package/dist/server/options.js +350 -0
- package/dist/server/outside.js +311 -0
- package/dist/server/pastdoc.js +22 -3
- package/dist/server/project.js +28 -4
- package/dist/server/send.js +259 -0
- package/dist/server/talk.js +13 -7
- package/dist/server/tokens.js +3 -3
- package/dist/server/view.js +3 -1
- package/dist/server/views.js +1 -1
- package/dist/shared/artrecipe.js +3 -3
- package/dist/shared/collab.js +1 -1
- package/dist/shared/comment.js +1 -1
- package/dist/shared/doc/build.js +30 -14
- package/dist/shared/doc/latex.js +7 -2
- package/dist/shared/doc/model.js +4 -2
- package/dist/shared/doc/sections.js +21 -4
- package/dist/shared/outside.js +16 -0
- package/dist/shared/pastgraph.js +11 -2
- package/dist/shared/scope.js +1 -1
- package/dist/web/bundle/app.js +49580 -49284
- package/dist/web/src/selection.js +1 -1
- package/dist/web/src/theme.js +1 -1
- package/dist/web/src/visitors.js +1 -1
- package/docs/agent-api/export.md +8 -5
- package/docs/agent-api/history.md +3 -1
- package/docs/agent-api/reading.md +8 -2
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
//
|
|
16
16
|
// Everything here is without the page, so that it can be tested: what a pick's query is and what
|
|
17
17
|
// it says in words, reading picks back from a query (an address, a reader followed, an agent), what
|
|
18
|
-
// a click or a shift-click does to the list, and how key 2 steps through Rests on.
|
|
18
|
+
// a click or a shift-click does to the list, and how key 2 steps through Rests on. pageselection.ts keeps the
|
|
19
19
|
// list and the thing the panel tells of; web/src/selbar.ts shows the list.
|
|
20
20
|
import { renameInQuery } from "../../shared/moves.js";
|
|
21
21
|
import { describe, keysQuery, parseQuery, printQuery, readKeys } from "../../shared/query.js";
|
package/dist/web/src/theme.js
CHANGED
|
@@ -38,7 +38,7 @@ export function applyTheme(choice = themeChoice()) {
|
|
|
38
38
|
document.documentElement.dataset.theme = t;
|
|
39
39
|
}
|
|
40
40
|
/** Show `t` whatever the reader chose, until it is let go (null): the artwork mode's theme (web/src/
|
|
41
|
-
*
|
|
41
|
+
* pageart.ts, drawLook), which a change of the system's, followed by "As the system", must not undo
|
|
42
42
|
* while the mode is on. Let go, the reader's choice is in force again. */
|
|
43
43
|
export function holdTheme(t) {
|
|
44
44
|
held = t;
|
package/dist/web/src/visitors.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
//
|
|
19
19
|
// This file holds the trail, the temporary clusters a set of visitors needs and how they are packed,
|
|
20
20
|
// where the outermost of them is put in a cluster of the board, and the references a visitor's edges
|
|
21
|
-
// draw, all as pure functions; web/src/visits.ts lays them on the board's scene, web/src/
|
|
21
|
+
// draw, all as pure functions; web/src/visits.ts lays them on the board's scene, web/src/pageselection.ts
|
|
22
22
|
// keeps the trail of the board on show and web/src/canvas.ts draws it.
|
|
23
23
|
import { packEnclose, packSiblings } from "d3-hierarchy";
|
|
24
24
|
import { SITE_BODY, SITE_STMT } from "../../shared/graph.js";
|
package/docs/agent-api/export.md
CHANGED
|
@@ -69,10 +69,10 @@ In `head`, the view's:
|
|
|
69
69
|
|
|
70
70
|
## `GET /api/agent/export?view=&settings=&version=`
|
|
71
71
|
|
|
72
|
-
The model, `version`
|
|
72
|
+
The model, `version` 11: the PDF's content as JSON.
|
|
73
73
|
|
|
74
74
|
```json
|
|
75
|
-
{ "version":
|
|
75
|
+
{ "version": 11, "settings": { "paper": "a4", "margin": 22, "fontSize": 11, "codeSize": 8.5, "contents": true },
|
|
76
76
|
"view": { "id": "vus09c41", "scope": "key(Hilbert91)", … }, "head": { "title": "Keys of Hilbert91", "author": "Bob and Alice", … },
|
|
77
77
|
"items": [ { "t": "decl", "decl": { "name": "Hilbert91", "code": { "proofElided": true, "from": "source", "lines": [ [ [ "keyword", "theorem" ], … ], … ] }, … } },
|
|
78
78
|
{ "t": "section", "section": { "key": "systemOfUnits", "level": 1, "items": [ … ], … } } ],
|
|
@@ -80,8 +80,11 @@ The model, `version` 10: the PDF's content as JSON.
|
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
- Also: `head` `project`, `roots`, `fingerprint`, `commit`, `toolchain`, `past`, `trusted`
|
|
83
|
-
(`prefixes`, `standardAxioms`), `outside` (`count`, `by
|
|
84
|
-
`module`, `file`, `line`, `doc`; section `id`, `title`; `view` `title`,
|
|
83
|
+
(`prefixes`, `standardAxioms`), `outside` (`count`, `by`: what is not printed); `decl` `id`,
|
|
84
|
+
`short`, `kind`, `module`, `file`, `line`, `doc`; section `id`, `title`; `view` `title`,
|
|
85
|
+
`clustering`, `hidden`. An outside declaration key for a target is printed, from its package's
|
|
86
|
+
source: `external: true`, `package` (`Lean` for the core) where its source was found, `file` in
|
|
87
|
+
the package.
|
|
85
88
|
- Top-level `items`: the unheaded start (no cluster, or a hidden top level); a section's: its
|
|
86
89
|
declarations, notes and sections, in board order. `level`: 1–3 numbered, 4+ paragraph-level.
|
|
87
90
|
- `doc`: null or `[{"t": "p", "inl": [{"t": "text", "s": "…"}]}]`. Code: lines of `[kind, text]`,
|
|
@@ -90,7 +93,7 @@ The model, `version` 10: the PDF's content as JSON.
|
|
|
90
93
|
- Proofs: a theorem's cut after its statement (`proofElided`), a definition's shown `…`
|
|
91
94
|
(`proofsCut`: how many), where the usage pass found them. Where it has not read the text
|
|
92
95
|
(`textCut`: `edited`, file changed since compiled; `unread`, pass off, running or failed on the
|
|
93
|
-
module; `past`, a past build's), reading the text finds them: every `by` block of the value,
|
|
96
|
+
module; `past`, a past build's; `outside`, from outside the project), reading the text finds them: every `by` block of the value,
|
|
94
97
|
`decreasing_by`'s tactics; it also cuts a `by` block building data, and keeps a proof written as
|
|
95
98
|
a term.
|
|
96
99
|
|
|
@@ -71,7 +71,9 @@ A snapshot's graph (latest without `id`), as the page reads the graph on show, n
|
|
|
71
71
|
`projectCount` nodes are the project's, `{name, kind, module, ax, type, doc?, range?, also?, flags?,
|
|
72
72
|
leanName?, display?, hash, kernel?}` (`hash`: its version under the renames in force, comparable
|
|
73
73
|
with opinions' and the graph on show's; `kernel`: the kernel hash read with); then outside ones,
|
|
74
|
-
`{name, kind, module, ax, ext: true}`.
|
|
74
|
+
`{name, kind, module, ax, ext: true, range?}`. A snapshot's `packages`: `{revs: {<package>: <rev>},
|
|
75
|
+
from: "read" | "commit"}`, the lake-manifest's revisions then (`commit`: from the build's commit,
|
|
76
|
+
for one read before 0.7.0); outside sources are shown only where those are the revisions now. `ax` indexes `axiomSets`, whose entries index `axioms`;
|
|
75
77
|
`edges`: flat `src, dst, sites` triples (sites as in `uses`).
|
|
76
78
|
|
|
77
79
|
Large (flt-regular's: 0.8 MB of JSON, 139 KB gzipped; an 8,000-declaration project's: 14 MB, 2.6 MB gzipped):
|
|
@@ -71,7 +71,11 @@ As the source window shows it: docstring, attributes and proof included.
|
|
|
71
71
|
resolved, a `variable` per binder) or read from the text, per its `precision`.
|
|
72
72
|
- Advice records `context`, a blank line, `text` (just `text` if `context` is ""), as people's do.
|
|
73
73
|
- `compiled: false` (with `note`): file changed since compiled; the present text, found by name;
|
|
74
|
-
advice waits for the next build.
|
|
74
|
+
advice waits for the next build.
|
|
75
|
+
- **Outside the project** (a package of the lake-manifest, Lean's core): its file in its package,
|
|
76
|
+
with `outside`: `{package, core, rev, github}` (`github`: `{repo, rev, path}`, or null where not
|
|
77
|
+
on GitHub; core: `leanprover/lean4` at the toolchain's tag); `compiled: false` where the package
|
|
78
|
+
is at another revision than the graph was read at. 404 where its file is not found.
|
|
75
79
|
- A unit (`also`, `alsoNote`): what the same command generated, listed with it (`print` each);
|
|
76
80
|
advice on the unit covers them, its hash changes with them. `generatedNote`: generated by a
|
|
77
81
|
command none of whose declarations could fold it in; its source is the command's text.
|
|
@@ -83,7 +87,9 @@ that text (`GET context`: latest build only). `check`: `lake` (Lake hash matches
|
|
|
83
87
|
hash kept, a build from before texts were kept: the one candidate agreeing with every recorded
|
|
84
88
|
place: imports, declaration bounds, doc comments, names). Text not kept (edited after the build and
|
|
85
89
|
not in the commit, or no match): 404, `kept: false`, why in `error`, statement and doc then; never
|
|
86
|
-
another text. Not reviewed: advice is on the latest build.
|
|
90
|
+
another text. Not reviewed: advice is on the latest build. Outside the project nothing is kept per
|
|
91
|
+
build: `check: "rev"`, the package's file now, where its revision then (or the toolchain) is the
|
|
92
|
+
one now; else 404, `kept: false`, both revisions in `error`.
|
|
87
93
|
|
|
88
94
|
## `GET /api/agent/context?name=`
|
|
89
95
|
|