visualproof 0.2.0 → 0.4.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 +88 -33
- 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-export.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 +289 -0
- package/dist/assets/tips/tour.webp +0 -0
- package/dist/assets/webfonts/LICENSE-Noto.txt +95 -0
- package/dist/assets/webfonts/metrics.json +1 -0
- package/dist/assets/webfonts/ttf/jost-400-normal.ttf +0 -0
- package/dist/assets/webfonts/ttf/jost-500-normal.ttf +0 -0
- package/dist/assets/webfonts/ttf/noto-sans-math.ttf +0 -0
- package/dist/assets/webfonts/ttf/noto-sans.ttf +0 -0
- package/dist/assets/webfonts/ttf/source-sans-3-400-italic.ttf +0 -0
- package/dist/assets/webfonts/ttf/source-sans-3-400-normal.ttf +0 -0
- package/dist/assets/webfonts/ttf/source-sans-3-500-normal.ttf +0 -0
- package/dist/assets/webfonts/ttf/source-sans-3-600-normal.ttf +0 -0
- package/dist/assets/webfonts/ttf/source-sans-3-700-normal.ttf +0 -0
- package/dist/assets/webfonts/ttf/source-serif-4-400-italic.ttf +0 -0
- package/dist/assets/webfonts/ttf/source-serif-4-600-italic.ttf +0 -0
- package/dist/mcp/visualproof-mcp.mjs +3 -1
- package/dist/server/agent.js +94 -91
- package/dist/server/agentdocs.js +1 -1
- package/dist/server/artcmd.js +335 -0
- package/dist/server/children.js +85 -0
- package/dist/server/doctor.js +105 -42
- package/dist/server/events.js +10 -0
- package/dist/server/export.js +11 -4
- package/dist/server/extract.js +3 -2
- package/dist/server/figures.js +3 -2
- package/dist/server/film.js +380 -0
- package/dist/server/history.js +11 -1
- package/dist/server/hover.js +8 -5
- package/dist/server/live.js +72 -9
- package/dist/server/main.js +352 -23
- package/dist/server/mcptools.js +4 -1
- package/dist/server/media.js +114 -0
- package/dist/server/pipeline.js +21 -10
- package/dist/server/poppler.js +3 -2
- package/dist/server/readonlygate.js +4 -4
- package/dist/server/review.js +4 -1
- package/dist/server/reviewapi.js +35 -1
- package/dist/server/snapshot.js +10 -1
- package/dist/server/sourcestore.js +3 -2
- package/dist/server/status.js +3 -2
- package/dist/server/supervise.js +219 -0
- package/dist/server/updates.js +951 -0
- package/dist/server/usage.js +3 -1
- package/dist/server/version.js +183 -0
- package/dist/server/view.js +0 -7
- package/dist/server/views.js +24 -0
- package/dist/shared/artfonts.js +81 -0
- package/dist/shared/artrecipe.js +316 -0
- package/dist/shared/collab.js +7 -2
- package/dist/shared/declfind.js +95 -0
- package/dist/shared/lostfound.js +1 -0
- package/dist/shared/pastgraph.js +6 -6
- package/dist/shared/review.js +62 -5
- package/dist/shared/timeline.js +5 -0
- package/dist/web/bundle/app.js +3006 -413
- package/dist/web/bundle/edges.js +1 -1
- package/dist/web/index.html +13 -1
- package/dist/web/src/agentmark.js +14 -0
- package/dist/web/src/artwork.js +1000 -0
- package/dist/web/src/bundles.js +151 -0
- package/dist/web/src/canvas.js +3716 -0
- package/dist/web/src/drag.js +61 -0
- package/dist/web/src/edgequeue.js +204 -0
- package/dist/web/src/gl/gl.js +123 -0
- package/dist/web/src/gl/renderer.js +451 -0
- package/dist/web/src/halo.js +95 -0
- package/dist/web/src/highlight.js +108 -0
- package/dist/web/src/overview.js +393 -0
- package/dist/web/src/reviewqueue.js +250 -0
- package/dist/web/src/selection.js +272 -0
- package/dist/web/src/status.js +80 -0
- package/dist/web/src/visitors.js +318 -0
- package/dist/web/src/visits.js +174 -0
- package/dist/web/style.css +196 -1
- package/docs/agent-api/README.md +1 -1
- package/docs/agent-api/export.md +41 -2
- package/docs/agent-api/history.md +5 -3
- package/docs/agent-api/mcp.md +1 -1
- package/docs/agent-api/reading.md +2 -1
- package/package.json +5 -1
package/dist/web/bundle/edges.js
CHANGED
package/dist/web/index.html
CHANGED
|
@@ -77,7 +77,12 @@
|
|
|
77
77
|
<button id="who" class="who" hidden></button>
|
|
78
78
|
<div id="who-menu" class="glass" role="menu" aria-label="Your name and visibility" hidden></div>
|
|
79
79
|
</div>
|
|
80
|
-
|
|
80
|
+
<!-- help: a menu of the tips, the keys, the tour, and what the project and VisualProof are
|
|
81
|
+
(GuideSpec decision 8, web/src/guide.ts) -->
|
|
82
|
+
<div class="help-wrap">
|
|
83
|
+
<button id="help-btn" class="help-btn" title="Help: tips, keys, the tour (?)" aria-label="Help" aria-haspopup="menu" aria-expanded="false">?</button>
|
|
84
|
+
<div id="help-menu" class="glass" role="menu" aria-label="Help" hidden></div>
|
|
85
|
+
</div>
|
|
81
86
|
<!-- on a phone the bar's buttons are in one menu (web/src/phone.ts) -->
|
|
82
87
|
<div class="more-wrap">
|
|
83
88
|
<button id="more-btn" class="act-btn act-icon" aria-label="More" aria-haspopup="menu" aria-expanded="false" title="Share, the library, export, activity, your name, help"><svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><circle cx="3.5" cy="8" r="1.3"/><circle cx="8" cy="8" r="1.3"/><circle cx="12.5" cy="8" r="1.3"/></svg><span id="more-badge" class="act-badge" hidden></span></button>
|
|
@@ -229,6 +234,13 @@
|
|
|
229
234
|
<div class="tour-spot"></div><div class="tour-card glass" role="dialog" aria-live="polite"></div>
|
|
230
235
|
</div>
|
|
231
236
|
<div id="help" hidden></div>
|
|
237
|
+
<!-- a tip in place, beside the control it is about (GuideSpec decision 9, web/src/intip.ts); What's
|
|
238
|
+
new, said once when the server runs a newer release than this browser saw (decision 11) -->
|
|
239
|
+
<div id="intip" class="glass" role="dialog" aria-live="polite" hidden></div>
|
|
240
|
+
<div id="whatsnew" class="glass" role="status" hidden></div>
|
|
241
|
+
<!-- a first visit: the tour and the film offered, never imposed; no backdrop, never the keyboard's
|
|
242
|
+
(GuideSpec decision 1) -->
|
|
243
|
+
<div id="welcome" class="glass" role="region" aria-label="Welcome" aria-live="polite" hidden></div>
|
|
232
244
|
<div id="modal" hidden>
|
|
233
245
|
<form id="who-form" class="modal-box glass" autocomplete="off">
|
|
234
246
|
<div class="modal-title" id="who-title">Who is reviewing?</div>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// The mark of an agent (AgentSpec decision 1): a small robot wherever the page names one — its
|
|
2
|
+
// initials among the others, its advice in the review, what it did in Activity — so that nothing
|
|
3
|
+
// an agent said or did reads as a person's.
|
|
4
|
+
/** A robot's head, drawn in the colour of the text around it. */
|
|
5
|
+
export const BOT = `<svg class="bot" viewBox="0 0 16 16" aria-hidden="true">` +
|
|
6
|
+
`<path d="M8 4.2V2.4" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>` +
|
|
7
|
+
`<circle cx="8" cy="1.9" r="1.1" fill="currentColor"/>` +
|
|
8
|
+
`<rect x="2.2" y="4.4" width="11.6" height="9.2" rx="2.6" fill="none" stroke="currentColor" stroke-width="1.4"/>` +
|
|
9
|
+
`<circle cx="5.9" cy="8.8" r="1.25" fill="currentColor"/><circle cx="10.1" cy="8.8" r="1.25" fill="currentColor"/>` +
|
|
10
|
+
`</svg>`;
|
|
11
|
+
/** How an agent is named in words: "Claude (agent)". */
|
|
12
|
+
export function agentName(name) {
|
|
13
|
+
return `${name} (agent)`;
|
|
14
|
+
}
|