askgopal-view
v0.3.11
Published
AskGopal Way-2-Win Deal Health renderer — one-page concentric stage rings, maturity-keyed evidence scorecard, strongest-evidence control cards with a per-control source summary (N sources · date range) and an expandable ranked evidence trail, a per-source
Downloads
116
Maintainers
Readme
askgopal-view
The static AskGopal Deal Health renderer. Version 0.2 adds six selectable concentric stage rings, transparent evidence-readiness scoring and reduced-motion-safe animation while preserving the exact evidence scorecard and Next call coaching.
Version 0.3 adds the light, anti-gaming Evidence Challenge: a reachable one-step checkpoint across up to two buyer-evidence topics, with qualification clarity replacing score-chasing on a no-go.
The client renderer for AskGopal's Way-2-Win deal-review artifact. It reads a
<script type="application/json" id="gopal-data"> blob and renders the full interactive page
(header + verdict, stage selector, Deal-review / Next-call toggle, RAG scorecard, copy-prompt chips,
light/dark) into #gopal-root. CSS + the Way-2-Win coaching catalogue are baked in — the page is
static and non-sensitive, so it lives on a CDN and each review ships only the ~KB per-deal data.
Why
review_deal otherwise returns ~31 KB of HTML that the model must re-emit verbatim before publishing
the artifact (~1 min). With this bundle on a CDN, review_deal returns a ~4 KB shell that <script
src>s the bundle — near-instant, still a native claude.ai artifact.
Build (single source of truth)
The bundle is generated from the engine (rgos.render.view_bundle()) so it can't drift:
python3 packages/askgopal-view/build.py # writes dist/askgopal-view.jsRe-run after any change to the renderer, CSS, or the coaching catalogue, then bump version.
Publish
cd packages/askgopal-view
npm publish --access publicclaude.ai artifacts may only load scripts from a short CDN allow-list (cdnjs, cdn.jsdelivr.net/npm, unpkg, …), so reference the pinned version via jsdelivr:
https://cdn.jsdelivr.net/npm/askgopal-view@<version>/dist/askgopal-view.jsWire it up (server)
Set on the Fly app so govern_html emits the thin shell that links this bundle:
flyctl secrets set GOPAL_VIEW_URL=https://cdn.jsdelivr.net/npm/[email protected]/dist/askgopal-view.jsUnset it to fall back to the self-contained inline page (no CDN dependency).
Shell contract
<title>{deal} — Way-2-Win</title>
<div id="gopal-root"></div>
<script type="application/json" id="gopal-data">{ ...per-deal data... }</script>
<script src="https://cdn.jsdelivr.net/npm/askgopal-view@<version>/dist/askgopal-view.js"></script>