visualproof 0.4.3 → 0.5.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/latex/visualproof.sty +19 -9
- 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 +117 -112
- package/dist/assets/tips/tour.webp +0 -0
- package/dist/mcp/visualproof-mcp.mjs +7 -3
- package/dist/server/access.js +37 -1
- package/dist/server/accesspage.js +130 -0
- package/dist/server/agent.js +11 -5
- package/dist/server/agentlibrary.js +1 -1
- package/dist/server/agentviews.js +1 -1
- package/dist/server/artcmd.js +1 -1
- package/dist/server/askfollow.js +1 -4
- package/dist/server/buildwatch.js +133 -0
- package/dist/server/deploy.js +844 -0
- package/dist/server/doctor.js +15 -3
- package/dist/server/events.js +20 -5
- package/dist/server/export.js +17 -4
- package/dist/server/fetchurl.js +30 -13
- package/dist/server/film.js +1 -1
- package/dist/server/history.js +3 -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/identity.js +25 -1
- package/dist/server/library.js +10 -3
- package/dist/server/live.js +206 -28
- package/dist/server/lostfound.js +3 -2
- package/dist/server/main.js +361 -50
- package/dist/server/poppler.js +48 -10
- package/dist/server/renames.js +10 -5
- package/dist/server/review.js +32 -2
- package/dist/server/reviewapi.js +1 -1
- package/dist/server/status.js +144 -50
- package/dist/server/talk.js +7 -2
- package/dist/server/usage.js +51 -0
- package/dist/server/views.js +21 -7
- package/dist/shared/board.js +2 -1
- package/dist/shared/collab.js +14 -8
- package/dist/shared/deploy.js +35 -0
- package/dist/shared/doc/latex.js +5 -3
- package/dist/shared/doc/outline.js +6 -3
- package/dist/shared/layout.js +297 -70
- package/dist/shared/libm.js +366 -0
- package/dist/shared/library.js +11 -6
- package/dist/shared/palette.js +1 -1
- package/dist/shared/review.js +7 -5
- package/dist/shared/search.js +7 -3
- package/dist/shared/separate.js +556 -32
- package/dist/shared/views.js +8 -1
- package/dist/web/bundle/app.js +3595 -1520
- package/dist/web/bundle/edges.js +44 -16
- package/dist/web/bundle/layout.js +1026 -80
- package/dist/web/index.html +2 -2
- package/dist/web/src/artwork.js +25 -4
- package/dist/web/src/axiomring.js +42 -0
- package/dist/web/src/bundles.js +52 -16
- package/dist/web/src/canvas.js +109 -54
- package/dist/web/src/overview.js +4 -1
- package/dist/web/src/past.js +28 -0
- package/dist/web/src/scene.js +13 -12
- package/dist/web/src/selection.js +47 -4
- package/dist/web/src/status.js +32 -2
- package/dist/web/src/theme.js +108 -0
- package/dist/web/style.css +181 -45
- package/docs/agent-api/following.md +1 -1
- package/docs/agent-api/history.md +3 -0
- package/docs/agent-api/library.md +1 -1
- package/docs/agent-api/requests.md +4 -1
- package/docs/agent-api/views.md +1 -1
- package/package.json +1 -1
package/dist/shared/views.js
CHANGED
|
@@ -178,6 +178,9 @@ export function linkRefused(v, target) {
|
|
|
178
178
|
* Remove from this view makes a copy without it instead. Every other view's scope can change, a
|
|
179
179
|
* target's view's too (decision 28). */
|
|
180
180
|
export const fixedScope = (v) => v.id === PROJECT;
|
|
181
|
+
/** Why the Project's scope is not changed (ViewSpec decision 5: never rescoped, the outside world
|
|
182
|
+
* included). */
|
|
183
|
+
export const PROJECT_SCOPE = "The Project always holds everything: Duplicate it for a board that holds less.";
|
|
181
184
|
/** Why a view cannot be kept at a past build, or null. The Project and a target's view always show
|
|
182
185
|
* the latest: the one is everyone's way in, and on the other the review is given, which a past
|
|
183
186
|
* graph cannot take; Save as new view keeps a build in a view of its own. */
|
|
@@ -597,11 +600,15 @@ export class ViewBook {
|
|
|
597
600
|
/** A view's scope changed by `by`. A scope changed is work done on the board, as a pin dropped is:
|
|
598
601
|
* a view not kept yet is kept by it (ViewSpec decision 6), so that what was added to it or taken
|
|
599
602
|
* out of it from the canvas's menu outlives the pages that had it open. A rename carried into the
|
|
600
|
-
* scope (`keep` false: server/views.ts, moveDeclaration) is no one's work and keeps nothing.
|
|
603
|
+
* scope (`keep` false: server/views.ts, moveDeclaration) is no one's work and keeps nothing. The
|
|
604
|
+
* Project's scope stays `all` (ViewSpec decision 5), whoever asks: the page, an agent, a
|
|
605
|
+
* snapshot. */
|
|
601
606
|
setScope(id, scope, by, keep = true) {
|
|
602
607
|
const v = this.find(id);
|
|
603
608
|
if (typeof v === "string")
|
|
604
609
|
return v;
|
|
610
|
+
if (fixedScope(v))
|
|
611
|
+
return sameQuery(v.scope, scope) ? null : PROJECT_SCOPE;
|
|
605
612
|
if (sameQuery(v.scope, scope))
|
|
606
613
|
return null;
|
|
607
614
|
v.scope = scope;
|