thinkpool-pair 0.7.348 → 0.7.349
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/package.json
CHANGED
|
@@ -39,9 +39,12 @@ export const THINKPOOL_DESIGN_INTERACTION_RULE = thinkPoolCapabilityContract('de
|
|
|
39
39
|
|
|
40
40
|
export const THINKPOOL_DESIGN_DELIVERY_RULE = `THINKPOOL DESIGN (mandatory for authored HTML): save the editable HTML source in the workspace, then use the $TP_MOCKUP_OUTBOX render helper so the room receives a source-backed Thinkpool Design card with both desktop (1440×900) and mobile (390×844) previews. The interactive Design card/popup is the visible result: the renders remain required verification inputs, but when that card is displayed do not also surface duplicate inline PNGs. Surface desktop/mobile PNGs only when no interactive source-backed Design artifact is available. ${THINKPOOL_DESIGN_INTERACTION_RULE} When the requested Design surface is an existing product page or route, first build and capture the actual route at both viewports, then read its current source, styles, copy, fonts, and assets. Derive the editable Design artifact from that evidence and compare both artifact captures against the real route before delivery. Preserve the real page faithfully except for explicitly proposed edits—never hand-recreate it from memory, simplify it, replace it with generic mockup content, or label an approximation as the product. If a faithful editable artifact cannot be produced, surface the actual route captures and say that Design editing is unavailable for that surface. Never paste raw HTML into chat, send an .html file as the room deliverable, or substitute a bare URL or single screenshot for this card. A shareable browser URL may accompany the card, but never replaces it.`
|
|
41
41
|
|
|
42
|
+
export const THINKPOOL_REMOTE_ARTIFACT_ACCESS_RULE = 'REMOTE ARTIFACT ACCESS (authoritative): ThinkPool room members may be reviewing from a phone and have only their existing ThinkPool session. Never use HyperFrames or another external account-, install-, claim-token-, or login-gated surface for a mockup, preview, animation, or visual deliverable unless a person explicitly requests that exact surface. Prefer the source-backed ThinkPool Design card, accompanied when required by an authentication-free browser URL such as GitHub Pages. An HTTP 200 response is not proof of accessibility: verify in a fresh signed-out mobile browser that the artifact itself renders and that its intended interaction or motion works without another login. If a candidate delivery route asks for authentication or a claim, abandon that route and use ThinkPool-native evidence instead.'
|
|
43
|
+
|
|
42
44
|
export const THINKPOOL_REMOTE_DELIVERY_RULES = Object.freeze([
|
|
43
45
|
'REMOTE USER (authoritative default for ThinkPool Code rooms): unless a person explicitly says they are at the host machine, assume everyone driving this room is remote — possibly on a phone — with no terminal and no access to the host filesystem. Never ask them to run a local command, open a local file, or "go check" something on the machine. Anything host-side, you run yourself and show the result in the room. Only suggest actions they can actually do from the room UI or a browser.',
|
|
44
46
|
'LINKS & ARTIFACTS: a local filesystem path, file:// URL, localhost/127.0.0.1 address, or host-only preview is useless to a remote room. Every link you surface must be reachable by the people in the room.',
|
|
47
|
+
THINKPOOL_REMOTE_ARTIFACT_ACCESS_RULE,
|
|
45
48
|
'Whenever you produce HTML or shareable markup — a demo, mockup, preview, report, or page — publish it to a browser-renderable GitHub-shareable URL, normally GitHub Pages (or an equivalent URL that actually renders; raw.githubusercontent.com serves HTML as plain text). Give the room that shareable URL in addition to the Thinkpool Design card, never instead of it and never only as a local path. If you cannot publish it, say so instead of falling back to a host-only path.',
|
|
46
49
|
'SHOW VISUAL WORK: whenever you build, change, or fix anything visual, show the result in the room. A source-backed Thinkpool Design card/popup is already the interactive visible result, so do not additionally surface duplicate PNGs. When no interactive Design artifact is available, capture and surface desktop/mobile PNG evidence inline.',
|
|
47
50
|
'BRIDGE PREVIEWS: for a built web UI, use preview_start (default root: dist), then preview_capture for exact desktop 1440x900 and mobile 390x844 PNGs, and preview_inspect when DOM text or selector geometry helps. Run the project build first and stop the preview server with preview_stop when done. Captures are verification evidence by default; set card=true only for an intentional user-facing mockup or Design deliverable, never merely because a turn changed visual code.',
|
|
@@ -56,6 +59,7 @@ export const THINKPOOL_REMOTE_DELIVERY_RULES = Object.freeze([
|
|
|
56
59
|
export const THINKPOOL_RUNTIME_TURN_REMINDER = [
|
|
57
60
|
THINKPOOL_AGENT_CONTRACT,
|
|
58
61
|
'REMOTE DELIVERY: assume the people are remote unless they explicitly say otherwise. Run host-side work yourself; never hand them a local path, file:// or localhost URL, or ask them to use the host terminal. Surface reachable links and inline evidence in the room.',
|
|
62
|
+
THINKPOOL_REMOTE_ARTIFACT_ACCESS_RULE,
|
|
59
63
|
'VISUAL DELIVERY: build first and verify exact desktop and mobile renders. If a source-backed Thinkpool Design card/popup is displayed, do not separately surface its PNGs; if no interactive Design artifact is available, surface the desktop/mobile PNG evidence inline. Stop bridge previews when finished.',
|
|
60
64
|
THINKPOOL_DESIGN_INTERACTION_RULE,
|
|
61
65
|
'VERIFY BEFORE CLAIMING: run or serve what changed and show the real response, passing output, or rendered evidence; state exactly what remains unverified.',
|
|
@@ -71,6 +75,7 @@ export const THINKPOOL_FULL_REMINDER_INTERVAL = 5
|
|
|
71
75
|
export const THINKPOOL_RUNTIME_SALIENCE_REMINDER = [
|
|
72
76
|
THINKPOOL_TURN_SCOPE_RULE,
|
|
73
77
|
'THINKPOOL: prefer relevant exposed room tools unless the user explicitly opts out; obey the durable terminal role and consent rules. Assume the people are remote, do host work yourself, and deliver reachable verified results.',
|
|
78
|
+
THINKPOOL_REMOTE_ARTIFACT_ACCESS_RULE,
|
|
74
79
|
].join(' ')
|
|
75
80
|
|
|
76
81
|
const ROUTE_TRIGGERS = Object.freeze(Object.fromEntries(
|