rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:darkneu/dsh-finesse-visualizer
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Detects Finesse 3 KatScript in a conversation and renders it as figures in the turn card, without being asked: optical layout, Gaussian beam trace, detector readout/sweep and CCD intensity.
Requires DSH >=0.2.1-rc.2 and a Python interpreter that can import finesse
(Finesse 3, NumPy, Matplotlib).
From the GitHub release (available now, no npm account needed):
dsh plugin --profile <profile> add https://github.com/darkneu/dsh-finesse-visualizer/releases/latest/download/dsh-finesse-visualizer.tgz
From npm (once dsh-finesse-visualizer has been published there):
dsh plugin --profile <profile> add dsh-finesse-visualizer
A local checkout can be handed to the DSH plugin manager directly. After the first install, refresh the Web page once: the left sidebar gains Finesse 设计器, and Finesse/KatScript in a conversation renders as a card at the end of its turn.
session/event messages.xaxis/noxaxis analysis) or a Python cell that builds a
Finesse model starts a render in the background.~/.dsh/finesse-vis/<session>/<item>/.conversation.chat.turnTail and shows the figures of
that Turn, polling while the render is still running.Supported inputs:
l, s, m, bs, lens, mod, isol, pd, ad, ccd,
cav, gauss, telescope, xaxis, x2axis, noxaxis.name = 1e-3 variables plus model.parse("""...""").
{var} placeholders are resolved, numpy expressions are not executed.The plugin adds a left-sidebar entry Finesse 设计器 (global, no Session needed) plus a compact Finesse 设计器 pill in the composer dock. Either one opens the same drag-and-drop bench:
R, T, Rc, f,
midx, …), select a link to edit its length L; Delete removes the selection;The designer is hand-written plain JavaScript with inline vector glyphs, so it needs no build step and no extra asset route.
The layout is inferred from the Finesse model rather than from hand-placed coordinates:
T ≈ 0) the beam turns 90° toward the perpendicular branch.noxaxis run labels each photodetector with its value and unit.Component artwork is also oriented from the same beam directions:
Mirrors carry both coatings visually: the HR face has a bright silver-blue coating, the AR face a green anti-reflection coating, and the layout also draws a blue/green bar on each face plus an HR/AR legend. The HR face is turned toward the cavity side — the side from which more components are reachable — so an input mirror's HR faces the PRC and an end mirror's HR faces its arm.
Link lengths are drawn on a log scale (1.75–5.4 layout units) and labelled with
the physical length (12.5 m, 25 m, 25 km). A linear scale would make the
12.5 m links invisible next to the 25 km arms; zero-length links keep the
minimum spacing.
This produces the expected Michelson picture: laser → input mirror → beamsplitter, the two arms at right angles, the ITM/recombination corner, the dark port, and the two 25 km arm directions as perpendicular branches.
| File | Content |
|---|---|
finesse-layout.png |
2D optical bench drawn with the Finesse-visualization component artwork (laser, mirror, beamsplitter, lens, EOM, isolator, photodetector, CCD), with beam-direction routing, port dots and detector readouts; vector-redrawn 512 px component artwork instead of the original 23 px bitmaps |
finesse-beam.png |
Gaussian beam radius w along the real propagation path |
finesse-outputs.png |
Detector readout table (noxaxis) or sweep curves (xaxis) |
finesse-ccd.png |
CCD field intensity when the model has a ccd |
A render error is shown in the card with the KatScript line and caret from the Finesse parser, which makes the plugin useful for debugging pasted scripts too.
A Python interpreter that can import finesse (Finesse 3), plus numpy and
matplotlib. The plugin probes, in order:
FINESSE_VIZ_PYTHONFINESSE_PYTHON$CONDA_PREFIX/bin/python~/miniconda3/envs/finesse_sim/bin/python~/anaconda3/envs/finesse_sim/bin/python/opt/anaconda3/envs/finesse_sim/bin/python/opt/anaconda3/bin/python3, /opt/homebrew/bin/python3, python3, pythonThe first interpreter whose import finesse succeeds is cached for the session.
index.js Host half: detection, render queue, HTTP routes
client.js Web half: the turn card and the drag-and-drop designer
python/render_finesse.py KatScript normalization, model run, matplotlib figures
assets/components/ Component artwork: original SVG in the project's style, 512 px rasterized HD PNGs, legacy bitmaps as fallback
cordis.patch.yml One process-wide Host row
locale/{en,zh}.json Plugin Manager title and description
icon.svg Plugin icon
Both are served on the Web GUI origin; the page's existing cookie authenticates them.
GET /finesse-vis/turn?sessionId=<id>&turn=<n> → { items: [...] }GET /finesse-vis/image/<session>/<item>/<file>.png → PNG bytesFINESSE_VIZ_TIMEOUT_MS render deadline (default 180000)FINESSE_VIZ_PYTHON interpreter overrideDSH_HOME output root (default ~/.dsh)Detection is deliberately conservative: at most two code blocks per message and three rendered models per Turn, deduplicated by normalized source text.
numpy/Python expressions in a pasted cell are not executed, so a cell that
computes parameters with arbitrary Python falls back to the KatScript block.GPL-3.0-only. The component artwork is derived from Finesse-visualization (GPL-3.0); see NOTICE.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。